	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cr16_decode_i_r
_cr16_decode_i_r:                       ## @cr16_decode_i_r
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_r_read_le16
	movl	$-1, %r15d
	cmpl	$512, %eax                      ## imm = 0x200
	je	LBB0_23
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %r13d
	sarl	$9, %r13d
	movq	_CR16_TBIT_I_R@GOTPCREL(%rip), %rax
	movq	_CR16_TBIT_R_R@GOTPCREL(%rip), %rcx
	cmpl	(%rax), %r13d
	je	LBB0_5
## %bb.2:
	cmpl	(%rcx), %r13d
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_cr16_print_4biti_opcode
	testq	%rax, %rax
	jne	LBB0_23
## %bb.4:
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_cr16_anal_4bit_opcode
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_cr16_print_4bit_opcode
	testq	%rax, %rax
	jne	LBB0_23
LBB0_6:
	movl	%ebx, %eax
	andl	$31, %eax
	cmpl	$17, %eax
	jne	LBB0_15
## %bb.7:
	testb	$1, %bl
	jne	LBB0_8
## %bb.9:
	movl	%ebx, %edi
	callq	_cr16_get_short_imm
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_15:
	movl	%ebx, %edi
	callq	_cr16_get_dstreg
	movl	%eax, %edi
	callq	_cr16_check_reg_boundaries
	movl	$-1, %ecx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.16:
	movq	_CR16_TBIT_I_R@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CR16_TBIT_R_R@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_cr16_get_short_imm
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_cr16_get_dstreg
	cmpl	%r12d, %r13d
	je	LBB0_19
## %bb.17:
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_cr16_print_short_reg
	jmp	LBB0_20
LBB0_8:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_r_read_at_le16
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$4, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	_CR16_TBIT_I_R@GOTPCREL(%rip), %rax
	movq	_CR16_TBIT_R_R@GOTPCREL(%rip), %rcx
	movl	(%rax), %r12d
	movl	(%rcx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_cr16_get_dstreg
	cmpl	%r12d, %r13d
	je	LBB0_14
## %bb.11:
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_cr16_print_med_reg
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_cr16_print_reg_med
LBB0_13:
	testl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_23
	jmp	LBB0_22
LBB0_19:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_cr16_print_reg_short
LBB0_20:
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.21:
	movl	$2, %ecx
LBB0_22:
	movl	%ecx, %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR16_TBIT_I_R,4,2              ## @CR16_TBIT_I_R
	.comm	_CR16_TBIT_R_R,4,2              ## @CR16_TBIT_R_R
	.no_dead_strip	_cr16_decode_i_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cr16_decode_i_r
_cr16_decode_i_r:                       ; @cr16_decode_i_r
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_r_read_le16
	cmp	w0, #512
	b.eq	LBB0_16
; %bb.1:
	mov	x20, x0
	asr	w23, w0, #9
Lloh0:
	adrp	x24, _CR16_TBIT_I_R@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CR16_TBIT_I_R@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _CR16_TBIT_R_R@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CR16_TBIT_R_R@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w23, w8
	mov	x0, x19
	mov	x1, x20
	ccmp	w23, w9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	bl	_cr16_print_4bit_opcode
	cbnz	x0, LBB0_16
	b	LBB0_5
LBB0_3:
	bl	_cr16_print_4biti_opcode
	cbnz	x0, LBB0_16
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_cr16_anal_4bit_opcode
LBB0_5:
	and	w8, w20, #0x1f
	cmp	w8, #17
	b.ne	LBB0_8
; %bb.6:
	tbnz	w20, #0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_cr16_get_short_imm
	mov	x22, x0
	mov	w21, #2
	b	LBB0_12
LBB0_8:
	mov	x0, x20
	bl	_cr16_get_dstreg
	bl	_cr16_check_reg_boundaries
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w22, [x24]
	ldr	w24, [x25]
	mov	x0, x20
	bl	_cr16_get_short_imm
	mov	x21, x0
	mov	x0, x20
	bl	_cr16_get_dstreg
	mov	x2, x0
	cmp	w23, w22
	mov	x0, x19
	mov	x1, x21
	ccmp	w23, w24, #4, ne
	b.ne	LBB0_15
; %bb.10:
	bl	_cr16_print_reg_short
	cbnz	w0, LBB0_16
	b	LBB0_18
LBB0_11:
	mov	x0, x21
	mov	w1, #2
	bl	_r_read_at_le16
	mov	x22, x0
	mov	w21, #4
LBB0_12:
	ldr	w24, [x24]
	ldr	w25, [x25]
	mov	x0, x20
	bl	_cr16_get_dstreg
	mov	x2, x0
	cmp	w23, w24
	mov	x0, x19
	mov	x1, x22
	ccmp	w23, w25, #4, ne
	b.ne	LBB0_14
; %bb.13:
	bl	_cr16_print_reg_med
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_14:
	bl	_cr16_print_med_reg
	cbnz	w0, LBB0_16
	b	LBB0_17
LBB0_15:
	bl	_cr16_print_short_reg
	cbz	w0, LBB0_18
LBB0_16:
	mov	w21, #-1
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w21, #2
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CR16_TBIT_I_R,4,2              ; @CR16_TBIT_I_R
	.comm	_CR16_TBIT_R_R,4,2              ; @CR16_TBIT_R_R
	.no_dead_strip	_cr16_decode_i_r
.subsections_via_symbols
