	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_populate_mclk_value
_ni_populate_mclk_value:                ## @ni_populate_mclk_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -128(%rbp)                ## 4-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rdi, %r12
	callq	_rv770_get_pi
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ni_get_pi
	movl	(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	12(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rax), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	20(%rax), %ecx
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	movl	24(%rax), %r15d
	movl	28(%rax), %ebx
	movq	_COMPUTE_MEMORY_PLL_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_radeon_atom_get_clock_dividers
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%r13d, -120(%rbp)               ## 4-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.2:
	movq	_MC_SEQ_MISC7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	testl	$134217728, %eax                ## imm = 0x8000000
	je	LBB0_4
## %bb.3:
	movl	$1, -104(%rbp)
LBB0_4:
	movl	-100(%rbp), %esi
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_cypress_map_clkf_to_ibias
	movq	_CLKR_MASK@GOTPCREL(%rip), %rcx
	movq	_YCLK_POST_DIV_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	orl	(%rcx), %r13d
	movl	%eax, %r12d
	movq	_CLKF_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_CLKFRAC_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_IBIAS_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	notl	%r13d
	movl	-92(%rbp), %edi
	callq	_CLKR
	movl	%eax, %r14d
	movl	-104(%rbp), %edi
	callq	_YCLK_POST_DIV
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	-100(%rbp), %edi
	callq	_CLKF
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	-96(%rbp), %edi
	callq	_CLKFRAC
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	%r12d, -116(%rbp)               ## 4-byte Spill
	movl	%r12d, %edi
	callq	_IBIAS
	movq	_VCO_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	orl	%edx, %esi
	notl	%ecx
	andl	%edx, %ecx
	cmpq	$0, -88(%rbp)
	cmovnel	%esi, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, (%rcx)
	movl	-72(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_5
## %bb.6:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	_YCLK_POST_DIV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CLKR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CLKF_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CLKFRAC_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_IBIAS_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r12d
	movl	-92(%rbp), %edi
	callq	_CLKR
	movl	%eax, %ebx
	movl	-104(%rbp), %edi
	callq	_YCLK_POST_DIV
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	-100(%rbp), %edi
	callq	_CLKF
	movl	%eax, %r15d
	orl	%r14d, %r15d
	movl	-96(%rbp), %edi
	callq	_CLKFRAC
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	-116(%rbp), %edi                ## 4-byte Reload
	callq	_IBIAS
	orl	%ebx, %eax
	orl	%r12d, %eax
	movq	_PDNB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%ecx, %eax
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	movl	%eax, %r12d
	cmovnel	%edx, %r12d
	cmpq	$0, -88(%rbp)
	movq	_VCO_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_8
## %bb.7:
	orl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_5:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_8:
	notl	%eax
	andl	%eax, -48(%rbp)                 ## 4-byte Folded Spill
LBB0_9:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	-76(%rbp), %eax                 ## 4-byte Reload
LBB0_10:
	andl	%r13d, %r15d
	orl	%eax, %ebx
	cmpq	$0, 8(%rcx)
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	je	LBB0_11
## %bb.12:
	movl	-104(%rbp), %ecx
	imull	%esi, %ecx
	movq	_ASIC_INTERNAL_MEMORY_SS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-152(%rbp), %rsi
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_radeon_atombios_get_asic_ss_info
	testq	%rax, %rax
	movl	-80(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_14
## %bb.13:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r12), %ebx
	movl	-92(%rbp), %edi
	callq	_rv740_get_decoded_reference_divider
	movl	%eax, %ecx
	leal	(%rbx,%rbx,4), %eax
	imull	-152(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	movl	-100(%rbp), %ecx
	movl	-96(%rbp), %eax
	shll	$14, %ecx
	shll	$11, %eax
	addl	%ecx, %eax
	imull	-148(%rbp), %eax
	imull	$625, %r12d, %ecx               ## imm = 0x271
	cltd
	idivl	%ecx
	movq	_CLKV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r13d
	movl	%eax, %edi
	callq	_CLKV
	orl	%eax, %r13d
	movq	_CLKS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
	movl	%r12d, %edi
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	callq	_CLKS
	orl	%eax, %ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_14:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_11:
	movl	-80(%rbp), %r13d                ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
LBB0_15:
	orl	%ebx, %r15d
	movq	(%rcx), %rdi
	callq	_rv740_get_dll_speed
	movq	_DLL_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movl	%eax, %edi
	callq	_DLL_SPEED
	orl	%r14d, %eax
	movq	_MRDCKA0_PDNB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_MRDCKA1_PDNB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	_MRDCKB0_PDNB@GOTPCREL(%rip), %rdx
	movq	_MRDCKB1_PDNB@GOTPCREL(%rip), %rsi
	movq	_MRDCKC0_PDNB@GOTPCREL(%rip), %rdi
	movq	_MRDCKC1_PDNB@GOTPCREL(%rip), %r8
	movq	_MRDCKD0_PDNB@GOTPCREL(%rip), %r9
	movq	_MRDCKD1_PDNB@GOTPCREL(%rip), %r10
	orl	%eax, %ebx
	orl	%ecx, %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
	orl	(%r8), %ebx
	orl	(%r9), %ebx
	orl	(%r10), %ebx
	jmp	LBB0_18
LBB0_17:
	orl	%ebx, %ecx
	movq	_MRDCKB0_PDNB@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MRDCKB1_PDNB@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MRDCKC0_PDNB@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MRDCKC1_PDNB@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MRDCKD0_PDNB@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_MRDCKD1_PDNB@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %ebx
LBB0_18:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	-160(%rbp), %r14                ## 8-byte Reload
	movq	%rax, 64(%r14)
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 56(%r14)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 48(%r14)
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 40(%r14)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r14)
	movl	-132(%rbp), %edi                ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 16(%r14)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r14)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, (%r14)
	movl	-124(%rbp), %eax                ## 4-byte Reload
LBB0_19:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPUTE_MEMORY_PLL_PARAM,4,2   ## @COMPUTE_MEMORY_PLL_PARAM
	.comm	_MC_SEQ_MISC7,4,2               ## @MC_SEQ_MISC7
	.comm	_CLKR_MASK,4,2                  ## @CLKR_MASK
	.comm	_YCLK_POST_DIV_MASK,4,2         ## @YCLK_POST_DIV_MASK
	.comm	_CLKF_MASK,4,2                  ## @CLKF_MASK
	.comm	_CLKFRAC_MASK,4,2               ## @CLKFRAC_MASK
	.comm	_IBIAS_MASK,4,2                 ## @IBIAS_MASK
	.comm	_VCO_MODE,4,2                   ## @VCO_MODE
	.comm	_PDNB,4,2                       ## @PDNB
	.comm	_ASIC_INTERNAL_MEMORY_SS,4,2    ## @ASIC_INTERNAL_MEMORY_SS
	.comm	_CLKV_MASK,4,2                  ## @CLKV_MASK
	.comm	_CLKS_MASK,4,2                  ## @CLKS_MASK
	.comm	_DLL_SPEED_MASK,4,2             ## @DLL_SPEED_MASK
	.comm	_MRDCKA0_PDNB,4,2               ## @MRDCKA0_PDNB
	.comm	_MRDCKA1_PDNB,4,2               ## @MRDCKA1_PDNB
	.comm	_MRDCKB0_PDNB,4,2               ## @MRDCKB0_PDNB
	.comm	_MRDCKB1_PDNB,4,2               ## @MRDCKB1_PDNB
	.comm	_MRDCKC0_PDNB,4,2               ## @MRDCKC0_PDNB
	.comm	_MRDCKC1_PDNB,4,2               ## @MRDCKC1_PDNB
	.comm	_MRDCKD0_PDNB,4,2               ## @MRDCKD0_PDNB
	.comm	_MRDCKD1_PDNB,4,2               ## @MRDCKD1_PDNB
	.no_dead_strip	_ni_populate_mclk_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni_populate_mclk_value
_ni_populate_mclk_value:                ; @ni_populate_mclk_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	str	w5, [sp, #52]                   ; 4-byte Folded Spill
	mov	x21, x4
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	mov	x19, x2
	mov	x24, x0
	bl	_rv770_get_pi
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x24
	bl	_ni_get_pi
	ldp	w8, w26, [x0]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldp	w25, w20, [x0, #8]
	ldp	w22, w27, [x0, #16]
	ldp	w28, w23, [x0, #24]
Lloh0:
	adrp	x8, _COMPUTE_MEMORY_PLL_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMPUTE_MEMORY_PLL_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x4, sp, #72
	mov	x0, x24
	mov	x2, x19
	mov	x3, x21
	bl	_radeon_atom_get_clock_dividers
	cbnz	w0, LBB0_15
; %bb.1:
	stp	w26, w22, [sp, #16]             ; 8-byte Folded Spill
	stp	w25, w0, [sp, #24]              ; 8-byte Folded Spill
	str	w20, [sp, #32]                  ; 4-byte Folded Spill
	stp	w28, w27, [sp, #4]              ; 8-byte Folded Spill
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	str	w21, [sp]                       ; 4-byte Folded Spill
	cbnz	w21, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _MC_SEQ_MISC7@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MC_SEQ_MISC7@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_RREG32
	tbz	w0, #27, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [sp, #72]
LBB0_4:
	ldr	w1, [sp, #76]
	mov	x22, x24
	mov	x0, x24
	bl	_cypress_map_clkf_to_ibias
	mov	x23, x0
Lloh6:
	adrp	x24, _CLKR_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CLKR_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh8:
	adrp	x9, _YCLK_POST_DIV_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _YCLK_POST_DIV_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _CLKF_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CLKF_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _CLKFRAC_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CLKFRAC_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _IBIAS_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IBIAS_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	bic	w26, w9, w8
	ldr	w0, [sp, #84]
	bl	_CLKR
	orr	w26, w26, w0
	ldr	w0, [sp, #72]
	bl	_YCLK_POST_DIV
	orr	w26, w26, w0
	ldr	w0, [sp, #76]
	bl	_CLKF
	orr	w26, w26, w0
	ldr	w0, [sp, #80]
	bl	_CLKFRAC
	orr	w26, w26, w0
	mov	x0, x23
	bl	_IBIAS
	mov	x27, x0
	ldr	x8, [sp, #88]
Lloh20:
	adrp	x21, _VCO_MODE@GOTPAGE
Lloh21:
	ldr	x21, [x21, _VCO_MODE@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w11, [sp, #16]                  ; 4-byte Folded Reload
	orr	w10, w9, w11
	bic	w9, w11, w9
	cmp	x8, #0
	csel	w8, w9, w10, eq
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x8, [x11]
	ldr	w28, [sp, #32]                  ; 4-byte Folded Reload
	ldr	w20, [sp, #24]                  ; 4-byte Folded Reload
	mov	x25, x19
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x24]
Lloh22:
	adrp	x9, _YCLK_POST_DIV_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _YCLK_POST_DIV_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _CLKF_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CLKF_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _CLKFRAC_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CLKFRAC_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _IBIAS_MASK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IBIAS_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w24, w20, w8
	ldr	w0, [sp, #84]
	bl	_CLKR
	orr	w24, w24, w0
	ldr	w0, [sp, #72]
	bl	_YCLK_POST_DIV
	orr	w24, w24, w0
	ldr	w0, [sp, #76]
	bl	_CLKF
	orr	w24, w24, w0
	ldr	w0, [sp, #80]
	bl	_CLKFRAC
	orr	w24, w24, w0
	mov	x0, x23
	bl	_IBIAS
Lloh34:
	adrp	x8, _PDNB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PDNB@GOTPAGEOFF]
	orr	w9, w24, w0
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
Lloh36:
	ldr	w8, [x8]
	bic	w10, w9, w8
	orr	w8, w8, w9
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w20, w8, w10, eq
	ldr	x8, [sp, #88]
	ldr	w9, [x21]
	bic	w10, w28, w9
	orr	w9, w9, w28
	cmp	x8, #0
	csel	w28, w10, w9, eq
LBB0_6:
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w23, [sp, #52]                  ; 4-byte Folded Reload
	orr	w21, w26, w27
	ldr	x8, [x11, #8]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w8, [sp, #72]
	mul	w3, w8, w25
Lloh37:
	adrp	x8, _ASIC_INTERNAL_MEMORY_SS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ASIC_INTERNAL_MEMORY_SS@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	add	x1, sp, #64
	mov	x0, x22
	bl	_radeon_atombios_get_asic_ss_info
	ldp	w26, w24, [sp, #8]              ; 8-byte Folded Reload
	ldr	w27, [sp, #4]                   ; 4-byte Folded Reload
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w22, [x22]
	ldr	w0, [sp, #84]
	bl	_rv740_get_decoded_reference_divider
	add	w8, w22, w22, lsl #2
	ldp	w9, w10, [sp, #64]
	mul	w9, w9, w0
	sdiv	w22, w8, w9
	ldp	w8, w9, [sp, #76]
	lsl	w9, w9, #11
	add	w8, w9, w8, lsl #14
	mul	w8, w8, w10
	mov	w9, #625
	mul	w9, w22, w9
	sdiv	w0, w8, w9
Lloh40:
	adrp	x8, _CLKV_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CLKV_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	bic	w23, w27, w8
	bl	_CLKV
	orr	w27, w23, w0
Lloh43:
	adrp	x8, _CLKS_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CLKS_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	bic	w23, w24, w8
	mov	x0, x22
	bl	_CLKS
	orr	w24, w23, w0
	ldr	w23, [sp, #52]                  ; 4-byte Folded Reload
LBB0_9:
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_11
LBB0_10:
	ldp	w26, w24, [sp, #8]              ; 8-byte Folded Reload
	ldr	w27, [sp, #4]                   ; 4-byte Folded Reload
LBB0_11:
	ldr	x0, [x11]
	mov	x1, x25
	bl	_rv740_get_dll_speed
Lloh46:
	adrp	x8, _DLL_SPEED_MASK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DLL_SPEED_MASK@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	bic	w22, w9, w8
	bl	_DLL_SPEED
	orr	w8, w22, w0
Lloh49:
	adrp	x9, _MRDCKA0_PDNB@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MRDCKA0_PDNB@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
Lloh52:
	adrp	x10, _MRDCKA1_PDNB@GOTPAGE
Lloh53:
	ldr	x10, [x10, _MRDCKA1_PDNB@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
Lloh55:
	adrp	x11, _MRDCKB0_PDNB@GOTPAGE
Lloh56:
	ldr	x11, [x11, _MRDCKB0_PDNB@GOTPAGEOFF]
	cbz	w23, LBB0_13
; %bb.12:
	ldr	w11, [x11]
Lloh57:
	adrp	x12, _MRDCKB1_PDNB@GOTPAGE
Lloh58:
	ldr	x12, [x12, _MRDCKB1_PDNB@GOTPAGEOFF]
Lloh59:
	ldr	w12, [x12]
Lloh60:
	adrp	x13, _MRDCKC0_PDNB@GOTPAGE
Lloh61:
	ldr	x13, [x13, _MRDCKC0_PDNB@GOTPAGEOFF]
Lloh62:
	ldr	w13, [x13]
Lloh63:
	adrp	x14, _MRDCKC1_PDNB@GOTPAGE
Lloh64:
	ldr	x14, [x14, _MRDCKC1_PDNB@GOTPAGEOFF]
Lloh65:
	ldr	w14, [x14]
Lloh66:
	adrp	x15, _MRDCKD0_PDNB@GOTPAGE
Lloh67:
	ldr	x15, [x15, _MRDCKD0_PDNB@GOTPAGEOFF]
Lloh68:
	ldr	w15, [x15]
Lloh69:
	adrp	x16, _MRDCKD1_PDNB@GOTPAGE
Lloh70:
	ldr	x16, [x16, _MRDCKD1_PDNB@GOTPAGEOFF]
Lloh71:
	ldr	w16, [x16]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	orr	w8, w8, w15
	orr	w22, w8, w16
	b	LBB0_14
LBB0_13:
	orr	w9, w10, w9
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh72:
	adrp	x10, _MRDCKB1_PDNB@GOTPAGE
Lloh73:
	ldr	x10, [x10, _MRDCKB1_PDNB@GOTPAGEOFF]
Lloh74:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh75:
	adrp	x10, _MRDCKC0_PDNB@GOTPAGE
Lloh76:
	ldr	x10, [x10, _MRDCKC0_PDNB@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
Lloh78:
	adrp	x11, _MRDCKC1_PDNB@GOTPAGE
Lloh79:
	ldr	x11, [x11, _MRDCKC1_PDNB@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh80:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh81:
	adrp	x10, _MRDCKD0_PDNB@GOTPAGE
Lloh82:
	ldr	x10, [x10, _MRDCKD0_PDNB@GOTPAGEOFF]
Lloh83:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh84:
	adrp	x10, _MRDCKD1_PDNB@GOTPAGE
Lloh85:
	ldr	x10, [x10, _MRDCKD1_PDNB@GOTPAGEOFF]
Lloh86:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w22, w8, w9
LBB0_14:
	mov	x0, x25
	bl	_cpu_to_be32
	str	x0, [x19, #64]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x19, #56]
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	bl	_cpu_to_be32
	str	x0, [x19, #48]
	mov	x0, x20
	bl	_cpu_to_be32
	str	x0, [x19, #40]
	mov	x0, x28
	bl	_cpu_to_be32
	str	x0, [x19, #32]
	mov	x0, x22
	bl	_cpu_to_be32
	str	x0, [x19, #24]
	mov	x0, x26
	bl	_cpu_to_be32
	str	x0, [x19, #16]
	mov	x0, x27
	bl	_cpu_to_be32
	str	x0, [x19, #8]
	mov	x0, x24
	bl	_cpu_to_be32
	str	x0, [x19]
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
LBB0_15:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPUTE_MEMORY_PLL_PARAM,4,2   ; @COMPUTE_MEMORY_PLL_PARAM
	.comm	_MC_SEQ_MISC7,4,2               ; @MC_SEQ_MISC7
	.comm	_CLKR_MASK,4,2                  ; @CLKR_MASK
	.comm	_YCLK_POST_DIV_MASK,4,2         ; @YCLK_POST_DIV_MASK
	.comm	_CLKF_MASK,4,2                  ; @CLKF_MASK
	.comm	_CLKFRAC_MASK,4,2               ; @CLKFRAC_MASK
	.comm	_IBIAS_MASK,4,2                 ; @IBIAS_MASK
	.comm	_VCO_MODE,4,2                   ; @VCO_MODE
	.comm	_PDNB,4,2                       ; @PDNB
	.comm	_ASIC_INTERNAL_MEMORY_SS,4,2    ; @ASIC_INTERNAL_MEMORY_SS
	.comm	_CLKV_MASK,4,2                  ; @CLKV_MASK
	.comm	_CLKS_MASK,4,2                  ; @CLKS_MASK
	.comm	_DLL_SPEED_MASK,4,2             ; @DLL_SPEED_MASK
	.comm	_MRDCKA0_PDNB,4,2               ; @MRDCKA0_PDNB
	.comm	_MRDCKA1_PDNB,4,2               ; @MRDCKA1_PDNB
	.comm	_MRDCKB0_PDNB,4,2               ; @MRDCKB0_PDNB
	.comm	_MRDCKB1_PDNB,4,2               ; @MRDCKB1_PDNB
	.comm	_MRDCKC0_PDNB,4,2               ; @MRDCKC0_PDNB
	.comm	_MRDCKC1_PDNB,4,2               ; @MRDCKC1_PDNB
	.comm	_MRDCKD0_PDNB,4,2               ; @MRDCKD0_PDNB
	.comm	_MRDCKD1_PDNB,4,2               ; @MRDCKD1_PDNB
	.no_dead_strip	_ni_populate_mclk_value
.subsections_via_symbols
