	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cr16_decode_biti               ## -- Begin function cr16_decode_biti
	.p2align	4, 0x90
_cr16_decode_biti:                      ## @cr16_decode_biti
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_r_read_le16
	movl	%eax, %ebx
	shrl	$6, %ebx
	andl	$3, %ebx
	movl	$-1, %r14d
	cmpl	$3, %ebx
	je	LBB0_10
## %bb.1:
	movl	%eax, %r12d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	callq	_cr16_get_dstreg
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_cr16_get_srcreg
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testb	$6, %r13b
	je	LBB0_10
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	decq	%r15
	movq	_ops_biti@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %r14
	movl	%r12d, %edi
	callq	_cr16_get_opcode_i
	testq	%rax, %rax
	movl	$98, %eax
	movl	$119, %r8d
	cmovel	%eax, %r8d
	leaq	L_.str(%rip), %rdx
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	%r12d, %eax
	shrl	$13, %eax
	andl	$2, %eax
	andl	$1, %r12d
	orl	%eax, %r12d
	cmpl	$3, %r12d
	je	LBB0_6
## %bb.3:
	cmpl	$1, %r12d
	je	LBB0_7
## %bb.4:
	movl	$-1, %r14d
	testl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_9
## %bb.5:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %esi
	callq	_r_read_at_le16
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%r8d, %ecx
	andl	$1, %ecx
	shll	$16, %ecx
	andl	$-8, %r8d
	shll	$14, %r8d
	orl	%ecx, %r8d
	orl	%eax, %r8d
	movl	4(%rbx), %edi
	movq	(%r13), %rsi
	decq	%rsi
	leaq	L_.str.1(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_8
LBB0_6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	(%r13), %rsi
	decq	%rsi
	movq	_cr16_regs_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andl	$9, %ecx
	movq	(%rax,%rcx,8), %r8
	leaq	L_.str.3(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	movl	$2, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %esi
	callq	_r_read_at_le16
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	(%r13), %rsi
	decq	%rsi
	movq	_cr16_regs_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	andl	$9, %edx
	movq	(%rcx,%rdx,8), %r9
	leaq	L_.str.2(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_snprintf
LBB0_8:
	movl	$4, %r14d
LBB0_9:
	movq	_CR16_TYPE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_10:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR16_INSTR_MAXLEN,8,3          ## @CR16_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%c"

	.comm	_ops_biti,8,3                   ## @ops_biti
L_.str.1:                               ## @.str.1
	.asciz	"$0x%02x,0x%08x"

L_.str.2:                               ## @.str.2
	.asciz	"$0x%02x,0x%04x(%s)"

	.comm	_cr16_regs_names,8,3            ## @cr16_regs_names
L_.str.3:                               ## @.str.3
	.asciz	"$0x%02x,0(%s)"

	.comm	_CR16_TYPE_BIT,4,2              ## @CR16_TYPE_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cr16_decode_biti               ; -- Begin function cr16_decode_biti
	.p2align	2
_cr16_decode_biti:                      ; @cr16_decode_biti
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x22, x0
	bl	_r_read_le16
	ubfx	w27, w0, #6, #2
	cmp	w27, #3
	b.eq	LBB0_6
; %bb.1:
	mov	x23, x0
	bl	_cr16_get_dstreg
	mov	x21, x0
	mov	x0, x23
	bl	_cr16_get_srcreg
	tst	w21, #0x6
	b.eq	LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	w24, [x19, #8]
Lloh0:
	adrp	x26, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
	ldr	x8, [x26]
	sub	x25, x8, #1
Lloh2:
	adrp	x8, _ops_biti@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ops_biti@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x27, [x8, w27, uxtw #3]
	mov	x0, x23
	bl	_cr16_get_opcode_i
	mov	w8, #119
	mov	w9, #98
	cmp	x0, #0
	csel	x8, x9, x8, eq
	stp	x27, x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	bl	_snprintf
	lsr	w8, w23, #13
	and	w8, w8, #0x2
	bfxil	w8, w23, #0, #1
	cmp	w8, #3
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.4:
	cbnz	w8, LBB0_10
; %bb.5:
	mov	x0, x22
	mov	w1, #2
	bl	_r_read_at_le16
	lsl	w8, w21, #14
	and	w8, w8, #0xfffe0000
	bfi	w8, w21, #16, #1
	orr	w8, w8, w0
	ldr	w0, [x19, #4]
	ldr	x9, [x26]
	sub	x1, x9, #1
	stp	x20, x8, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	w0, #-1
	b	LBB0_12
LBB0_7:
	ldr	w0, [x19, #4]
	ldr	x8, [x26]
Lloh9:
	adrp	x9, _cr16_regs_names@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cr16_regs_names@GOTPAGEOFF]
	sub	x1, x8, #1
Lloh11:
	ldr	x8, [x9]
	mov	w9, #9
	and	w9, w21, w9
	ldr	x8, [x8, w9, uxtw #3]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	mov	w0, #2
	b	LBB0_11
LBB0_8:
	mov	x0, x22
	mov	w1, #2
	bl	_r_read_at_le16
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #4]
	ldr	x9, [x26]
Lloh14:
	adrp	x10, _cr16_regs_names@GOTPAGE
Lloh15:
	ldr	x10, [x10, _cr16_regs_names@GOTPAGEOFF]
	sub	x1, x9, #1
Lloh16:
	ldr	x9, [x10]
	mov	w10, #9
	and	w10, w21, w10
	ldr	x9, [x9, w10, uxtw #3]
	stp	x0, x9, [sp, #8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x8
LBB0_9:
	bl	_snprintf
	mov	w0, #4
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
Lloh19:
	adrp	x8, _CR16_TYPE_BIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CR16_TYPE_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CR16_INSTR_MAXLEN,8,3          ; @CR16_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%c"

	.comm	_ops_biti,8,3                   ; @ops_biti
l_.str.1:                               ; @.str.1
	.asciz	"$0x%02x,0x%08x"

l_.str.2:                               ; @.str.2
	.asciz	"$0x%02x,0x%04x(%s)"

	.comm	_cr16_regs_names,8,3            ; @cr16_regs_names
l_.str.3:                               ; @.str.3
	.asciz	"$0x%02x,0(%s)"

	.comm	_CR16_TYPE_BIT,4,2              ; @CR16_TYPE_BIT
.subsections_via_symbols
