	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cr16_decode_misc
_cr16_decode_misc:                      ## @cr16_decode_misc
	.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
	movq	%rsi, %r14
	callq	_r_read_le16
	movl	%eax, %ebx
	movq	(%r14), %rax
	movb	$0, (%rax)
	leal	-128(%rbx), %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str.4(%rip), %rsi
	callq	_strncpy
	movq	_CR16_TYPE_WAIT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str(%rip), %rsi
	callq	_strncpy
	movq	_CR16_TYPE_RETX@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str.3(%rip), %rsi
	callq	_strncpy
	movq	_CR16_TYPE_NOP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str.5(%rip), %rsi
	callq	_strncpy
	movq	_CR16_TYPE_EWAIT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strncpy
	movq	_CR16_TYPE_EI@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strncpy
	movq	_CR16_TYPE_DI@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	%ebx, %ecx
	andl	$-32, %ecx
	movl	$-1, %eax
	cmpl	$31712, %ecx                    ## imm = 0x7BE0
	jne	LBB0_11
## %bb.9:
	movl	12(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	decl	%edx
	leaq	L_.str.6(%rip), %rsi
	callq	_strncpy
	movq	(%r14), %rdi
	movl	(%r15), %esi
	decl	%esi
	shrl	%ebx
	andl	$15, %ebx
	leaq	L_.str.7(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	_CR16_TYPE_EXCP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$2, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"retx"

	.comm	_CR16_INSTR_MAXLEN,4,2          ## @CR16_INSTR_MAXLEN
	.comm	_CR16_TYPE_RETX,4,2             ## @CR16_TYPE_RETX
L_.str.1:                               ## @.str.1
	.asciz	"di"

	.comm	_CR16_TYPE_DI,4,2               ## @CR16_TYPE_DI
L_.str.2:                               ## @.str.2
	.asciz	"ei"

	.comm	_CR16_TYPE_EI,4,2               ## @CR16_TYPE_EI
L_.str.3:                               ## @.str.3
	.asciz	"nop"

	.comm	_CR16_TYPE_NOP,4,2              ## @CR16_TYPE_NOP
L_.str.4:                               ## @.str.4
	.asciz	"wait"

	.comm	_CR16_TYPE_WAIT,4,2             ## @CR16_TYPE_WAIT
L_.str.5:                               ## @.str.5
	.asciz	"eiwait"

	.comm	_CR16_TYPE_EWAIT,4,2            ## @CR16_TYPE_EWAIT
L_.str.6:                               ## @.str.6
	.asciz	"excp"

L_.str.7:                               ## @.str.7
	.asciz	"0x%x"

	.comm	_CR16_TYPE_EXCP,4,2             ## @CR16_TYPE_EXCP
	.no_dead_strip	_cr16_decode_misc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cr16_decode_misc
_cr16_decode_misc:                      ; @cr16_decode_misc
	.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
	mov	x19, x1
	bl	_r_read_le16
	ldr	x8, [x19]
	strb	wzr, [x8]
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x8, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w2, w8, #1
Lloh5:
	adrp	x1, l_.str.4@PAGE
Lloh6:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strncpy
Lloh7:
	adrp	x8, _CR16_TYPE_WAIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CR16_TYPE_WAIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x8, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w2, w8, #1
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strncpy
Lloh14:
	adrp	x8, _CR16_TYPE_RETX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CR16_TYPE_RETX@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	w0, [x19, #12]
Lloh16:
	adrp	x8, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	sub	w2, w8, #1
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strncpy
Lloh21:
	adrp	x8, _CR16_TYPE_NOP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CR16_TYPE_NOP@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	ldr	w0, [x19, #12]
Lloh23:
	adrp	x8, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	sub	w2, w8, #1
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strncpy
Lloh28:
	adrp	x8, _CR16_TYPE_EWAIT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CR16_TYPE_EWAIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	w0, [x19, #12]
Lloh30:
	adrp	x8, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	sub	w2, w8, #1
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strncpy
Lloh35:
	adrp	x8, _CR16_TYPE_EI@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CR16_TYPE_EI@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #12]
Lloh37:
	adrp	x8, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	sub	w2, w8, #1
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strncpy
Lloh42:
	adrp	x8, _CR16_TYPE_DI@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CR16_TYPE_DI@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x20, x0
	lsr	w8, w0, #5
	cmp	w8, #991
	b.ne	LBB0_12
; %bb.9:
	ldr	w0, [x19, #12]
Lloh44:
	adrp	x21, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh45:
	ldr	x21, [x21, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w2, w8, #1
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strncpy
	ldr	x0, [x19]
	ldr	w8, [x21]
	sub	w1, w8, #1
	ubfx	w3, w20, #1, #4
Lloh48:
	adrp	x2, l_.str.7@PAGE
Lloh49:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_snprintf
Lloh50:
	adrp	x8, _CR16_TYPE_EXCP@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CR16_TYPE_EXCP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w0, #2
LBB0_11:
	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
LBB0_12:
	mov	w0, #-1
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"retx"

	.comm	_CR16_INSTR_MAXLEN,4,2          ; @CR16_INSTR_MAXLEN
	.comm	_CR16_TYPE_RETX,4,2             ; @CR16_TYPE_RETX
l_.str.1:                               ; @.str.1
	.asciz	"di"

	.comm	_CR16_TYPE_DI,4,2               ; @CR16_TYPE_DI
l_.str.2:                               ; @.str.2
	.asciz	"ei"

	.comm	_CR16_TYPE_EI,4,2               ; @CR16_TYPE_EI
l_.str.3:                               ; @.str.3
	.asciz	"nop"

	.comm	_CR16_TYPE_NOP,4,2              ; @CR16_TYPE_NOP
l_.str.4:                               ; @.str.4
	.asciz	"wait"

	.comm	_CR16_TYPE_WAIT,4,2             ; @CR16_TYPE_WAIT
l_.str.5:                               ; @.str.5
	.asciz	"eiwait"

	.comm	_CR16_TYPE_EWAIT,4,2            ; @CR16_TYPE_EWAIT
l_.str.6:                               ; @.str.6
	.asciz	"excp"

l_.str.7:                               ; @.str.7
	.asciz	"0x%x"

	.comm	_CR16_TYPE_EXCP,4,2             ; @CR16_TYPE_EXCP
	.no_dead_strip	_cr16_decode_misc
.subsections_via_symbols
