	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_apply_state_adjust_rules
_si_apply_state_adjust_rules:           ## @si_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_si_get_ps
	movq	%rax, %r12
	movq	$0, -88(%rbp)
	movq	(%rbx), %rax
	movq	_CHIP_HAINAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.1:
	movq	112(%rbx), %rax
	movl	(%rax), %ecx
	movl	$75000, %r14d                   ## imm = 0x124F8
	cmpl	$129, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$131, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$195, %ecx
	je	LBB0_7
## %bb.4:
	movl	$-26212, %ecx                   ## imm = 0x999C
	addl	4(%rax), %ecx
	xorl	%r14d, %r14d
	cmpl	$3, %ecx
	ja	LBB0_6
## %bb.5:
	movslq	%ecx, %rcx
	leaq	L_switch.table.si_apply_state_adjust_rules(%rip), %rdx
	movl	(%rdx,%rcx,4), %r14d
LBB0_6:
	cmpl	$26213, 4(%rax)                 ## imm = 0x6665
	jne	LBB0_13
LBB0_7:
	movl	$80000, %edi                    ## imm = 0x13880
	movl	$60000, %r14d                   ## imm = 0xEA60
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_8:
	movq	_CHIP_OLAND@GOTPCREL(%rip), %rcx
	movb	$1, %r13b
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	112(%rax), %rax
	movl	(%rax), %ecx
	leal	-128(%rcx), %edx
	cmpl	$7, %edx
	ja	LBB0_133
## %bb.10:
	movl	$139, %esi
	btl	%edx, %esi
	jae	LBB0_133
LBB0_11:
	movl	$75000, %r14d                   ## imm = 0x124F8
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
	movb	$1, %r13b
	jmp	LBB0_14
LBB0_133:
	cmpl	$199, %ecx
	je	LBB0_11
## %bb.134:
	movl	4(%rax), %eax
	andl	$-2, %eax
	cmpl	$26116, %eax                    ## imm = 0x6604
	je	LBB0_11
LBB0_12:
	xorl	%r14d, %r14d
LBB0_14:
	cmpq	$0, (%r15)
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	movq	96(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	16(%rcx,%rax,8), %rsi
	movq	%rsi, 32(%r15)
	movq	8(%rcx,%rax,8), %rdx
	movq	%rdx, 24(%r15)
	leaq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_si_get_vce_clock_voltage
	cmpl	$1, 24(%rbx)
	jle	LBB0_17
	jmp	LBB0_18
LBB0_16:
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 24(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$1, 24(%rbx)
	jg	LBB0_18
LBB0_17:
	movq	%rbx, %rdi
	callq	_si_dpm_vblank_too_short
	testq	%rax, %rax
	je	LBB0_85
LBB0_18:
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_19:
	cmpq	$0, 16(%r15)
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_21
## %bb.20:
	cmpq	$0, 8(%r15)
	je	LBB0_132
LBB0_21:
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	leaq	64(%rax), %rdx
	leaq	24(%rax), %r15
	testl	%ecx, %ecx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmovneq	%rdx, %r15
	movl	(%r12), %r8d
	cmpl	$2, %r8d
	jl	LBB0_34
## %bb.23:
	leal	-2(%r8), %eax
	movq	8(%r12), %rdx
	movq	%rax, %rsi
	testb	$1, %al
	jne	LBB0_27
## %bb.24:
	leaq	(%rax,%rax,2), %rdi
	movq	24(%rdx,%rdi,8), %rsi
	cmpq	%rsi, (%rdx,%rdi,8)
	jle	LBB0_26
## %bb.25:
	leaq	(%rdx,%rdi,8), %rdi
	movq	%rsi, (%rdi)
LBB0_26:
	leaq	-1(%rax), %rsi
LBB0_27:
	testq	%rax, %rax
	je	LBB0_34
## %bb.28:
	leaq	2(%rsi), %rax
	leaq	(%rsi,%rsi,2), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=1
	addq	$-2, %rax
	addq	$-48, %rdx
	cmpq	$1, %rax
	jle	LBB0_34
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rdx), %rsi
	cmpq	%rsi, (%rdx)
	jle	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%rsi, (%rdx)
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	(%rdx), %rsi
	cmpq	%rsi, -24(%rdx)
	jle	LBB0_29
## %bb.33:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	%rsi, -24(%rdx)
	jmp	LBB0_29
LBB0_34:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	addq	$8, %r15
	testl	%ecx, %ecx
	jne	LBB0_46
## %bb.35:
	testl	%r8d, %r8d
	jle	LBB0_46
## %bb.36:
	movq	8(%r12), %rcx
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	8(%r15), %rdi
	movq	16(%r15), %rax
	shlq	$3, %r8
	leaq	(%r8,%r8,2), %r8
	xorl	%ebx, %ebx
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=1
	addq	$24, %rbx
	cmpq	%rbx, %r8
	je	LBB0_46
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, 8(%rcx,%rbx)
	jle	LBB0_39
## %bb.42:                              ##   in Loop: Header=BB0_38 Depth=1
	movl	%edx, 8(%rcx,%rbx)
	cmpl	%esi, 12(%rcx,%rbx)
	jg	LBB0_43
LBB0_40:                                ##   in Loop: Header=BB0_38 Depth=1
	cmpq	%rdi, (%rcx,%rbx)
	jle	LBB0_41
LBB0_44:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	%rdi, (%rcx,%rbx)
	cmpq	%rax, 16(%rcx,%rbx)
	jle	LBB0_37
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_38 Depth=1
	cmpl	%esi, 12(%rcx,%rbx)
	jle	LBB0_40
LBB0_43:                                ##   in Loop: Header=BB0_38 Depth=1
	movl	%esi, 12(%rcx,%rbx)
	cmpq	%rdi, (%rcx,%rbx)
	jg	LBB0_44
LBB0_41:                                ##   in Loop: Header=BB0_38 Depth=1
	cmpq	%rax, 16(%rcx,%rbx)
	jle	LBB0_37
LBB0_45:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	%rax, 16(%rcx,%rbx)
	jmp	LBB0_37
LBB0_46:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	68(%rbx), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_btc_get_max_clock_from_voltage_dependency_table
	leaq	-68(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_btc_get_max_clock_from_voltage_dependency_table
	leaq	60(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_btc_get_max_clock_from_voltage_dependency_table
	movslq	(%r12), %r8
	movl	%r8d, %r9d
	testq	%r8, %r8
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %r10d                ## 4-byte Reload
	jle	LBB0_64
## %bb.47:
	leaq	(,%r9,8), %rax
	leaq	(%rax,%rax,2), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_49 Depth=1
	addq	$24, %rcx
	cmpq	%rcx, %rax
	je	LBB0_64
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	-72(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_52
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	8(%r12), %rsi
	cmpl	%edx, 12(%rsi,%rcx)
	jle	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%edx, 12(%rsi,%rcx)
LBB0_52:                                ##   in Loop: Header=BB0_49 Depth=1
	movl	-68(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_55
## %bb.53:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	8(%r12), %rsi
	cmpl	%edx, 8(%rsi,%rcx)
	jle	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%edx, 8(%rsi,%rcx)
LBB0_55:                                ##   in Loop: Header=BB0_49 Depth=1
	movl	-64(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_58
## %bb.56:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	8(%r12), %rsi
	cmpl	%edx, 8(%rsi,%rcx)
	jle	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%edx, 8(%rsi,%rcx)
LBB0_58:                                ##   in Loop: Header=BB0_49 Depth=1
	testb	%r13b, %r13b
	jne	LBB0_61
## %bb.59:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	8(%r12), %rdx
	cmpl	%edi, 8(%rdx,%rcx)
	jle	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%edi, 8(%rdx,%rcx)
LBB0_61:                                ##   in Loop: Header=BB0_49 Depth=1
	testl	%r14d, %r14d
	je	LBB0_48
## %bb.62:                              ##   in Loop: Header=BB0_49 Depth=1
	movq	8(%r12), %rdx
	cmpl	%r14d, 12(%rdx,%rcx)
	jle	LBB0_48
## %bb.63:                              ##   in Loop: Header=BB0_49 Depth=1
	movl	%r14d, 12(%rdx,%rcx)
	jmp	LBB0_48
LBB0_64:
	leaq	-1(%r8), %rax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	movq	8(%r12), %rdx
	movl	%eax, %ecx
	cmovel	%esi, %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rdx,%rcx,8), %r11
	movl	8(%rdx,%rcx,8), %edi
	xorl	%ecx, %ecx
	testb	%r10b, %r10b
	cmoveq	%rax, %rcx
	leaq	(%rcx,%rcx,2), %rax
	movq	(%rdx,%rax,8), %r14
	movl	12(%rdx,%rax,8), %esi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_66
## %bb.65:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rax
	movq	96(%r13), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	(%rcx,%rax,8), %ebx
	cmpl	%ebx, %esi
	cmovlel	%ebx, %esi
	movl	4(%rcx,%rax,8), %eax
	cmpl	%eax, %edi
	cmovlel	%eax, %edi
	jmp	LBB0_67
LBB0_66:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_67:
	movl	%esi, 12(%rdx)
	movl	%edi, 8(%rdx)
	movq	%r14, (%rdx)
	movq	%r11, 16(%rdx)
	testb	%r10b, %r10b
	je	LBB0_75
## %bb.68:
	cmpl	$2, %r9d
	jl	LBB0_90
## %bb.69:
	leaq	(,%r9,8), %rax
	leaq	(%rax,%rax,2), %r10
	movl	$24, %ecx
	jmp	LBB0_71
	.p2align	4, 0x90
LBB0_70:                                ##   in Loop: Header=BB0_71 Depth=1
	addq	$24, %rcx
	movq	%rax, %r14
	movl	%ebx, %esi
	cmpq	%rcx, %r10
	je	LBB0_90
LBB0_71:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%rdx,%rcx), %ebx
	cmpl	%esi, %ebx
	jge	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_71 Depth=1
	movl	%esi, 12(%rdx,%rcx)
	movl	%esi, %ebx
LBB0_73:                                ##   in Loop: Header=BB0_71 Depth=1
	movq	(%rdx,%rcx), %rax
	cmpq	%r14, %rax
	jge	LBB0_70
## %bb.74:                              ##   in Loop: Header=BB0_71 Depth=1
	movq	%r14, (%rdx,%rcx)
	movq	%r14, %rax
	jmp	LBB0_70
LBB0_75:
	cmpl	$2, %r9d
	jl	LBB0_82
## %bb.76:
	leaq	-1(%r9), %rcx
	movl	$1, %r10d
	cmpq	$9, %rcx
	jb	LBB0_80
## %bb.77:
	movl	%ecx, %ebx
	andl	$7, %ebx
	testq	%rbx, %rbx
	movl	$8, %eax
	cmovneq	%rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	negq	%rax
	leaq	(%rcx,%rax), %r10
	incq	%r10
	movd	%esi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	204(%rdx), %rax
	movdqa	%xmm0, %xmm1
	.p2align	4, 0x90
LBB0_78:                                ## =>This Inner Loop Header: Depth=1
	movd	-168(%rax), %xmm2               ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, -144(%rax), %xmm2
	pinsrd	$2, -120(%rax), %xmm2
	pinsrd	$3, -96(%rax), %xmm2
	movd	-72(%rax), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	pinsrd	$1, -48(%rax), %xmm3
	pinsrd	$2, -24(%rax), %xmm3
	pinsrd	$3, (%rax), %xmm3
	pmaxsd	%xmm2, %xmm0
	pmaxsd	%xmm3, %xmm1
	addq	$192, %rax
	addq	$-8, %rbx
	jne	LBB0_78
## %bb.79:
	pmaxsd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxsd	%xmm1, %xmm0
	movd	%xmm0, %esi
LBB0_80:
	leaq	(%r10,%r10,2), %rax
	leaq	(%rdx,%rax,8), %rcx
	addq	$12, %rcx
	movq	%r9, %rbx
	subq	%r10, %rbx
	movl	%esi, %eax
	.p2align	4, 0x90
LBB0_81:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	cmovgl	%eax, %esi
	addq	$24, %rcx
	movl	%esi, %eax
	decq	%rbx
	jne	LBB0_81
LBB0_82:
	testl	%r9d, %r9d
	jle	LBB0_90
## %bb.83:
	cmpl	$1, %r9d
	jne	LBB0_86
## %bb.84:
	xorl	%ecx, %ecx
	jmp	LBB0_88
LBB0_85:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_86:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	xorl	%ecx, %ecx
	movq	%rdx, %rbx
	.p2align	4, 0x90
LBB0_87:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, 12(%rbx)
	movq	%r14, (%rbx)
	movl	%esi, 36(%rbx)
	movq	%r14, 24(%rbx)
	addq	$2, %rcx
	addq	$48, %rbx
	cmpq	%rcx, %r10
	jne	LBB0_87
LBB0_88:
	testb	$1, %r9b
	je	LBB0_90
## %bb.89:
	leaq	(%rcx,%rcx,2), %rax
	movl	%esi, 12(%rdx,%rax,8)
	movq	%r14, (%rdx,%rax,8)
LBB0_90:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_101
## %bb.91:
	cmpl	$2, %r9d
	jl	LBB0_98
## %bb.92:
	leaq	-1(%r9), %rcx
	movl	$1, %eax
	cmpq	$9, %rcx
	jb	LBB0_96
## %bb.93:
	movl	%ecx, %eax
	andl	$7, %eax
	testq	%rax, %rax
	movl	$8, %ebx
	cmovneq	%rax, %rbx
	movq	%rcx, %rsi
	subq	%rbx, %rsi
	negq	%rbx
	leaq	(%rcx,%rbx), %rax
	incq	%rax
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	200(%rdx), %rdi
	movdqa	%xmm0, %xmm1
	.p2align	4, 0x90
LBB0_94:                                ## =>This Inner Loop Header: Depth=1
	movd	-168(%rdi), %xmm2               ## xmm2 = mem[0],zero,zero,zero
	pinsrd	$1, -144(%rdi), %xmm2
	pinsrd	$2, -120(%rdi), %xmm2
	pinsrd	$3, -96(%rdi), %xmm2
	movd	-72(%rdi), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	pinsrd	$1, -48(%rdi), %xmm3
	pinsrd	$2, -24(%rdi), %xmm3
	pinsrd	$3, (%rdi), %xmm3
	pmaxsd	%xmm2, %xmm0
	pmaxsd	%xmm3, %xmm1
	addq	$192, %rdi
	addq	$-8, %rsi
	jne	LBB0_94
## %bb.95:
	pmaxsd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxsd	%xmm1, %xmm0
	movd	%xmm0, %edi
LBB0_96:
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rdx,%rcx,8), %rcx
	addq	$8, %rcx
	movq	%r9, %rsi
	subq	%rax, %rsi
	movl	%edi, %eax
	.p2align	4, 0x90
LBB0_97:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	cmovgl	%eax, %edi
	addq	$24, %rcx
	movl	%edi, %eax
	decq	%rsi
	jne	LBB0_97
LBB0_98:
	testl	%r8d, %r8d
	jle	LBB0_130
## %bb.99:
	cmpl	$1, %r9d
	jne	LBB0_108
## %bb.100:
	xorl	%eax, %eax
	jmp	LBB0_110
LBB0_101:
	cmpl	$2, %r9d
	jl	LBB0_112
## %bb.102:
	leaq	(%r9,%r9,2), %rax
	leaq	-24(,%rax,8), %rax
	xorl	%esi, %esi
	jmp	LBB0_104
	.p2align	4, 0x90
LBB0_103:                               ##   in Loop: Header=BB0_104 Depth=1
	addq	$24, %rsi
	movq	%rdi, %r11
	movl	%ecx, %edi
	cmpq	%rsi, %rax
	je	LBB0_112
LBB0_104:                               ## =>This Inner Loop Header: Depth=1
	movl	32(%rdx,%rsi), %ecx
	cmpl	%edi, %ecx
	jge	LBB0_106
## %bb.105:                             ##   in Loop: Header=BB0_104 Depth=1
	movl	%edi, 32(%rdx,%rsi)
	movl	%edi, %ecx
LBB0_106:                               ##   in Loop: Header=BB0_104 Depth=1
	movq	40(%rdx,%rsi), %rdi
	cmpq	%r11, %rdi
	jge	LBB0_103
## %bb.107:                             ##   in Loop: Header=BB0_104 Depth=1
	movq	%r11, 40(%rdx,%rsi)
	movq	%r11, %rdi
	jmp	LBB0_103
LBB0_108:
	movl	%r9d, %ecx
	andl	$-2, %ecx
	leaq	40(%rdx), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_109:                               ## =>This Inner Loop Header: Depth=1
	movl	%edi, -32(%rsi)
	movq	%r11, -24(%rsi)
	movl	%edi, -8(%rsi)
	movq	%r11, (%rsi)
	addq	$2, %rax
	addq	$48, %rsi
	cmpq	%rax, %rcx
	jne	LBB0_109
LBB0_110:
	testb	$1, %r9b
	je	LBB0_112
## %bb.111:
	leaq	(%rax,%rax,2), %rax
	movl	%edi, 8(%rdx,%rax,8)
	movq	%r11, 16(%rdx,%rax,8)
LBB0_112:
	testl	%r9d, %r9d
	jle	LBB0_130
## %bb.113:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_btc_adjust_clock_combinations
	movl	(%r12), %eax
	cmpl	$2, %eax
	jl	LBB0_116
## %bb.114:
	movl	$1, %r14d
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_115:                               ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdx
	addq	%rbx, %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_btc_adjust_clock_combinations
	incq	%r14
	movslq	(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jl	LBB0_115
LBB0_116:
	testl	%eax, %eax
	jle	LBB0_130
## %bb.117:
	addq	$56, %r13
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_119
	.p2align	4, 0x90
LBB0_118:                               ##   in Loop: Header=BB0_119 Depth=1
	movl	12(%rax,%rbx), %esi
	movq	8(%r15), %rdx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_btc_apply_voltage_dependency_rules
	movq	8(%r12), %rax
	movl	8(%rax,%rbx), %esi
	movq	16(%r15), %rdx
	leaq	(%rax,%rbx), %rcx
	addq	$16, %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_btc_apply_voltage_dependency_rules
	movq	8(%r12), %rcx
	movl	8(%rcx,%rbx), %esi
	addq	%rbx, %rcx
	movq	8(%r15), %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_btc_apply_voltage_dependency_rules
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	104(%rax), %esi
	movq	8(%r15), %rdx
	movq	8(%r12), %rcx
	addq	%rbx, %rcx
	movq	%r13, %rdi
	callq	_btc_apply_voltage_dependency_rules
	incq	%r14
	movslq	(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jge	LBB0_121
LBB0_119:                               ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	leaq	(%rax,%rbx), %rcx
	movq	-88(%rbp), %rdx
	cmpq	%rdx, (%rax,%rbx)
	jge	LBB0_118
## %bb.120:                             ##   in Loop: Header=BB0_119 Depth=1
	movq	%rdx, (%rcx)
	jmp	LBB0_118
LBB0_121:
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_130
## %bb.122:
	movl	$16, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_123:                               ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	movq	16(%r15), %rdx
	movq	8(%r12), %r8
	leaq	(%r8,%rbx), %rcx
	addq	$-16, %rcx
	addq	%rbx, %r8
	movq	%r13, %rdi
	callq	_btc_apply_voltage_delta_rules
	incq	%r14
	movslq	(%r12), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jl	LBB0_123
## %bb.124:
	movl	%eax, %eax
	movl	$1, 4(%r12)
	testl	%eax, %eax
	jle	LBB0_131
## %bb.125:
	movq	8(%r12), %rbx
	movq	40(%r13), %rdx
	cmpl	$1, %eax
	jne	LBB0_136
## %bb.126:
	xorl	%esi, %esi
LBB0_127:
	testb	$1, %al
	je	LBB0_131
## %bb.128:
	leaq	(%rsi,%rsi,2), %rax
	cmpq	%rdx, (%rbx,%rax,8)
	jle	LBB0_131
## %bb.129:
	movl	$0, 4(%r12)
	jmp	LBB0_131
LBB0_130:
	movl	$1, 4(%r12)
LBB0_131:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_132:
	movb	$1, %bl
	jmp	LBB0_22
LBB0_136:
	movl	%eax, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	jmp	LBB0_138
	.p2align	4, 0x90
LBB0_137:                               ##   in Loop: Header=BB0_138 Depth=1
	addq	$2, %rsi
	addq	$48, %rcx
	cmpq	%rsi, %rdi
	je	LBB0_127
LBB0_138:                               ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx)
	jle	LBB0_140
## %bb.139:                             ##   in Loop: Header=BB0_138 Depth=1
	movl	$0, 4(%r12)
LBB0_140:                               ##   in Loop: Header=BB0_138 Depth=1
	cmpq	%rdx, 24(%rcx)
	jle	LBB0_137
## %bb.141:                             ##   in Loop: Header=BB0_138 Depth=1
	movl	$0, 4(%r12)
	jmp	LBB0_137
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_HAINAN,8,3                ## @CHIP_HAINAN
	.comm	_CHIP_OLAND,8,3                 ## @CHIP_OLAND
	.no_dead_strip	_si_apply_state_adjust_rules
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.si_apply_state_adjust_rules
L_switch.table.si_apply_state_adjust_rules:
	.long	75000                           ## 0x124f8
	.long	75000                           ## 0x124f8
	.long	0                               ## 0x0
	.long	75000                           ## 0x124f8

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_apply_state_adjust_rules
_si_apply_state_adjust_rules:           ; @si_apply_state_adjust_rules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x1
	mov	x20, x0
	mov	x0, x1
	bl	_si_get_ps
	mov	x19, x0
	str	xzr, [sp, #40]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CHIP_HAINAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_HAINAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	w27, #9464
	movk	w27, #1, lsl #16
	ldr	x8, [x20, #112]
	ldr	w9, [x8]
	cmp	w9, #129
	b.eq	LBB0_15
; %bb.2:
	cmp	w9, #131
	b.eq	LBB0_15
; %bb.3:
	cmp	w9, #195
	b.eq	LBB0_16
; %bb.4:
	ldr	w9, [x8, #4]
	mov	w10, #-26212
	add	w9, w9, w10
	cmp	w9, #3
	b.hi	LBB0_14
; %bb.5:
Lloh3:
	adrp	x10, l_switch.table.si_apply_state_adjust_rules@PAGE
Lloh4:
	add	x10, x10, l_switch.table.si_apply_state_adjust_rules@PAGEOFF
	ldr	w27, [x10, w9, sxtw #2]
	b	LBB0_15
LBB0_6:
Lloh5:
	adrp	x9, _CHIP_OLAND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHIP_OLAND@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	w28, #1
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x20, #112]
	ldr	w9, [x8]
	sub	w10, w9, #128
	cmp	w10, #7
	lsl	w10, w28, w10
	mov	w11, #139
	and	w10, w10, w11
	ccmp	w10, #0, #4, ls
	b.eq	LBB0_11
LBB0_8:
	mov	w26, #0
	mov	w28, #1
	mov	w27, #9464
	movk	w27, #1, lsl #16
	ldr	x8, [x25]
	cbnz	x8, LBB0_17
	b	LBB0_10
LBB0_9:
	mov	w27, #0
	mov	w26, #0
	ldr	x8, [x25]
	cbnz	x8, LBB0_17
LBB0_10:
	stp	xzr, xzr, [x25, #24]
	b	LBB0_18
LBB0_11:
	cmp	w9, #199
	b.eq	LBB0_8
; %bb.12:
	ldr	w8, [x8, #4]
	mov	w9, #13058
	cmp	w9, w8, lsr #1
	b.eq	LBB0_8
; %bb.13:
	mov	w27, #0
	b	LBB0_23
LBB0_14:
	mov	w27, #0
LBB0_15:
	ldr	w8, [x8, #4]
	mov	w9, #26213
	cmp	w8, w9
	b.ne	LBB0_23
LBB0_16:
	mov	w28, #0
	mov	w26, #14464
	movk	w26, #1, lsl #16
	mov	w27, #60000
	ldr	x8, [x25]
	cbz	x8, LBB0_10
LBB0_17:
	ldr	x8, [x20, #96]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x1, [x8, #16]
	str	x1, [x25, #32]
	ldr	x2, [x8, #8]
	str	x2, [x25, #24]
	add	x3, sp, #40
	mov	x0, x20
	bl	_si_get_vce_clock_voltage
LBB0_18:
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.gt	LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_si_dpm_vblank_too_short
	cbz	x0, LBB0_24
LBB0_20:
	mov	w22, #1
	ldr	x8, [x25, #16]
	cbnz	x8, LBB0_25
LBB0_21:
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_25
; %bb.22:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_26
LBB0_23:
	mov	w26, #0
	mov	w28, #1
	ldr	x8, [x25]
	cbnz	x8, LBB0_17
	b	LBB0_10
LBB0_24:
	mov	w22, #0
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_21
LBB0_25:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w22, #1
LBB0_26:
	ldr	w9, [x20, #8]
	add	x8, x20, #72
	add	x10, x20, #32
	cmp	w9, #0
	csel	x21, x10, x8, eq
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_31
; %bb.27:
	sub	w11, w8, #2
	ldr	x12, [x19, #8]
	add	x10, x11, #1
	mov	w13, #24
	umaddl	x11, w11, w13, x12
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	sub	x10, x10, #1
	sub	x11, x11, #24
	cmp	x10, #0
	b.le	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	ldr	x12, [x11, #24]
	cmp	x13, x12
	b.le	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	str	x12, [x11]
	b	LBB0_28
LBB0_31:
	cbnz	w9, LBB0_43
; %bb.32:
	cmp	w8, #1
	b.lt	LBB0_43
; %bb.33:
	ldr	x13, [x19, #8]
	ldp	w9, w10, [x21]
	ldp	x11, x12, [x21, #8]
	add	x13, x13, #16
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x13, x13, #24
	subs	x8, x8, #1
	b.eq	LBB0_43
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x13, #-8]
	cmp	w14, w9
	b.le	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	stur	w9, [x13, #-8]
LBB0_37:                                ;   in Loop: Header=BB0_35 Depth=1
	ldur	w14, [x13, #-4]
	cmp	w14, w10
	b.le	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_35 Depth=1
	stur	w10, [x13, #-4]
LBB0_39:                                ;   in Loop: Header=BB0_35 Depth=1
	ldur	x14, [x13, #-16]
	cmp	x14, x11
	b.le	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_35 Depth=1
	stur	x11, [x13, #-16]
LBB0_41:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	x14, [x13]
	cmp	x14, x12
	b.le	LBB0_34
; %bb.42:                               ;   in Loop: Header=BB0_35 Depth=1
	str	x12, [x13]
	b	LBB0_34
LBB0_43:
	add	x0, x20, #68
	add	x1, sp, #36
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	bl	_btc_get_max_clock_from_voltage_dependency_table
	add	x23, x20, #64
	add	x1, sp, #32
	mov	x0, x23
	bl	_btc_get_max_clock_from_voltage_dependency_table
	add	x24, x20, #60
	add	x1, sp, #28
	mov	x0, x24
	bl	_btc_get_max_clock_from_voltage_dependency_table
	ldrsw	x10, [x19]
	and	x8, x10, #0xffffffff
	cmp	w10, #1
	mov	x30, x22
	b.lt	LBB0_61
; %bb.44:
	mov	x9, #0
	add	x11, x8, x8, lsl #1
	lsl	x11, x11, #3
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=1
	add	x9, x9, #24
	cmp	x11, x9
	b.eq	LBB0_61
LBB0_46:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [sp, #36]
	cbz	w12, LBB0_49
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x13, [x19, #8]
	add	x13, x13, x9
	ldr	w14, [x13, #12]
	cmp	w14, w12
	b.le	LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_46 Depth=1
	str	w12, [x13, #12]
LBB0_49:                                ;   in Loop: Header=BB0_46 Depth=1
	ldr	w12, [sp, #32]
	cbz	w12, LBB0_52
; %bb.50:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x13, [x19, #8]
	add	x13, x13, x9
	ldr	w14, [x13, #8]
	cmp	w14, w12
	b.le	LBB0_52
; %bb.51:                               ;   in Loop: Header=BB0_46 Depth=1
	str	w12, [x13, #8]
LBB0_52:                                ;   in Loop: Header=BB0_46 Depth=1
	ldr	w12, [sp, #28]
	cbz	w12, LBB0_55
; %bb.53:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x13, [x19, #8]
	add	x13, x13, x9
	ldr	w14, [x13, #8]
	cmp	w14, w12
	b.le	LBB0_55
; %bb.54:                               ;   in Loop: Header=BB0_46 Depth=1
	str	w12, [x13, #8]
LBB0_55:                                ;   in Loop: Header=BB0_46 Depth=1
	tbnz	w28, #0, LBB0_58
; %bb.56:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x12, [x19, #8]
	add	x12, x12, x9
	ldr	w13, [x12, #8]
	cmp	w13, w26
	b.le	LBB0_58
; %bb.57:                               ;   in Loop: Header=BB0_46 Depth=1
	str	w26, [x12, #8]
LBB0_58:                                ;   in Loop: Header=BB0_46 Depth=1
	cbz	w27, LBB0_45
; %bb.59:                               ;   in Loop: Header=BB0_46 Depth=1
	ldr	x12, [x19, #8]
	add	x12, x12, x9
	ldr	w13, [x12, #12]
	cmp	w13, w27
	b.le	LBB0_45
; %bb.60:                               ;   in Loop: Header=BB0_46 Depth=1
	str	w27, [x12, #12]
	b	LBB0_45
LBB0_61:
	ldr	x2, [x19, #8]
	sub	x12, x10, #1
	cmp	w30, #0
	csel	w9, wzr, w12, eq
	mov	w13, #24
	smaddl	x11, w9, w13, x2
	ldr	x9, [x11, #16]
	ldr	w11, [x11, #8]
	ldr	w17, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w17, #0
	csel	x12, xzr, x12, ne
	madd	x13, x12, x13, x2
	ldr	x12, [x13]
	ldr	w13, [x13, #12]
	ldr	x14, [x25]
	cbz	x14, LBB0_63
; %bb.62:
	ldr	x14, [x20, #96]
	ldr	x15, [x20, #16]
	mov	w16, #24
	madd	x14, x15, x16, x14
	ldp	w15, w14, [x14]
	cmp	w13, w15
	csel	w13, w13, w15, gt
	cmp	w11, w14
	csel	w11, w11, w14, gt
LBB0_63:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	stp	w11, w13, [x2, #8]
	str	x12, [x2]
	str	x9, [x2, #16]
	tbz	w17, #0, LBB0_71
; %bb.64:
	cmp	w8, #2
	b.lt	LBB0_87
; %bb.65:
	add	x14, x2, #36
	sub	x15, x8, #1
	b	LBB0_67
LBB0_66:                                ;   in Loop: Header=BB0_67 Depth=1
	add	x14, x14, #24
	mov	x12, x13
	mov	x13, x16
	subs	x15, x15, #1
	b.eq	LBB0_87
LBB0_67:                                ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x14]
	cmp	w16, w13
	b.ge	LBB0_69
; %bb.68:                               ;   in Loop: Header=BB0_67 Depth=1
	str	w13, [x14]
	mov	x16, x13
LBB0_69:                                ;   in Loop: Header=BB0_67 Depth=1
	ldur	x13, [x14, #-12]
	cmp	x13, x12
	b.ge	LBB0_66
; %bb.70:                               ;   in Loop: Header=BB0_67 Depth=1
	stur	x12, [x14, #-12]
	mov	x13, x12
	b	LBB0_66
LBB0_71:
	cmp	w8, #1
	b.le	LBB0_79
; %bb.72:
	sub	x15, x8, #1
	cmp	x15, #4
	b.hs	LBB0_74
; %bb.73:
	mov	w14, #1
	b	LBB0_77
LBB0_74:
	and	x16, x15, #0xfffffffffffffffc
	orr	x14, x16, #0x1
	add	x17, x2, #60
	mov	x3, x16
	mov	x4, x13
	mov	x1, x13
	mov	x0, x13
LBB0_75:                                ; =>This Inner Loop Header: Depth=1
	ldur	w5, [x17, #-24]
	ldr	w6, [x17]
	ldr	w7, [x17, #24]
	cmp	w13, w5
	csel	w13, w13, w5, gt
	cmp	w4, w6
	csel	w4, w4, w6, gt
	cmp	w1, w7
	csel	w1, w1, w7, gt
	ldr	w5, [x17, #48]
	cmp	w0, w5
	csel	w0, w0, w5, gt
	add	x17, x17, #96
	subs	x3, x3, #4
	b.ne	LBB0_75
; %bb.76:
	cmp	w13, w4
	csel	w13, w13, w4, gt
	cmp	w13, w1
	csel	w13, w13, w1, gt
	cmp	w13, w0
	csel	w13, w13, w0, gt
	cmp	x15, x16
	b.eq	LBB0_79
LBB0_77:
	mov	w15, #24
	madd	x15, x14, x15, x2
	add	x15, x15, #12
	sub	x14, x8, x14
LBB0_78:                                ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x15], #24
	cmp	w13, w16
	csel	w13, w13, w16, gt
	subs	x14, x14, #1
	b.ne	LBB0_78
LBB0_79:
	cmp	w8, #1
	b.lt	LBB0_87
; %bb.80:
	cmp	w8, #4
	b.hs	LBB0_82
; %bb.81:
	mov	x14, #0
	b	LBB0_85
LBB0_82:
	and	x14, x8, #0xfffffffc
	add	x15, x2, #48
	mov	x16, x14
LBB0_83:                                ; =>This Inner Loop Header: Depth=1
	stur	w13, [x15, #-36]
	stur	w13, [x15, #-12]
	str	w13, [x15, #12]
	str	w13, [x15, #36]
	stur	x12, [x15, #-48]
	stur	x12, [x15, #-24]
	str	x12, [x15]
	str	x12, [x15, #24]
	add	x15, x15, #96
	subs	x16, x16, #4
	b.ne	LBB0_83
; %bb.84:
	cmp	x14, x8
	b.eq	LBB0_87
LBB0_85:
	mov	w15, #24
	madd	x15, x14, x15, x2
	sub	x14, x8, x14
LBB0_86:                                ; =>This Inner Loop Header: Depth=1
	str	w13, [x15, #12]
	str	x12, [x15], #24
	subs	x14, x14, #1
	b.ne	LBB0_86
LBB0_87:
	cmp	w8, #1
	cbz	w30, LBB0_91
; %bb.88:
	b.le	LBB0_103
; %bb.89:
	sub	x13, x8, #1
	cmp	x13, #4
	b.hs	LBB0_98
; %bb.90:
	mov	w12, #1
	b	LBB0_101
LBB0_91:
	b.le	LBB0_111
; %bb.92:
	add	x10, x2, #40
	sub	x12, x8, #1
	b	LBB0_94
LBB0_93:                                ;   in Loop: Header=BB0_94 Depth=1
	add	x10, x10, #24
	mov	x9, x11
	mov	x11, x13
	subs	x12, x12, #1
	b.eq	LBB0_111
LBB0_94:                                ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x10, #-8]
	cmp	w13, w11
	b.ge	LBB0_96
; %bb.95:                               ;   in Loop: Header=BB0_94 Depth=1
	stur	w11, [x10, #-8]
	mov	x13, x11
LBB0_96:                                ;   in Loop: Header=BB0_94 Depth=1
	ldr	x11, [x10]
	cmp	x11, x9
	b.ge	LBB0_93
; %bb.97:                               ;   in Loop: Header=BB0_94 Depth=1
	str	x9, [x10]
	mov	x11, x9
	b	LBB0_93
LBB0_98:
	and	x14, x13, #0xfffffffffffffffc
	orr	x12, x14, #0x1
	add	x15, x2, #56
	mov	x0, x14
	mov	x1, x11
	mov	x17, x11
	mov	x16, x11
LBB0_99:                                ; =>This Inner Loop Header: Depth=1
	ldur	w3, [x15, #-24]
	ldr	w4, [x15]
	ldr	w5, [x15, #24]
	cmp	w11, w3
	csel	w11, w11, w3, gt
	cmp	w1, w4
	csel	w1, w1, w4, gt
	cmp	w17, w5
	csel	w17, w17, w5, gt
	ldr	w3, [x15, #48]
	cmp	w16, w3
	csel	w16, w16, w3, gt
	add	x15, x15, #96
	subs	x0, x0, #4
	b.ne	LBB0_99
; %bb.100:
	cmp	w11, w1
	csel	w11, w11, w1, gt
	cmp	w11, w17
	csel	w11, w11, w17, gt
	cmp	w11, w16
	csel	w11, w11, w16, gt
	cmp	x13, x14
	b.eq	LBB0_103
LBB0_101:
	mov	w13, #24
	madd	x13, x12, x13, x2
	add	x13, x13, #8
	sub	x12, x8, x12
LBB0_102:                               ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13], #24
	cmp	w11, w14
	csel	w11, w11, w14, gt
	subs	x12, x12, #1
	b.ne	LBB0_102
LBB0_103:
	cmp	w10, #1
	b.lt	LBB0_127
; %bb.104:
	cmp	w8, #4
	b.hs	LBB0_106
; %bb.105:
	mov	x10, #0
	b	LBB0_109
LBB0_106:
	and	x10, x8, #0xfffffffc
	add	x12, x2, #56
	mov	x13, x10
LBB0_107:                               ; =>This Inner Loop Header: Depth=1
	stur	w11, [x12, #-48]
	stur	w11, [x12, #-24]
	str	w11, [x12]
	str	w11, [x12, #24]
	stur	x9, [x12, #-40]
	stur	x9, [x12, #-16]
	str	x9, [x12, #8]
	str	x9, [x12, #32]
	add	x12, x12, #96
	subs	x13, x13, #4
	b.ne	LBB0_107
; %bb.108:
	cmp	x10, x8
	b.eq	LBB0_111
LBB0_109:
	mov	w12, #24
	madd	x12, x10, x12, x2
	add	x12, x12, #16
	sub	x10, x8, x10
LBB0_110:                               ; =>This Inner Loop Header: Depth=1
	stur	w11, [x12, #-8]
	str	x9, [x12], #24
	subs	x10, x10, #1
	b.ne	LBB0_110
LBB0_111:
	cmp	w8, #1
	b.lt	LBB0_127
; %bb.112:
	mov	x0, x20
	mov	x1, x21
	bl	_btc_adjust_clock_combinations
	ldr	w8, [x19]
	cmp	w8, #1
	b.le	LBB0_115
; %bb.113:
	mov	w25, #1
	mov	w26, #24
LBB0_114:                               ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, x26
	mov	x0, x20
	mov	x1, x21
	bl	_btc_adjust_clock_combinations
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x26, x26, #24
	cmp	x25, x8
	b.lt	LBB0_114
LBB0_115:
	cmp	w8, #1
	b.lt	LBB0_127
; %bb.116:
	mov	x26, #0
	mov	x27, #0
	add	x25, x20, #56
	b	LBB0_118
LBB0_117:                               ;   in Loop: Header=BB0_118 Depth=1
	ldr	w1, [x3, #12]
	ldr	x2, [x21, #8]
	mov	x0, x22
	bl	_btc_apply_voltage_dependency_rules
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	ldr	w1, [x8, #8]
	ldr	x2, [x21, #16]
	add	x3, x8, #16
	mov	x0, x23
	bl	_btc_apply_voltage_dependency_rules
	ldr	x8, [x19, #8]
	add	x3, x8, x26
	ldr	w1, [x3, #8]
	ldr	x2, [x21, #8]
	mov	x0, x24
	bl	_btc_apply_voltage_dependency_rules
	ldr	w1, [x20, #104]
	ldr	x2, [x21, #8]
	ldr	x8, [x19, #8]
	add	x3, x8, x26
	mov	x0, x25
	bl	_btc_apply_voltage_dependency_rules
	add	x27, x27, #1
	ldrsw	x8, [x19]
	add	x26, x26, #24
	cmp	x27, x8
	b.ge	LBB0_120
LBB0_118:                               ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x3, x8, x26
	ldr	x9, [x3]
	ldr	x8, [sp, #40]
	cmp	x9, x8
	b.ge	LBB0_117
; %bb.119:                              ;   in Loop: Header=BB0_118 Depth=1
	str	x8, [x3]
	b	LBB0_117
LBB0_120:
	cmp	w8, #1
	b.lt	LBB0_127
; %bb.121:
	mov	x22, #0
	mov	w23, #16
LBB0_122:                               ; =>This Inner Loop Header: Depth=1
	ldp	x1, x2, [x21, #8]
	ldr	x8, [x19, #8]
	add	x4, x8, x23
	sub	x3, x4, #16
	mov	x0, x20
	bl	_btc_apply_voltage_delta_rules
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #24
	cmp	x22, x8
	b.lt	LBB0_122
; %bb.123:
	and	x9, x8, #0xffffffff
	mov	w8, #1
	str	w8, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_128
; %bb.124:
	ldr	x10, [x19, #8]
	ldr	x8, [x20, #40]
	cmp	w9, #9
	b.lo	LBB0_139
; %bb.125:
	add	x11, x19, #4
	add	x12, x19, #8
	mov	w13, #24
	madd	x13, x9, x13, x10
	sub	x13, x13, #16
	cmp	x11, x13
	ccmp	x10, x12, #2, lo
	b.lo	LBB0_139
; %bb.126:
	ands	x11, x9, #0x7
	mov	w12, #8
	csel	x11, x12, x11, eq
	sub	x11, x9, x11
	dup.2d	v0, x8
	add	x12, x10, #96
	mov	x13, x11
	b	LBB0_131
LBB0_127:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_128:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_129:                               ;   in Loop: Header=BB0_131 Depth=1
	str	wzr, [x19, #4]
LBB0_130:                               ;   in Loop: Header=BB0_131 Depth=1
	add	x12, x12, #192
	subs	x13, x13, #8
	b.eq	LBB0_140
LBB0_131:                               ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #96
	sub	x15, x12, #48
	ld3.2d	{ v16, v17, v18 }, [x14]
	ld3.2d	{ v4, v5, v6 }, [x15]
	mov	x14, x12
	ld3.2d	{ v1, v2, v3 }, [x14], #48
	cmgt.2d	v7, v16, v0
	xtn.2s	v7, v7
	fmov	w15, s7
	tbnz	w15, #0, LBB0_129
; %bb.132:                              ;   in Loop: Header=BB0_131 Depth=1
	mov.s	w15, v7[1]
	tbnz	w15, #0, LBB0_129
; %bb.133:                              ;   in Loop: Header=BB0_131 Depth=1
	cmgt.2d	v4, v4, v0
	xtn.2s	v4, v4
	fmov	w15, s4
	tbnz	w15, #0, LBB0_129
; %bb.134:                              ;   in Loop: Header=BB0_131 Depth=1
	mov.s	w15, v4[1]
	tbnz	w15, #0, LBB0_129
; %bb.135:                              ;   in Loop: Header=BB0_131 Depth=1
	cmgt.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w15, s1
	tbnz	w15, #0, LBB0_129
; %bb.136:                              ;   in Loop: Header=BB0_131 Depth=1
	mov.s	w15, v1[1]
	tbnz	w15, #0, LBB0_129
; %bb.137:                              ;   in Loop: Header=BB0_131 Depth=1
	ld3.2d	{ v1, v2, v3 }, [x14]
	cmgt.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w14, s1
	tbnz	w14, #0, LBB0_129
; %bb.138:                              ;   in Loop: Header=BB0_131 Depth=1
	mov.s	w14, v1[1]
	tbz	w14, #0, LBB0_130
	b	LBB0_129
LBB0_139:
	mov	x11, #0
LBB0_140:
	mov	w12, #24
	madd	x10, x11, x12, x10
	sub	x9, x9, x11
	b	LBB0_142
LBB0_141:                               ;   in Loop: Header=BB0_142 Depth=1
	add	x10, x10, #24
	subs	x9, x9, #1
	b.eq	LBB0_128
LBB0_142:                               ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x8
	b.le	LBB0_141
; %bb.143:                              ;   in Loop: Header=BB0_142 Depth=1
	str	wzr, [x19, #4]
	b	LBB0_141
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_HAINAN,8,3                ; @CHIP_HAINAN
	.comm	_CHIP_OLAND,8,3                 ; @CHIP_OLAND
	.no_dead_strip	_si_apply_state_adjust_rules
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.si_apply_state_adjust_rules
l_switch.table.si_apply_state_adjust_rules:
	.long	75000                           ; 0x124f8
	.long	75000                           ; 0x124f8
	.long	0                               ; 0x0
	.long	75000                           ; 0x124f8

.subsections_via_symbols
