	.file	"extr_gt215.c_prog_core.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prog_core, @function
prog_core:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movsx	rdx, esi
	mov	esi, 1048620
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rdi]
	lea	r13, [rax+rdx*8]
	mov	rdi, r14
	call	nvkm_rd32@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	rbx, rax
	cmp	rdx, rax
	jg	.L6
.L2:
	mov	edx, 16896
	mov	ecx, r12d
	xor	esi, esi
	mov	rdi, rbp
	call	prog_pll@PLT
	mov	rdx, QWORD PTR 0[r13]
	cmp	rdx, rbx
	jl	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L6:
	.cfi_restore_state
	mov	esi, 1048620
	mov	rdi, r14
	call	nvkm_wr32@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	esi, 1048620
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	nvkm_wr32@PLT
	.cfi_endproc
.LFE0:
	.size	prog_core, .-prog_core
	.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_gt215.c_prog_core.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prog_core, %function
prog_core:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r8, [r0]
	mov	r4, r1
	mov	r0, r8
	ldr	r1, .L7
	ldr	r7, [r5, #4]
	bl	nvkm_rd32
	ldr	r2, [r7, r4, lsl #2]
	mov	r6, r0
	cmp	r2, r0
	bgt	.L6
.L2:
	mov	r2, #16896
	mov	r0, r5
	mov	r3, r4
	mov	r1, #0
	bl	prog_pll
	ldr	r2, [r7, r4, lsl #2]
	cmp	r2, r6
	popge	{r4, r5, r6, r7, r8, pc}
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L7
	b	nvkm_wr32
.L6:
	mov	r0, r8
	ldr	r1, .L7
	bl	nvkm_wr32
	b	.L2
.L8:
	.align	2
.L7:
	.word	1048620
	.size	prog_core, .-prog_core
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
