	.file	"extr_nv04_pm.c_nv04_pm_clocks_set.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nv04_pm_clocks_set
	.type	nv04_pm_clocks_set, @function
nv04_pm_clocks_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	nouveau_dev@PLT
	mov	rdi, rax
	mov	r14, rax
	call	nouveau_timer@PLT
	lea	rsi, 8[rbp]
	mov	rdi, r12
	mov	r13, rax
	call	prog_pll@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L8
.L3:
	mov	rdi, r13
	call	nv_ofuncs@PLT
	mov	rdi, r13
	mov	r12, QWORD PTR [rax]
	call	nv_object@PLT
	mov	edi, eax
	call	r12
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	prog_pll@PLT
	mov	rax, QWORD PTR [r14]
	cmp	rax, QWORD PTR NV_30[rip]
	jge	.L3
	cmp	rax, QWORD PTR NV_20[rip]
	je	.L9
.L5:
	mov	ecx, 256
	xor	edx, edx
	mov	esi, 1049280
	mov	rdi, r14
	call	nv_mask@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, 1048576
	xor	edx, edx
	mov	esi, 1049284
	mov	rdi, r14
	call	nv_mask@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	nv04_pm_clocks_set, .-nv04_pm_clocks_set
	.comm	NV_30,8,8
	.comm	NV_20,8,8
	.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_nv04_pm.c_nv04_pm_clocks_set.c"
	.text
	.align	2
	.global	nv04_pm_clocks_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv04_pm_clocks_set, %function
nv04_pm_clocks_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	nouveau_dev
	mov	r7, r0
	bl	nouveau_timer
	add	r1, r4, #4
	mov	r5, r0
	mov	r0, r6
	bl	prog_pll
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L8
.L3:
	mov	r0, r5
	bl	nv_ofuncs
	mov	r3, r0
	mov	r0, r5
	ldr	r5, [r3]
	bl	nv_object
	blx	r5
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r6
	mov	r1, r4
	bl	prog_pll
	ldr	r2, .L10
	ldr	r3, [r7]
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L3
	ldr	r2, .L10+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
.L5:
	mov	r0, r7
	mov	r3, #256
	mov	r2, #0
	ldr	r1, .L10+8
	bl	nv_mask
	b	.L3
.L9:
	mov	r3, #1048576
	mov	r2, #0
	mov	r0, r7
	ldr	r1, .L10+12
	bl	nv_mask
	b	.L5
.L11:
	.align	2
.L10:
	.word	NV_30
	.word	NV_20
	.word	1049280
	.word	1049284
	.size	nv04_pm_clocks_set, .-nv04_pm_clocks_set
	.comm	NV_30,4,4
	.comm	NV_20,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
