	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cr16_decode_movd               ## -- Begin function cr16_decode_movd
	.p2align	4, 0x90
_cr16_decode_movd:                      ## @cr16_decode_movd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_r_read_le16
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_r_read_at_le16
	movl	%eax, %r15d
	movl	$-1, %eax
	testb	$1, %r12b
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	movq	_CR16_INSTR_MAXLEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	decq	%rsi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	%r12d, %eax
	andl	$16, %eax
	shll	$12, %eax
	orl	%r15d, %eax
	movl	%r12d, %edx
	shll	$11, %edx
	andl	$1048576, %edx                  ## imm = 0x100000
	movl	%r12d, %ecx
	andl	$14, %ecx
	shll	$16, %ecx
	orl	%edx, %ecx
	orl	%eax, %ecx
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	decq	%rsi
	movq	_cr16_regs_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shrl	$5, %r12d
	andl	$15, %r12d
	movq	(%rax,%r12,8), %r9
	movq	8(%rax,%r12,8), %r8
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$4, %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	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	"movd"

L_.str.1:                               ## @.str.1
	.asciz	"$0x%08x,(%s,%s)"

	.comm	_cr16_regs_names,8,3            ## @cr16_regs_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cr16_decode_movd               ; -- Begin function cr16_decode_movd
	.p2align	2
_cr16_decode_movd:                      ; @cr16_decode_movd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x21, x0
	bl	_r_read_le16
	mov	x20, x0
	mov	x0, x21
	mov	w1, #2
	bl	_r_read_at_le16
	tbnz	w20, #0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x22, _CR16_INSTR_MAXLEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CR16_INSTR_MAXLEN@GOTPAGEOFF]
	ldr	x8, [x22]
	sub	x1, x8, #1
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	lsl	w8, w20, #12
	and	w8, w8, #0x10000
	orr	w8, w8, w21
	lsl	w9, w20, #11
	and	w9, w9, #0x100000
	orr	w8, w8, w9
	lsl	w9, w20, #16
	and	w9, w9, #0xe0000
	orr	w8, w8, w9
	ldr	w0, [x19]
	ldr	x9, [x22]
	sub	x1, x9, #1
Lloh4:
	adrp	x9, _cr16_regs_names@GOTPAGE
Lloh5:
	ldr	x9, [x9, _cr16_regs_names@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ubfx	w10, w20, #5, #4
	add	w11, w10, #1
	ldr	x11, [x9, w11, uxtw #3]
	ldr	x9, [x9, w10, uxtw #3]
	stp	x11, x9, [sp, #8]
	str	x8, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	mov	w0, #4
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CR16_INSTR_MAXLEN,8,3          ; @CR16_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"movd"

l_.str.1:                               ; @.str.1
	.asciz	"$0x%08x,(%s,%s)"

	.comm	_cr16_regs_names,8,3            ; @cr16_regs_names
.subsections_via_symbols
