	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_apply_state_adjust_rules
_ni_apply_state_adjust_rules:           ## @ni_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	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ni_get_ps
	movq	%rax, %r14
	cmpl	$1, (%r13)
	jle	LBB0_2
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_ni_dpm_vblank_too_short
	testq	%rax, %rax
	sete	%r12b
LBB0_3:
	movl	4(%r13), %eax
	leaq	56(%r13), %rbx
	leaq	8(%r13), %r15
	testl	%eax, %eax
	cmovneq	%rbx, %r15
	addq	$8, %r15
	testl	%eax, %eax
	je	LBB0_4
LBB0_15:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r8
	testb	%r12b, %r12b
	jne	LBB0_17
## %bb.16:
	movslq	(%r14), %rax
	leaq	(%rax,%rax,4), %rax
	movq	-40(%r8,%rax,8), %rcx
	movq	%rcx, (%r8)
	movq	-16(%r8,%rax,8), %rax
	movq	%rax, 24(%r8)
LBB0_17:
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	leaq	8(%r8), %rcx
	movq	%r13, %rdi
	callq	_btc_skip_blacklist_clocks
	movl	(%r14), %r11d
	cmpl	$2, %r11d
	jl	LBB0_31
## %bb.18:
	movq	8(%r14), %rcx
	movq	8(%rcx), %rdi
	leaq	(,%r11,8), %rax
	leaq	(%rax,%rax,4), %rsi
	movl	$40, %edx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$40, %rdx
	movq	%rbx, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_24
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rdx), %rbx
	cmpq	%rdi, %rbx
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rdi, 8(%rcx,%rdx)
	movq	%rdi, %rbx
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-24(%rcx,%rdx), %rax
	cmpq	%rax, 16(%rcx,%rdx)
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, 16(%rcx,%rdx)
	jmp	LBB0_23
LBB0_31:
	testb	%r12b, %r12b
	jne	LBB0_49
## %bb.32:
	movq	8(%r14), %r9
	movq	(%r9), %rdx
	movq	24(%r9), %rsi
	jmp	LBB0_37
LBB0_24:
	movq	8(%r14), %r9
	movq	(%r9), %rdx
	testb	%r12b, %r12b
	je	LBB0_33
## %bb.25:
	movl	$40, %ecx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	addq	$40, %rcx
	movq	%rdi, %rdx
	cmpq	%rcx, %rsi
	je	LBB0_46
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rcx), %rdi
	cmpq	%rdx, %rdi
	jge	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rdx, (%r9,%rcx)
	movq	%rdx, %rdi
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-16(%r9,%rcx), %rax
	cmpq	%rax, 24(%r9,%rcx)
	jge	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rax, 24(%r9,%rcx)
	jmp	LBB0_30
LBB0_4:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.5:
	movq	8(%r14), %rax
	movq	(%r15), %r9
	movq	8(%r15), %rdx
	movq	16(%r15), %rsi
	movq	24(%r15), %rdi
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %r8
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$40, %rcx
	cmpq	%rcx, %r8
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, (%rax,%rcx)
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, 8(%rax,%rcx)
	jg	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, 16(%rax,%rcx)
	jg	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdi, 24(%rax,%rcx)
	jle	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r9, (%rax,%rcx)
	cmpq	%rdx, 8(%rax,%rcx)
	jle	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, 8(%rax,%rcx)
	cmpq	%rsi, 16(%rax,%rcx)
	jle	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, 16(%rax,%rcx)
	cmpq	%rdi, 24(%rax,%rcx)
	jle	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, 24(%rax,%rcx)
	jmp	LBB0_14
LBB0_33:
	movq	24(%r9), %rsi
	leaq	-1(%r11), %r8
	cmpl	$2, %r11d
	jne	LBB0_40
## %bb.34:
	movl	$1, %edi
	jmp	LBB0_35
LBB0_40:
	leaq	104(%r9), %rcx
	movq	%r8, %r10
	andq	$-2, %r10
	negq	%r10
	movl	$1, %edi
	movq	%rsi, %rbx
	movq	%rdx, %rax
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rcx), %rdx
	cmpq	%rdx, %rax
	cmovgq	%rax, %rdx
	movq	-40(%rcx), %rsi
	cmpq	%rsi, %rbx
	cmovgq	%rbx, %rsi
	movq	-24(%rcx), %rax
	cmpq	%rax, %rdx
	cmovleq	%rax, %rdx
	movq	(%rcx), %rax
	cmpq	%rax, %rsi
	cmovleq	%rax, %rsi
	addq	$80, %rcx
	leaq	(%r10,%rdi), %r12
	addq	$2, %r12
	addq	$2, %rdi
	movq	%rsi, %rbx
	movq	%rdx, %rax
	cmpq	$1, %r12
	jne	LBB0_41
LBB0_35:
	testb	$1, %r8b
	je	LBB0_37
## %bb.36:
	leaq	(%rdi,%rdi,4), %rax
	movq	(%r9,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovleq	%rcx, %rdx
	movq	24(%r9,%rax,8), %rax
	cmpq	%rax, %rsi
	cmovleq	%rax, %rsi
LBB0_37:
	testl	%r11d, %r11d
	jle	LBB0_46
## %bb.38:
	cmpl	$1, %r11d
	jne	LBB0_42
## %bb.39:
	xorl	%ecx, %ecx
	jmp	LBB0_44
LBB0_42:
	movl	%r11d, %edi
	andl	$-2, %edi
	leaq	64(%r9), %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -64(%rbx)
	movq	%rsi, -40(%rbx)
	movq	%rdx, -24(%rbx)
	movq	%rsi, (%rbx)
	addq	$2, %rcx
	addq	$80, %rbx
	cmpq	%rcx, %rdi
	jne	LBB0_43
LBB0_44:
	testb	$1, %r11b
	je	LBB0_46
## %bb.45:
	leaq	(%rcx,%rcx,4), %rax
	movq	%rdx, (%r9,%rax,8)
	movq	%rsi, 24(%r9,%rax,8)
LBB0_46:
	cmpl	$2, %r11d
	jl	LBB0_49
## %bb.47:
	movl	$1, %r12d
	movl	$48, %ebx
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	8(%r14), %rcx
	leaq	(%rcx,%rbx), %r8
	addq	$-8, %r8
	addq	%rbx, %rcx
	movq	%r13, %rdi
	callq	_btc_skip_blacklist_clocks
	incq	%r12
	movslq	(%r14), %r11
	addq	$40, %rbx
	cmpq	%r11, %r12
	jl	LBB0_48
LBB0_49:
	testl	%r11d, %r11d
	jle	LBB0_66
## %bb.50:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdx
	addq	%r12, %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_btc_adjust_clock_combinations
	incq	%rbx
	movslq	(%r14), %rax
	addq	$40, %r12
	cmpq	%rax, %rbx
	jl	LBB0_51
## %bb.52:
	testl	%eax, %eax
	jle	LBB0_66
## %bb.53:
	leaq	60(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	52(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	48(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$16, %r13d
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	-8(%rcx,%r13), %rsi
	addq	%r13, %rcx
	movq	16(%r15), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_btc_apply_voltage_dependency_rules
	movq	8(%r14), %rax
	movq	-16(%rax,%r13), %rsi
	movq	24(%r15), %rdx
	leaq	(%rax,%r13), %rcx
	addq	$8, %rcx
	movq	%rbx, %rdi
	callq	_btc_apply_voltage_dependency_rules
	movq	8(%r14), %rcx
	movq	-16(%rcx,%r13), %rsi
	addq	%r13, %rcx
	movq	16(%r15), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_btc_apply_voltage_dependency_rules
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	96(%rax), %rsi
	movq	16(%r15), %rdx
	movq	8(%r14), %rcx
	addq	%r13, %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_btc_apply_voltage_dependency_rules
	incq	%r12
	movslq	(%r14), %rax
	addq	$40, %r13
	cmpq	%rax, %r12
	jl	LBB0_54
## %bb.55:
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_66
## %bb.56:
	movl	$16, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	movq	24(%r15), %rdx
	movq	8(%r14), %rcx
	leaq	(%rcx,%rbx), %r8
	addq	$8, %r8
	addq	%rbx, %rcx
	movq	%r13, %rdi
	callq	_btc_apply_voltage_delta_rules
	incq	%r12
	movslq	(%r14), %rax
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_57
## %bb.58:
	movl	%eax, %esi
	movl	$1, 4(%r14)
	testl	%esi, %esi
	jle	LBB0_65
## %bb.59:
	movq	8(%r14), %rax
	movq	8(%r13), %rcx
	movq	32(%r13), %rdx
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,4), %rsi
	xorl	%edi, %edi
	movq	_ATOM_PPLIB_R600_FLAGS_PCIEGEN2@GOTPCREL(%rip), %r8
	jmp	LBB0_60
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_60 Depth=1
	addq	$40, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_65
LBB0_60:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax,%rdi), %rbx
	cmpq	%rdx, %rbx
	jle	LBB0_62
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=1
	movl	$0, 4(%r14)
LBB0_62:                                ##   in Loop: Header=BB0_60 Depth=1
	cmpq	%rcx, %rbx
	jge	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_60 Depth=1
	movl	(%r8), %ebx
	notl	%ebx
	andl	%ebx, 32(%rax,%rdi)
	jmp	LBB0_64
LBB0_66:
	movl	$1, 4(%r14)
LBB0_65:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PPLIB_R600_FLAGS_PCIEGEN2,4,2 ## @ATOM_PPLIB_R600_FLAGS_PCIEGEN2
	.no_dead_strip	_ni_apply_state_adjust_rules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni_apply_state_adjust_rules
_ni_apply_state_adjust_rules:           ; @ni_apply_state_adjust_rules
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	mov	x0, x1
	bl	_ni_get_ps
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.le	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ni_dpm_vblank_too_short
	cmp	x0, #0
	cset	w22, eq
LBB0_3:
	ldr	w8, [x20, #4]
	add	x9, x20, #64
	add	x10, x20, #16
	cmp	w8, #0
	csel	x21, x10, x9, eq
	cbz	w8, LBB0_22
LBB0_4:
	ldr	x4, [x19, #8]
	tbnz	w22, #0, LBB0_6
; %bb.5:
	ldrsw	x8, [x19]
	mov	w9, #40
	madd	x8, x8, x9, x4
	ldur	x9, [x8, #-40]
	str	x9, [x4]
	ldur	x8, [x8, #-16]
	str	x8, [x4, #24]
LBB0_6:
	ldp	x2, x1, [x21]
	add	x3, x4, #8
	mov	x0, x20
	bl	_btc_skip_blacklist_clocks
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.7:
	ldr	x9, [x19, #8]
	ldr	x11, [x9, #8]
	add	x9, x9, #56
	sub	x12, x8, #1
	mov	x10, x12
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #40
	mov	x11, x13
	subs	x10, x10, #1
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x9, #-8]
	cmp	x13, x11
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	stur	x11, [x9, #-8]
	mov	x13, x11
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x14, [x9]
	ldur	x11, [x9, #-40]
	cmp	x14, x11
	b.ge	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x11, [x9]
	b	LBB0_8
LBB0_13:
	tbnz	w22, #0, LBB0_52
; %bb.14:
	ldr	x11, [x19, #8]
	ldr	x9, [x11]
	ldr	x10, [x11, #24]
	b	LBB0_40
LBB0_15:
	ldr	x11, [x19, #8]
	ldr	x9, [x11]
	cbz	w22, LBB0_33
; %bb.16:
	add	x10, x11, #40
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x10, x10, #40
	mov	x9, x11
	subs	x12, x12, #1
	b.eq	LBB0_48
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x9
	b.ge	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	str	x9, [x10]
	mov	x11, x9
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x13, [x10, #24]
	ldur	x9, [x10, #-16]
	cmp	x13, x9
	b.ge	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	str	x9, [x10, #24]
	b	LBB0_17
LBB0_22:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.23:
	ldr	x13, [x19, #8]
	ldp	x9, x10, [x21]
	ldp	x11, x12, [x21, #16]
	add	x13, x13, #16
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x13, x13, #40
	subs	x8, x8, #1
	b.eq	LBB0_4
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldur	x14, [x13, #-16]
	cmp	x14, x9
	b.le	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	stur	x9, [x13, #-16]
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
	ldur	x14, [x13, #-8]
	cmp	x14, x10
	b.le	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	stur	x10, [x13, #-8]
LBB0_29:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x14, [x13]
	cmp	x14, x11
	b.le	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	str	x11, [x13]
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x14, [x13, #8]
	cmp	x14, x12
	b.le	LBB0_24
; %bb.32:                               ;   in Loop: Header=BB0_25 Depth=1
	str	x12, [x13, #8]
	b	LBB0_24
LBB0_33:
	ldr	x10, [x11, #24]
	cmp	x12, #4
	b.hs	LBB0_35
; %bb.34:
	mov	w13, #1
	b	LBB0_38
LBB0_35:
	and	x14, x12, #0xfffffffffffffffc
	orr	x13, x14, #0x1
	add	x0, x11, #104
	mov	x1, x14
	mov	x17, x10
	mov	x16, x10
	mov	x15, x10
	mov	x4, x9
	mov	x3, x9
	mov	x2, x9
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldur	x5, [x0, #-64]
	ldur	x6, [x0, #-24]
	ldr	x7, [x0, #16]
	ldr	x22, [x0, #56]
	cmp	x9, x5
	csel	x9, x9, x5, gt
	cmp	x4, x6
	csel	x4, x4, x6, gt
	cmp	x3, x7
	csel	x3, x3, x7, gt
	cmp	x2, x22
	csel	x2, x2, x22, gt
	ldur	x5, [x0, #-40]
	ldr	x6, [x0]
	ldr	x7, [x0, #40]
	cmp	x10, x5
	csel	x10, x10, x5, gt
	cmp	x17, x6
	csel	x17, x17, x6, gt
	cmp	x16, x7
	csel	x16, x16, x7, gt
	ldr	x5, [x0, #80]
	cmp	x15, x5
	csel	x15, x15, x5, gt
	add	x0, x0, #160
	subs	x1, x1, #4
	b.ne	LBB0_36
; %bb.37:
	cmp	x9, x4
	csel	x9, x9, x4, gt
	cmp	x9, x3
	csel	x9, x9, x3, gt
	cmp	x9, x2
	csel	x9, x9, x2, gt
	cmp	x10, x17
	csel	x10, x10, x17, gt
	cmp	x10, x16
	csel	x10, x10, x16, gt
	cmp	x10, x15
	csel	x10, x10, x15, gt
	cmp	x12, x14
	b.eq	LBB0_40
LBB0_38:
	mov	w12, #40
	madd	x12, x13, x12, x11
	sub	x13, x8, x13
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12]
	cmp	x9, x14
	csel	x9, x9, x14, gt
	ldr	x14, [x12, #24]
	cmp	x10, x14
	csel	x10, x10, x14, gt
	add	x12, x12, #40
	subs	x13, x13, #1
	b.ne	LBB0_39
LBB0_40:
	cmp	w8, #1
	b.lt	LBB0_48
; %bb.41:
	cmp	w8, #4
	b.hs	LBB0_43
; %bb.42:
	mov	x12, #0
	b	LBB0_46
LBB0_43:
	and	x12, x8, #0xfffffffc
	add	x13, x11, #80
	mov	x14, x12
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	stur	x9, [x13, #-80]
	stur	x9, [x13, #-40]
	str	x9, [x13]
	str	x9, [x13, #40]
	stur	x10, [x13, #-56]
	stur	x10, [x13, #-16]
	str	x10, [x13, #24]
	str	x10, [x13, #64]
	add	x13, x13, #160
	subs	x14, x14, #4
	b.ne	LBB0_44
; %bb.45:
	cmp	x12, x8
	b.eq	LBB0_48
LBB0_46:
	mov	w13, #40
	madd	x11, x12, x13, x11
	sub	x12, x8, x12
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	str	x9, [x11]
	str	x10, [x11, #24]
	add	x11, x11, #40
	subs	x12, x12, #1
	b.ne	LBB0_47
LBB0_48:
	cmp	w8, #1
	b.le	LBB0_52
; %bb.49:
	mov	w22, #1
	mov	w23, #48
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldp	x2, x1, [x21]
	ldr	x8, [x19, #8]
	add	x3, x8, x23
	sub	x4, x3, #8
	mov	x0, x20
	bl	_btc_skip_blacklist_clocks
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #40
	cmp	x22, x8
	b.lt	LBB0_50
; %bb.51:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_52:
	cmp	w8, #1
	b.lt	LBB0_68
; %bb.53:
	mov	x22, #0
	mov	x23, #0
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x2, x8, x22
	mov	x0, x20
	mov	x1, x21
	bl	_btc_adjust_clock_combinations
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #40
	cmp	x23, x8
	b.lt	LBB0_54
; %bb.55:
	cmp	w8, #1
	b.lt	LBB0_68
; %bb.56:
	mov	x26, #0
	mov	x27, #0
	add	x22, x20, #60
	add	x23, x20, #56
	add	x24, x20, #52
	add	x25, x20, #48
LBB0_57:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	ldr	x1, [x8, #8]
	ldr	x2, [x21, #16]
	add	x3, x8, #16
	mov	x0, x22
	bl	_btc_apply_voltage_dependency_rules
	ldr	x8, [x19, #8]
	add	x3, x8, x26
	ldr	x1, [x3], #24
	ldr	x2, [x21, #24]
	mov	x0, x23
	bl	_btc_apply_voltage_dependency_rules
	ldr	x8, [x19, #8]
	add	x3, x8, x26
	ldr	x1, [x3], #16
	ldr	x2, [x21, #16]
	mov	x0, x24
	bl	_btc_apply_voltage_dependency_rules
	ldr	x1, [x20, #96]
	ldr	x2, [x21, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x26
	add	x3, x8, #16
	mov	x0, x25
	bl	_btc_apply_voltage_dependency_rules
	add	x27, x27, #1
	ldrsw	x8, [x19]
	add	x26, x26, #40
	cmp	x27, x8
	b.lt	LBB0_57
; %bb.58:
	cmp	w8, #1
	b.lt	LBB0_68
; %bb.59:
	mov	x22, #0
	mov	w23, #16
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	ldp	x1, x2, [x21, #16]
	ldr	x8, [x19, #8]
	add	x3, x8, x23
	add	x4, x3, #8
	mov	x0, x20
	bl	_btc_apply_voltage_delta_rules
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #40
	cmp	x22, x8
	b.lt	LBB0_60
; %bb.61:
	and	x8, x8, #0xffffffff
	mov	w9, #1
	str	w9, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_69
; %bb.62:
	ldr	x11, [x19, #8]
	ldr	x9, [x20, #32]
	ldr	x10, [x20, #8]
	add	x11, x11, #32
Lloh0:
	adrp	x12, _ATOM_PPLIB_R600_FLAGS_PCIEGEN2@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ATOM_PPLIB_R600_FLAGS_PCIEGEN2@GOTPAGEOFF]
	b	LBB0_64
LBB0_63:                                ;   in Loop: Header=BB0_64 Depth=1
	add	x11, x11, #40
	subs	x8, x8, #1
	b.eq	LBB0_69
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x11, #-16]
	cmp	x13, x9
	b.le	LBB0_66
; %bb.65:                               ;   in Loop: Header=BB0_64 Depth=1
	str	wzr, [x19, #4]
LBB0_66:                                ;   in Loop: Header=BB0_64 Depth=1
	cmp	x13, x10
	b.ge	LBB0_63
; %bb.67:                               ;   in Loop: Header=BB0_64 Depth=1
	ldr	w13, [x12]
	ldr	w14, [x11]
	bic	w13, w14, w13
	str	w13, [x11]
	b	LBB0_63
LBB0_68:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_69:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PPLIB_R600_FLAGS_PCIEGEN2,4,2 ; @ATOM_PPLIB_R600_FLAGS_PCIEGEN2
	.no_dead_strip	_ni_apply_state_adjust_rules
.subsections_via_symbols
