	.file	"extr_ni_dpm.c_ni_program_response_times.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ni_program_response_times, @function
ni_program_response_times:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 1000
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_mvdd_chg_time[rip]
	call	rv770_write_smc_soft_register@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	test	edx, edx
	mov	r13d, edx
	cmove	r13d, r12d
	test	eax, eax
	cmovne	r12d, eax
	call	radeon_get_xclk@PLT
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_delay_vreg[rip]
	mov	rdi, rbp
	mov	ebx, eax
	mov	eax, r13d
	imul	eax, ebx
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1374389535
	sar	rdx, 41
	sub	edx, eax
	call	rv770_write_smc_soft_register@PLT
	mov	eax, r12d
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_delay_bbias[rip]
	mov	rdi, rbp
	imul	eax, ebx
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1374389535
	sar	rdx, 41
	sub	edx, eax
	call	rv770_write_smc_soft_register@PLT
	imul	eax, ebx, 15000
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_delay_acpi[rip]
	mov	rdi, rbp
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1374389535
	sar	rdx, 41
	sub	edx, eax
	call	rv770_write_smc_soft_register@PLT
	imul	eax, ebx, 100000
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_mclk_chg_timeout[rip]
	mov	rdi, rbp
	imul	ebx, ebx, 460
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 1374389535
	sar	rdx, 41
	sub	edx, eax
	call	rv770_write_smc_soft_register@PLT
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_mc_block_delay[rip]
	mov	rdi, rbp
	mov	edx, 170
	call	rv770_write_smc_soft_register@PLT
	movsx	rdx, ebx
	sar	ebx, 31
	mov	rdi, rbp
	imul	rdx, rdx, 1374389535
	mov	esi, DWORD PTR NI_SMC_SOFT_REGISTER_mclk_switch_lim[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	sar	rdx, 37
	sub	edx, ebx
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rv770_write_smc_soft_register@PLT
	.cfi_endproc
.LFE0:
	.size	ni_program_response_times, .-ni_program_response_times
	.comm	NI_SMC_SOFT_REGISTER_mvdd_chg_time,4,4
	.comm	NI_SMC_SOFT_REGISTER_mclk_switch_lim,4,4
	.comm	NI_SMC_SOFT_REGISTER_mclk_chg_timeout,4,4
	.comm	NI_SMC_SOFT_REGISTER_mc_block_delay,4,4
	.comm	NI_SMC_SOFT_REGISTER_delay_vreg,4,4
	.comm	NI_SMC_SOFT_REGISTER_delay_bbias,4,4
	.comm	NI_SMC_SOFT_REGISTER_delay_acpi,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ni_dpm.c_ni_program_response_times.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ni_program_response_times, %function
ni_program_response_times:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L6
	mov	r2, #1
	ldr	r1, [r3]
	bl	rv770_write_smc_soft_register
	ldr	r6, [r5, #4]
	ldr	r7, [r5]
	cmp	r6, #0
	moveq	r6, #1000
	mov	r0, r5
	cmp	r7, #0
	moveq	r7, #1000
	bl	radeon_get_xclk
	mov	r4, r0
	mul	r3, r0, r6
	ldr	r6, .L6+4
	mul	r7, r4, r7
	smull	r0, r2, r6, r3
	ldr	r1, .L6+8
	asr	r3, r3, #31
	rsb	r2, r3, r2, asr #9
	mov	r0, r5
	ldr	r1, [r1]
	bl	rv770_write_smc_soft_register
	smull	r3, r2, r6, r7
	ldr	r3, .L6+12
	asr	r7, r7, #31
	ldr	r1, [r3]
	rsb	r2, r7, r2, asr #9
	mov	r0, r5
	bl	rv770_write_smc_soft_register
	rsb	r3, r4, r4, lsl #5
	add	r3, r4, r3, lsl #2
	rsb	r3, r3, r3, lsl #4
	lsl	r3, r3, #3
	smull	r1, r2, r6, r3
	ldr	r1, .L6+16
	asr	r3, r3, #31
	rsb	r2, r3, r2, asr #9
	mov	r0, r5
	ldr	r1, [r1]
	bl	rv770_write_smc_soft_register
	ldr	r3, .L6+20
	ldr	r1, .L6+24
	mul	r3, r4, r3
	smull	r0, r2, r6, r3
	asr	r3, r3, #31
	rsb	r2, r3, r2, asr #9
	mov	r0, r5
	ldr	r1, [r1]
	bl	rv770_write_smc_soft_register
	ldr	r3, .L6+28
	mov	r0, r5
	ldr	r1, [r3]
	mov	r2, #170
	bl	rv770_write_smc_soft_register
	mov	r2, #460
	mul	r4, r2, r4
	smull	r3, r2, r6, r4
	ldr	r3, .L6+32
	asr	r4, r4, #31
	mov	r0, r5
	rsb	r2, r4, r2, asr #5
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	rv770_write_smc_soft_register
.L7:
	.align	2
.L6:
	.word	NI_SMC_SOFT_REGISTER_mvdd_chg_time
	.word	1374389535
	.word	NI_SMC_SOFT_REGISTER_delay_vreg
	.word	NI_SMC_SOFT_REGISTER_delay_bbias
	.word	NI_SMC_SOFT_REGISTER_delay_acpi
	.word	100000
	.word	NI_SMC_SOFT_REGISTER_mclk_chg_timeout
	.word	NI_SMC_SOFT_REGISTER_mc_block_delay
	.word	NI_SMC_SOFT_REGISTER_mclk_switch_lim
	.size	ni_program_response_times, .-ni_program_response_times
	.comm	NI_SMC_SOFT_REGISTER_mvdd_chg_time,4,4
	.comm	NI_SMC_SOFT_REGISTER_mclk_switch_lim,4,4
	.comm	NI_SMC_SOFT_REGISTER_mclk_chg_timeout,4,4
	.comm	NI_SMC_SOFT_REGISTER_mc_block_delay,4,4
	.comm	NI_SMC_SOFT_REGISTER_delay_vreg,4,4
	.comm	NI_SMC_SOFT_REGISTER_delay_bbias,4,4
	.comm	NI_SMC_SOFT_REGISTER_delay_acpi,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
