	.file	"extr_xtensa-isa.c_xtensa_sysreg_lookup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sysreg not recognized"
	.text
	.p2align 4
	.globl	xtensa_sysreg_lookup
	.type	xtensa_sysreg_lookup, @function
xtensa_sysreg_lookup:
.LFB0:
	.cfi_startproc
	endbr64
	test	edx, edx
	setne	al
	test	esi, esi
	js	.L2
	mov	rdx, QWORD PTR [rdi]
	movzx	eax, al
	cmp	DWORD PTR [rdx+rax*4], esi
	jl	.L2
	mov	rdx, QWORD PTR 8[rdi]
	movsx	rsi, esi
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rax, QWORD PTR [rax+rsi*8]
	cmp	rax, QWORD PTR XTENSA_UNDEFINED[rip]
	je	.L2
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR xtensa_isa_bad_sysreg[rip]
	mov	edi, DWORD PTR xtisa_error_msg[rip]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR xtisa_errno[rip], eax
	call	strcpy@PLT
	mov	rax, QWORD PTR XTENSA_UNDEFINED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xtensa_sysreg_lookup, .-xtensa_sysreg_lookup
	.comm	xtisa_error_msg,4,4
	.comm	xtisa_errno,4,4
	.comm	xtensa_isa_bad_sysreg,4,4
	.comm	XTENSA_UNDEFINED,8,8
	.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_xtensa-isa.c_xtensa_sysreg_lookup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sysreg not recognized\000"
	.text
	.align	2
	.global	xtensa_sysreg_lookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	xtensa_sysreg_lookup, %function
xtensa_sysreg_lookup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r2, r2, #0
	movne	r2, #1
	cmp	r1, #0
	push	{r4, lr}
	blt	.L9
	ldr	r3, [r0]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, r1
	blt	.L9
	ldr	r3, [r0, #4]
	ldr	r4, .L11
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [r4]
	ldr	r0, [r2, r1, lsl #2]
	cmp	r0, r3
	popne	{r4, pc}
.L2:
	ldr	r3, .L11+4
	ldr	r1, .L11+8
	ldr	r2, [r3]
	ldr	r3, .L11+12
	ldr	r0, [r1]
	ldr	r1, .L11+16
	str	r2, [r3]
	bl	strcpy
	ldr	r0, [r4]
	pop	{r4, pc}
.L9:
	ldr	r4, .L11
	b	.L2
.L12:
	.align	2
.L11:
	.word	XTENSA_UNDEFINED
	.word	xtensa_isa_bad_sysreg
	.word	xtisa_error_msg
	.word	xtisa_errno
	.word	.LC0
	.size	xtensa_sysreg_lookup, .-xtensa_sysreg_lookup
	.comm	xtisa_error_msg,4,4
	.comm	xtisa_errno,4,4
	.comm	xtensa_isa_bad_sysreg,4,4
	.comm	XTENSA_UNDEFINED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
