	.file	"extr_perf.c_nvbios_perfSp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nvbios_perfSp
	.type	nvbios_perfSp, @function
nvbios_perfSp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR 40[rsp]
	push	rax
	.cfi_def_cfa_offset 48
	call	nvbios_perfSe@PLT
	mov	rdi, QWORD PTR 56[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	r12, rax
	call	memset@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	xor	eax, eax
	test	r12, r12
	setne	al
	imul	eax, DWORD PTR [rbx]
	pop	rdx
	.cfi_def_cfa_offset 32
	cmp	eax, 64
	je	.L5
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	nvbios_rd16@PLT
	mov	rbx, QWORD PTR 40[rsp]
	and	eax, 16383
	imul	eax, eax, 1000
	mov	DWORD PTR [rbx], eax
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nvbios_perfSp, .-nvbios_perfSp
	.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_perf.c_nvbios_perfSp.c"
	.text
	.align	2
	.global	nvbios_perfSp
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvbios_perfSp, %function
nvbios_perfSp:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #16
	ldr	ip, [sp, #32]
	ldr	lr, [sp, #36]
	str	ip, [sp]
	ldr	ip, [sp, #40]
	str	lr, [sp, #4]
	str	ip, [sp, #8]
	ldr	r5, [sp, #44]
	mov	r4, r3
	mov	r6, r0
	bl	nvbios_perfSe
	mov	r2, #0
	cmp	r0, r2
	strb	r2, [r5]
	strb	r2, [r5, #1]
	strb	r2, [r5, #2]
	strb	r2, [r5, #3]
	ldr	r3, [r4]
	moveq	r3, r2
	cmp	r3, #64
	mov	r4, r0
	beq	.L5
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r6
	mov	r1, r4
	bl	nvbios_rd16
	lsl	r0, r0, #18
	lsr	r0, r0, #18
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	str	r0, [r5]
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
	.size	nvbios_perfSp, .-nvbios_perfSp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
