	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_state_lookup            ## -- Begin function xtensa_state_lookup
	.p2align	4, 0x90
_xtensa_state_lookup:                   ## @xtensa_state_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_5
## %bb.2:
	movq	(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	movq	%rbx, -24(%rbp)
	movl	8(%rdi), %esi
	movq	_xtensa_isa_name_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-24(%rbp), %rdi
	movl	$16, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	addq	$8, %rax
	jmp	LBB0_8
LBB0_5:
	movq	_xtensa_isa_bad_state@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_7
LBB0_6:
	movq	_xtensa_isa_bad_state@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	%rbx, %rdx
	callq	_sprintf
LBB0_7:
	movq	_XTENSA_UNDEFINED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xtensa_isa_bad_state,4,2       ## @xtensa_isa_bad_state
	.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 state name"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_state_lookup            ; -- Begin function xtensa_state_lookup
	.p2align	2
_xtensa_state_lookup:                   ; @xtensa_state_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x2, [x0]
	cbz	x2, LBB0_6
; %bb.3:
	str	x19, [sp]
	ldr	w1, [x0, #8]
Lloh0:
	adrp	x8, _xtensa_isa_name_compare@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xtensa_isa_name_compare@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, sp
	mov	w3, #16
	bl	_bsearch
	cbz	x0, LBB0_6
; %bb.4:
	add	x8, x0, #8
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _xtensa_isa_bad_state@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xtensa_isa_bad_state@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _xtensa_isa_bad_state@GOTPAGE
Lloh15:
	ldr	x8, [x8, _xtensa_isa_bad_state@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
Lloh20:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_sprintf
LBB0_7:
Lloh25:
	adrp	x8, _XTENSA_UNDEFINED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XTENSA_UNDEFINED@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_xtensa_isa_bad_state,4,2       ; @xtensa_isa_bad_state
	.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 state name"

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

.subsections_via_symbols
