	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_insnbuf_to_chars        ## -- Begin function xtensa_insnbuf_to_chars
	.p2align	4, 0x90
_xtensa_insnbuf_to_chars:               ## @xtensa_insnbuf_to_chars
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_xtensa_isa_maxlength
	movl	%eax, %ebx
	testl	%r13d, %r13d
	cmovel	%eax, %r13d
	movq	(%r14), %rax
	decl	%ebx
	xorl	%ecx, %ecx
	movq	%rax, %rdx
	negq	%rdx
	movl	$0, %edx
	sbbl	%edx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	cmovel	%ecx, %ebx
	movq	%r14, %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_xtensa_format_decode
	movq	_XTENSA_UNDEFINED@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_xtensa_format_length
	cmpl	(%r15), %eax
	je	LBB0_8
## %bb.2:
	cmpl	%r13d, %eax
	jle	LBB0_4
## %bb.3:
	movq	_xtensa_isa_buffer_overflow@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
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_4:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	orl	$1, %r15d
	movl	%eax, %edx
	imull	%r15d, %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.5:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_byte_to_word_index
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_byte_to_bit_index
	movslq	%r14d, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movb	%dl, (%r12)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incq	%r12
	addl	%r15d, %r13d
	cmpl	%r13d, %edx
	jne	LBB0_6
## %bb.7:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XTENSA_UNDEFINED,4,2           ## @XTENSA_UNDEFINED
	.comm	_xtensa_isa_buffer_overflow,4,2 ## @xtensa_isa_buffer_overflow
	.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	"output buffer too small for instruction"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_insnbuf_to_chars        ; -- Begin function xtensa_insnbuf_to_chars
	.p2align	2
_xtensa_insnbuf_to_chars:               ; @xtensa_insnbuf_to_chars
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_xtensa_isa_maxlength
	cmp	w21, #0
	csel	w26, w0, w21, eq
	ldr	x8, [x22]
	sub	w9, w0, #1
	cmp	x8, #0
	mov	w8, #1
	cneg	w24, w8, ne
	csel	w25, wzr, w9, eq
	mov	x0, x22
	mov	x1, x20
	bl	_xtensa_format_decode
	mov	x21, x0
Lloh0:
	adrp	x23, _XTENSA_UNDEFINED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XTENSA_UNDEFINED@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_xtensa_format_length
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, w26
	b.le	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _xtensa_isa_buffer_overflow@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xtensa_isa_buffer_overflow@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	w21, [x23]
	b	LBB0_7
LBB0_4:
	mul	w26, w21, w24
	cbz	w26, LBB0_7
; %bb.5:
	mov	w27, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w25, w27
	mov	x0, x22
	bl	_byte_to_word_index
	mov	x23, x0
	mov	x0, x22
	bl	_byte_to_bit_index
	ldr	w8, [x20, w23, sxtw #2]
	asr	w8, w8, w0
	strb	w8, [x19], #1
	add	w27, w27, w24
	cmp	w26, w27
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XTENSA_UNDEFINED,4,2           ; @XTENSA_UNDEFINED
	.comm	_xtensa_isa_buffer_overflow,4,2 ; @xtensa_isa_buffer_overflow
	.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	"output buffer too small for instruction"

.subsections_via_symbols
