	.file	"extr_regmap.c_vcpu_read_spsr32.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vcpu_read_spsr32
	.type	vcpu_read_spsr32, @function
vcpu_read_spsr32:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	vcpu_spsr32_mode@PLT
	mov	ebx, eax
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L13
	lea	eax, -128[rbx]
	cmp	eax, 4
	ja	.L4
	lea	rdx, .L6[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	vcpu_gp_regs@PLT
	mov	r8, rax
	movsx	rax, ebx
	mov	rdx, QWORD PTR [r8]
	mov	rax, QWORD PTR [rdx+rax*8]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR spsr_fiq[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	read_sysreg@PLT
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR spsr_abt[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	read_sysreg@PLT
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR spsr_und[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	read_sysreg@PLT
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR SYS_SPSR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	read_sysreg_el1@PLT
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR spsr_irq[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	read_sysreg@PLT
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	BUG@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vcpu_read_spsr32, .-vcpu_read_spsr32
	.comm	spsr_und,4,4
	.comm	spsr_irq,4,4
	.comm	spsr_fiq,4,4
	.comm	spsr_abt,4,4
	.comm	SYS_SPSR,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_regmap.c_vcpu_read_spsr32.c"
	.text
	.align	2
	.global	vcpu_read_spsr32
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcpu_read_spsr32, %function
vcpu_read_spsr32:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	vcpu_spsr32_mode
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, #0
	beq	.L14
	sub	r0, r0, #128
	cmp	r0, #4
	ldrls	pc, [pc, r0, asl #2]
	b	.L4
.L6:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L14:
	mov	r0, r5
	bl	vcpu_gp_regs
	ldr	r3, [r0]
	ldr	r0, [r3, r4, lsl #2]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L15
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	read_sysreg
.L10:
	ldr	r3, .L15+4
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	read_sysreg
.L9:
	ldr	r3, .L15+8
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	read_sysreg_el1
.L8:
	ldr	r3, .L15+12
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	read_sysreg
.L7:
	ldr	r3, .L15+16
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	read_sysreg
.L4:
	pop	{r4, r5, r6, lr}
	b	BUG
.L16:
	.align	2
.L15:
	.word	spsr_abt
	.word	spsr_und
	.word	SYS_SPSR
	.word	spsr_irq
	.word	spsr_fiq
	.size	vcpu_read_spsr32, .-vcpu_read_spsr32
	.comm	spsr_und,4,4
	.comm	spsr_irq,4,4
	.comm	spsr_fiq,4,4
	.comm	spsr_abt,4,4
	.comm	SYS_SPSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
