	.file	"extr_sys_regs.c_kvm_sys_reg_table_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_sys_reg_table_init
	.type	kvm_sys_reg_table_init, @function
kvm_sys_reg_table_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR sys_reg_descs[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR sys_reg_descs[rip]
	mov	esi, eax
	call	check_sysreg_table@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR cp14_regs[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR cp14_regs[rip]
	mov	esi, eax
	call	check_sysreg_table@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR cp14_64_regs[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR cp14_64_regs[rip]
	mov	esi, eax
	call	check_sysreg_table@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR cp15_regs[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR cp15_regs[rip]
	mov	esi, eax
	call	check_sysreg_table@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR cp15_64_regs[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR cp15_64_regs[rip]
	mov	esi, eax
	call	check_sysreg_table@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR invariant_sys_regs[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR invariant_sys_regs[rip]
	mov	esi, eax
	call	check_sysreg_table@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR invariant_sys_regs[rip]
	mov	edx, ebx
	xor	edi, edi
	add	ebx, 1
	lea	rax, [rax+rdx*8]
	mov	rsi, rax
	call	[QWORD PTR [rax]]
.L2:
	mov	rdi, QWORD PTR invariant_sys_regs[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	ja	.L3
	lea	rsi, 4[rsp]
	xor	edi, edi
	call	get_clidr_el1@PLT
	mov	edx, DWORD PTR 4[rsp]
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, edx
	shr	eax, cl
	test	al, 7
	je	.L4
	add	ecx, 3
	cmp	ecx, 21
	jne	.L5
	mov	eax, 2097151
.L6:
	and	edx, eax
	mov	DWORD PTR cache_levels[rip], edx
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	jmp	.L6
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kvm_sys_reg_table_init, .-kvm_sys_reg_table_init
	.comm	sys_reg_descs,8,8
	.comm	invariant_sys_regs,8,8
	.comm	cp15_regs,8,8
	.comm	cp15_64_regs,8,8
	.comm	cp14_regs,8,8
	.comm	cp14_64_regs,8,8
	.comm	cache_levels,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_sys_regs.c_kvm_sys_reg_table_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kvm_sys_reg_table_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_sys_reg_table_init, %function
kvm_sys_reg_table_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r4, [r3]
	sub	sp, sp, #8
	mov	r0, r4
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r4
	bl	check_sysreg_table
	bl	BUG_ON
	ldr	r3, .L12+8
	ldr	r5, .L12+12
	ldr	r6, [r3]
	mov	r4, #0
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r6
	bl	check_sysreg_table
	bl	BUG_ON
	ldr	r3, .L12+16
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r6
	bl	check_sysreg_table
	bl	BUG_ON
	ldr	r3, .L12+20
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r6
	bl	check_sysreg_table
	bl	BUG_ON
	ldr	r3, .L12+24
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r6
	bl	check_sysreg_table
	bl	BUG_ON
	ldr	r6, [r5]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r0
	mov	r0, r6
	bl	check_sysreg_table
	bl	BUG_ON
	b	.L2
.L3:
	ldr	r1, [r5]
	mov	r0, #0
	ldr	r3, [r1, r4, lsl #2]
	add	r1, r1, r4, lsl #2
	blx	r3
	add	r4, r4, #1
.L2:
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bhi	.L3
	mov	r1, sp
	mov	r0, #0
	bl	get_clidr_el1
	mov	r3, #0
	ldr	r1, [sp]
.L5:
	lsr	r2, r1, r3
	tst	r2, #7
	beq	.L4
	add	r3, r3, #3
	cmp	r3, #21
	bne	.L5
	ldr	r3, .L12+28
.L6:
	ldr	r2, .L12+32
	and	r1, r1, r3
	ldr	r3, .L12+4
	str	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mvn	r2, #0
	mvn	r3, r2, lsl r3
	b	.L6
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	sys_reg_descs
	.word	.LC0
	.word	cp14_regs
	.word	invariant_sys_regs
	.word	cp14_64_regs
	.word	cp15_regs
	.word	cp15_64_regs
	.word	2097151
	.word	cache_levels
	.size	kvm_sys_reg_table_init, .-kvm_sys_reg_table_init
	.comm	sys_reg_descs,4,4
	.comm	invariant_sys_regs,4,4
	.comm	cp15_regs,4,4
	.comm	cp15_64_regs,4,4
	.comm	cp14_regs,4,4
	.comm	cp14_64_regs,4,4
	.comm	cache_levels,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
