	.file	"extr_nv.c_nv_read_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv_read_register, @function
nv_read_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	QWORD PTR [r8], 0
	mov	rdi, QWORD PTR nv_allowed_read_registers[rip]
	call	ARRAY_SIZE@PLT
	cmp	rax, rbx
	jbe	.L8
.L5:
	mov	rdi, QWORD PTR nv_allowed_read_registers[rip]
	lea	rax, [rbx+rbx*4]
	mov	rdx, QWORD PTR [r15]
	lea	rax, [rdi+rax*8]
	mov	rsi, QWORD PTR [rax]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	rsi, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	rdx, QWORD PTR 24[rax]
	add	rdx, QWORD PTR [rcx+rsi*8]
	cmp	rdx, rbp
	je	.L3
	add	rbx, 1
	call	ARRAY_SIZE@PLT
	cmp	rax, rbx
	ja	.L5
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 32[rax]
	mov	r8, rbp
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, r15
	call	nv_get_register_value@PLT
	mov	QWORD PTR [r12], rax
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nv_read_register, .-nv_read_register
	.comm	nv_allowed_read_registers,8,8
	.comm	EINVAL,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_nv.c_nv_read_register.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv_read_register, %function
nv_read_register:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, #0
	mov	r7, r1
	mov	r8, r2
	mov	r5, r3
	ldr	r6, .L9
	sub	sp, sp, #8
	ldr	r9, [sp, #40]
	mov	r4, r0
	ldr	r0, [r6]
	str	r10, [r9]
.L2:
	bl	ARRAY_SIZE
	cmp	r0, r10
	add	ip, r10, r10, lsl #2
	bls	.L8
	ldr	r0, [r6]
	ldr	r3, [r4]
	ldr	r2, [r0, ip, lsl #2]
	add	ip, r0, ip, lsl #2
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [ip, #4]
	ldr	r1, [ip, #8]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [ip, #12]
	ldr	lr, [r2, r1, lsl #2]
	add	r10, r10, #1
	add	lr, lr, r3
	cmp	lr, r5
	bne	.L2
	mov	r3, r8
	ldr	r1, [ip, #16]
	mov	r2, r7
	mov	r0, r4
	str	r5, [sp]
	bl	nv_get_register_value
	mov	r3, r0
	mov	r0, #0
	str	r3, [r9]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	nv_allowed_read_registers
	.word	EINVAL
	.size	nv_read_register, .-nv_read_register
	.comm	nv_allowed_read_registers,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
