	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_regfile_lookup_shortname ## -- Begin function xtensa_regfile_lookup_shortname
	.p2align	4, 0x90
_xtensa_regfile_lookup_shortname:       ## @xtensa_regfile_lookup_shortname
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	cmpb	$0, (%rsi)
	je	LBB0_9
## %bb.2:
	movq	%rdi, %r15
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movl	(%rcx,%rbx,8), %edx
	cmpq	%rdx, %rbx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rcx,%rbx,8), %edi
	movq	%r14, %rsi
	callq	_filename_cmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_7
LBB0_9:
	movq	_xtensa_isa_bad_regfile@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xtisa_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_xtisa_error_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_10
LBB0_8:
	movq	_xtensa_isa_bad_regfile@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xtisa_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_xtisa_error_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_sprintf
LBB0_10:
	movq	_XTENSA_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xtensa_isa_bad_regfile,4,2     ## @xtensa_isa_bad_regfile
	.comm	_xtisa_errno,4,2                ## @xtisa_errno
	.comm	_xtisa_error_msg,4,2            ## @xtisa_error_msg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid regfile shortname"

	.comm	_XTENSA_UNDEFINED,4,2           ## @XTENSA_UNDEFINED
L_.str.1:                               ## @.str.1
	.asciz	"regfile shortname \"%s\" not recognized"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_regfile_lookup_shortname ; -- Begin function xtensa_regfile_lookup_shortname
	.p2align	2
_xtensa_regfile_lookup_shortname:       ; @xtensa_regfile_lookup_shortname
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_8
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	add	x22, x22, #8
	cmp	x21, w8, sxtw
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	w10, [x9, x22]
	cmp	x21, x10
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, x22
	ldr	w0, [x8, #4]
	mov	x1, x19
	bl	_filename_cmp
	cbz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	b	LBB0_4
LBB0_8:
Lloh0:
	adrp	x8, _xtensa_isa_bad_regfile@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xtensa_isa_bad_regfile@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _xtensa_isa_bad_regfile@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xtensa_isa_bad_regfile@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
Lloh17:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_sprintf
LBB0_10:
Lloh22:
	adrp	x8, _XTENSA_UNDEFINED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _XTENSA_UNDEFINED@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_xtensa_isa_bad_regfile,4,2     ; @xtensa_isa_bad_regfile
	.comm	_xtisa_errno,4,2                ; @xtisa_errno
	.comm	_xtisa_error_msg,4,2            ; @xtisa_error_msg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid regfile shortname"

	.comm	_XTENSA_UNDEFINED,4,2           ; @XTENSA_UNDEFINED
l_.str.1:                               ; @.str.1
	.asciz	"regfile shortname \"%s\" not recognized"

.subsections_via_symbols
