	.file	"extr_nv50.c_nv50_clock_pll_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to retrieve pll data, %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed pll calculation\n"
	.text
	.p2align 4
	.type	nv50_clock_pll_set, @function
nv50_clock_pll_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r13, 32[rsp]
	call	nouveau_bios@PLT
	mov	esi, r12d
	mov	rdx, r13
	mov	rdi, rax
	call	nvbios_pll_parse@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	lea	rax, 28[rsp]
	lea	rcx, 12[rsp]
	mov	edx, r14d
	mov	rsi, r13
	push	rax
	.cfi_def_cfa_offset 120
	mov	rdi, rbp
	lea	rax, 32[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	lea	r9, 36[rsp]
	lea	r8, 32[rsp]
	call	nv04_pll_calc@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	cmp	eax, 129
	jle	.L15
	cmp	eax, 130
	jne	.L7
	mov	eax, DWORD PTR 28[rsp]
	mov	ecx, DWORD PTR 36[rsp]
	mov	edx, eax
	sal	ecx, 19
	sal	edx, 22
	sal	eax, 16
	or	ecx, edx
	mov	edx, 33488896
	or	ecx, eax
.L11:
	mov	rdi, rbp
	call	nv_mask@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, rbp
	sal	edx, 8
	lea	rsi, 4[rax]
	or	edx, DWORD PTR 16[rsp]
	call	nv_wr32@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	eax, 127
	jg	.L16
.L7:
	mov	ecx, DWORD PTR 28[rsp]
	mov	edx, 458752
	sal	ecx, 16
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	nv_error@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	mov	edx, 268437009
	call	nv_wr32@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, rbp
	mov	edx, 16711935
	sal	ecx, 16
	lea	rsi, 4[rax]
	or	ecx, DWORD PTR 12[rsp]
	call	nv_mask@PLT
	mov	ecx, DWORD PTR 28[rsp]
	mov	eax, DWORD PTR 24[rsp]
	mov	rdi, rbp
	mov	edx, 2147418367
	sal	eax, 16
	sal	ecx, 28
	or	ecx, eax
	mov	rax, QWORD PTR 40[rsp]
	or	ecx, DWORD PTR 20[rsp]
	lea	rsi, 8[rax]
	call	nv_mask@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	nv_error@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nv50_clock_pll_set, .-nv50_clock_pll_set
	.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_nv50.c_nv50_clock_pll_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to retrieve pll data, %d\012\000"
	.align	2
.LC1:
	.ascii	"failed pll calculation\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv50_clock_pll_set, %function
nv50_clock_pll_set:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r3, .L18
	sub	sp, sp, #56
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r4, r0
	bl	nouveau_bios
	mov	r1, r5
	add	r2, sp, #40
	bl	nvbios_pll_parse
	subs	r5, r0, #0
	bne	.L13
	add	r3, sp, #36
	add	ip, sp, #32
	add	r0, sp, #28
	str	r3, [sp, #12]
	add	r3, sp, #24
	stmib	sp, {r0, ip}
	str	r3, [sp]
	mov	r2, r6
	mov	r0, r4
	add	r1, sp, #40
	add	r3, sp, #20
	bl	nv04_pll_calc
	cmp	r0, #0
	beq	.L14
	ldr	r3, [sp, #40]
	ldr	r1, [sp, #48]
	cmp	r3, #129
	ble	.L15
	cmp	r3, #130
	bne	.L7
	ldr	r0, [sp, #36]
	ldr	r3, [sp, #44]
	lsl	r2, r0, #22
	orr	r3, r2, r3, lsl #19
	ldr	r2, .L18+4
	orr	r3, r3, r0, lsl #16
.L11:
	mov	r0, r4
	bl	nv_mask
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #24]
	ldr	r1, [sp, #48]
	mov	r0, r4
	orr	r2, r3, r2, lsl #8
	add	r1, r1, #4
	bl	nv_wr32
	b	.L1
.L15:
	cmp	r3, #127
	bgt	.L16
.L7:
	ldr	r3, [sp, #36]
	mov	r2, #458752
	lsl	r3, r3, #16
	b	.L11
.L13:
	mov	r0, r4
	mov	r2, r5
	ldr	r1, .L18+8
	bl	nv_error
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r5
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r4
	ldr	r2, .L18+12
	bl	nv_wr32
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #20]
	ldr	r1, [sp, #48]
	orr	r3, r3, r2, lsl #16
	mov	r0, r4
	ldr	r2, .L18+16
	add	r1, r1, #4
	bl	nv_mask
	ldr	r3, [sp, #32]
	ldr	r0, [sp, #36]
	ldr	ip, [sp, #28]
	ldr	r1, [sp, #48]
	lsl	r2, r3, #16
	orr	r3, r2, r0, lsl #28
	orr	r3, r3, ip
	mov	r0, r4
	ldr	r2, .L18+20
	add	r1, r1, #8
	bl	nv_mask
	b	.L1
.L14:
	mov	r0, r4
	ldr	r1, .L18+24
	bl	nv_error
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	33488896
	.word	.LC0
	.word	268437009
	.word	16711935
	.word	2147418367
	.word	.LC1
	.size	nv50_clock_pll_set, .-nv50_clock_pll_set
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
