	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_program_response_times ## -- Begin function cypress_program_response_times
	.p2align	4, 0x90
_cypress_program_response_times:        ## @cypress_program_response_times
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_radeon_get_xclk
	imull	$460, %eax, %eax                ## imm = 0x1CC
	cltq
	imulq	$1374389535, %rax, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$37, %rdx
	addl	%eax, %edx
	movq	_RV770_SMC_SOFT_REGISTER_mclk_switch_lim@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_rv770_write_smc_soft_register
	movq	_RV770_SMC_SOFT_REGISTER_mvdd_chg_time@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rv770_write_smc_soft_register
	movq	_RV770_SMC_SOFT_REGISTER_mc_block_delay@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$170, %edx
	callq	_rv770_write_smc_soft_register
	movq	%rbx, %rdi
	callq	_rv770_program_response_times
	movq	%rbx, %rdi
	callq	_ASIC_IS_LOMBOK
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_RV770_SMC_SOFT_REGISTER_is_asic_lombok@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rv770_write_smc_soft_register  ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RV770_SMC_SOFT_REGISTER_mclk_switch_lim,4,2 ## @RV770_SMC_SOFT_REGISTER_mclk_switch_lim
	.comm	_RV770_SMC_SOFT_REGISTER_mvdd_chg_time,4,2 ## @RV770_SMC_SOFT_REGISTER_mvdd_chg_time
	.comm	_RV770_SMC_SOFT_REGISTER_mc_block_delay,4,2 ## @RV770_SMC_SOFT_REGISTER_mc_block_delay
	.comm	_RV770_SMC_SOFT_REGISTER_is_asic_lombok,4,2 ## @RV770_SMC_SOFT_REGISTER_is_asic_lombok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_program_response_times ; -- Begin function cypress_program_response_times
	.p2align	2
_cypress_program_response_times:        ; @cypress_program_response_times
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_radeon_get_xclk
	mov	w8, #460
	mul	w8, w0, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w2, w8, w9
Lloh0:
	adrp	x8, _RV770_SMC_SOFT_REGISTER_mclk_switch_lim@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RV770_SMC_SOFT_REGISTER_mclk_switch_lim@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rv770_write_smc_soft_register
Lloh3:
	adrp	x8, _RV770_SMC_SOFT_REGISTER_mvdd_chg_time@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RV770_SMC_SOFT_REGISTER_mvdd_chg_time@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_rv770_write_smc_soft_register
Lloh6:
	adrp	x8, _RV770_SMC_SOFT_REGISTER_mc_block_delay@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RV770_SMC_SOFT_REGISTER_mc_block_delay@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #170
	bl	_rv770_write_smc_soft_register
	mov	x0, x19
	bl	_rv770_program_response_times
	mov	x0, x19
	bl	_ASIC_IS_LOMBOK
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _RV770_SMC_SOFT_REGISTER_is_asic_lombok@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RV770_SMC_SOFT_REGISTER_is_asic_lombok@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rv770_write_smc_soft_register
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RV770_SMC_SOFT_REGISTER_mclk_switch_lim,4,2 ; @RV770_SMC_SOFT_REGISTER_mclk_switch_lim
	.comm	_RV770_SMC_SOFT_REGISTER_mvdd_chg_time,4,2 ; @RV770_SMC_SOFT_REGISTER_mvdd_chg_time
	.comm	_RV770_SMC_SOFT_REGISTER_mc_block_delay,4,2 ; @RV770_SMC_SOFT_REGISTER_mc_block_delay
	.comm	_RV770_SMC_SOFT_REGISTER_is_asic_lombok,4,2 ; @RV770_SMC_SOFT_REGISTER_is_asic_lombok
.subsections_via_symbols
