	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_program_response_times
_ni_program_response_times:             ## @ni_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_NI_SMC_SOFT_REGISTER_mvdd_chg_time@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_rv770_write_smc_soft_register
	movl	8(%r14), %ebx
	testl	%ebx, %ebx
	movl	$1000, %eax                     ## imm = 0x3E8
	cmovel	%eax, %ebx
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	cmovel	%eax, %r15d
	movq	%r14, %rdi
	callq	_radeon_get_xclk
	imull	%eax, %ebx
	movslq	%ebx, %rcx
	imulq	$1374389535, %rcx, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$41, %rdx
	addl	%ecx, %edx
	imull	%eax, %r15d
	movslq	%r15d, %rcx
	imulq	$1374389535, %rcx, %r15         ## imm = 0x51EB851F
	movq	%r15, %rcx
	shrq	$63, %rcx
	sarq	$41, %r15
	addl	%ecx, %r15d
	imull	$15000, %eax, %ecx              ## imm = 0x3A98
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %r13         ## imm = 0x51EB851F
	movq	%r13, %rcx
	shrq	$63, %rcx
	sarq	$41, %r13
	addl	%ecx, %r13d
	imull	$100000, %eax, %ecx             ## imm = 0x186A0
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$41, %rbx
	addl	%ecx, %ebx
	imull	$460, %eax, %eax                ## imm = 0x1CC
	cltq
	imulq	$1374389535, %rax, %r12         ## imm = 0x51EB851F
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$37, %r12
	addl	%eax, %r12d
	movq	_NI_SMC_SOFT_REGISTER_delay_vreg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_rv770_write_smc_soft_register
	movq	_NI_SMC_SOFT_REGISTER_delay_bbias@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_rv770_write_smc_soft_register
	movq	_NI_SMC_SOFT_REGISTER_delay_acpi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_rv770_write_smc_soft_register
	movq	_NI_SMC_SOFT_REGISTER_mclk_chg_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rv770_write_smc_soft_register
	movq	_NI_SMC_SOFT_REGISTER_mc_block_delay@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$170, %edx
	callq	_rv770_write_smc_soft_register
	movq	_NI_SMC_SOFT_REGISTER_mclk_switch_lim@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rv770_write_smc_soft_register  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_SMC_SOFT_REGISTER_mvdd_chg_time,4,2 ## @NI_SMC_SOFT_REGISTER_mvdd_chg_time
	.comm	_NI_SMC_SOFT_REGISTER_delay_vreg,4,2 ## @NI_SMC_SOFT_REGISTER_delay_vreg
	.comm	_NI_SMC_SOFT_REGISTER_delay_bbias,4,2 ## @NI_SMC_SOFT_REGISTER_delay_bbias
	.comm	_NI_SMC_SOFT_REGISTER_delay_acpi,4,2 ## @NI_SMC_SOFT_REGISTER_delay_acpi
	.comm	_NI_SMC_SOFT_REGISTER_mclk_chg_timeout,4,2 ## @NI_SMC_SOFT_REGISTER_mclk_chg_timeout
	.comm	_NI_SMC_SOFT_REGISTER_mc_block_delay,4,2 ## @NI_SMC_SOFT_REGISTER_mc_block_delay
	.comm	_NI_SMC_SOFT_REGISTER_mclk_switch_lim,4,2 ## @NI_SMC_SOFT_REGISTER_mclk_switch_lim
	.no_dead_strip	_ni_program_response_times
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ni_program_response_times
_ni_program_response_times:             ; @ni_program_response_times
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _NI_SMC_SOFT_REGISTER_mvdd_chg_time@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_mvdd_chg_time@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_rv770_write_smc_soft_register
	ldr	w8, [x19, #8]
	mov	w9, #1000
	ldr	w10, [x19]
	cmp	w8, #0
	csel	w20, w9, w8, eq
	cmp	w10, #0
	csel	w21, w9, w10, eq
	mov	x0, x19
	bl	_radeon_get_xclk
	mul	w8, w20, w0
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #41
	add	w2, w8, w10
	mul	w8, w21, w0
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #41
	add	w20, w8, w10
	mov	w8, #15000
	mul	w8, w0, w8
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #41
	add	w21, w8, w10
	mov	w8, #34464
	movk	w8, #1, lsl #16
	mul	w8, w0, w8
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #41
	add	w22, w8, w10
	mov	w8, #460
	mul	w8, w0, w8
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w23, w8, w9
Lloh3:
	adrp	x8, _NI_SMC_SOFT_REGISTER_delay_vreg@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_delay_vreg@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rv770_write_smc_soft_register
Lloh6:
	adrp	x8, _NI_SMC_SOFT_REGISTER_delay_bbias@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_delay_bbias@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_rv770_write_smc_soft_register
Lloh9:
	adrp	x8, _NI_SMC_SOFT_REGISTER_delay_acpi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_delay_acpi@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_rv770_write_smc_soft_register
Lloh12:
	adrp	x8, _NI_SMC_SOFT_REGISTER_mclk_chg_timeout@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_mclk_chg_timeout@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_rv770_write_smc_soft_register
Lloh15:
	adrp	x8, _NI_SMC_SOFT_REGISTER_mc_block_delay@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_mc_block_delay@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #170
	bl	_rv770_write_smc_soft_register
Lloh18:
	adrp	x8, _NI_SMC_SOFT_REGISTER_mclk_switch_lim@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NI_SMC_SOFT_REGISTER_mclk_switch_lim@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rv770_write_smc_soft_register
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_NI_SMC_SOFT_REGISTER_mvdd_chg_time,4,2 ; @NI_SMC_SOFT_REGISTER_mvdd_chg_time
	.comm	_NI_SMC_SOFT_REGISTER_delay_vreg,4,2 ; @NI_SMC_SOFT_REGISTER_delay_vreg
	.comm	_NI_SMC_SOFT_REGISTER_delay_bbias,4,2 ; @NI_SMC_SOFT_REGISTER_delay_bbias
	.comm	_NI_SMC_SOFT_REGISTER_delay_acpi,4,2 ; @NI_SMC_SOFT_REGISTER_delay_acpi
	.comm	_NI_SMC_SOFT_REGISTER_mclk_chg_timeout,4,2 ; @NI_SMC_SOFT_REGISTER_mclk_chg_timeout
	.comm	_NI_SMC_SOFT_REGISTER_mc_block_delay,4,2 ; @NI_SMC_SOFT_REGISTER_mc_block_delay
	.comm	_NI_SMC_SOFT_REGISTER_mclk_switch_lim,4,2 ; @NI_SMC_SOFT_REGISTER_mclk_switch_lim
	.no_dead_strip	_ni_program_response_times
.subsections_via_symbols
