	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc_set_ulv_dram_timing
_btc_set_ulv_dram_timing:               ## @btc_set_ulv_dram_timing
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_evergreen_get_pi
	movq	(%rax), %rbx
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_radeon_atom_set_engine_dram_timings
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_rv770_calculate_memory_refresh_rate
	movq	_MC_ARB_RFSH_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_POWERMODE0
	movq	_POWERMODE0_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_cypress_calculate_burst_time
	movq	_MC_ARB_BURST_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_STATE0
	movq	_STATE0_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_ARB_RFSH_RATE,4,2           ## @MC_ARB_RFSH_RATE
	.comm	_POWERMODE0_MASK,4,2            ## @POWERMODE0_MASK
	.comm	_MC_ARB_BURST_TIME,4,2          ## @MC_ARB_BURST_TIME
	.comm	_STATE0_MASK,4,2                ## @STATE0_MASK
	.no_dead_strip	_btc_set_ulv_dram_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc_set_ulv_dram_timing
_btc_set_ulv_dram_timing:               ; @btc_set_ulv_dram_timing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_evergreen_get_pi
	ldr	x21, [x0]
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_radeon_atom_set_engine_dram_timings
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_rv770_calculate_memory_refresh_rate
Lloh0:
	adrp	x8, _MC_ARB_RFSH_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC_ARB_RFSH_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_POWERMODE0
	mov	x1, x0
Lloh3:
	adrp	x8, _POWERMODE0_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWERMODE0_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x20
	bl	_WREG32_P
	ldp	w2, w1, [x21]
	mov	x0, x19
	bl	_cypress_calculate_burst_time
Lloh6:
	adrp	x8, _MC_ARB_BURST_TIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MC_ARB_BURST_TIME@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_STATE0
	mov	x1, x0
Lloh9:
	adrp	x8, _STATE0_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATE0_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	bl	_WREG32_P
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_ARB_RFSH_RATE,4,2           ; @MC_ARB_RFSH_RATE
	.comm	_POWERMODE0_MASK,4,2            ; @POWERMODE0_MASK
	.comm	_MC_ARB_BURST_TIME,4,2          ; @MC_ARB_BURST_TIME
	.comm	_STATE0_MASK,4,2                ; @STATE0_MASK
	.no_dead_strip	_btc_set_ulv_dram_timing
.subsections_via_symbols
