	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msp430_decode_command          ## -- Begin function msp430_decode_command
	.p2align	4, 0x90
_msp430_decode_command:                 ## @msp430_decode_command
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	cmpl	$2, %esi
	jl	LBB0_17
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_r_read_le16
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_get_twoop_opcode
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.2:
	cmpl	$131, %eax
	je	LBB0_15
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.4:
	movl	%r15d, %eax
	andl	$3968, %eax                     ## imm = 0xF80
	cmpl	$768, %eax                      ## imm = 0x300
	ja	LBB0_15
## %bb.5:
	xorl	%esi, %esi
	cmpl	$4, %ebx
	jb	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_r_read_at_le16
	movl	%eax, %esi
LBB0_7:
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_decode_oneop_opcode
	testl	%eax, %eax
	jns	LBB0_17
	jmp	LBB0_15
LBB0_8:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_decode_jmp
	jmp	LBB0_16
LBB0_9:
	movq	_MSP430_TWOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%r13d, %r13d
	cmpl	$4, %ebx
	jb	LBB0_10
## %bb.11:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_r_read_at_le16
	movl	%eax, %esi
	cmpl	$6, %ebx
	jb	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movl	%esi, %ebx
	movl	$4, %esi
	callq	_r_read_at_le16
	movl	%ebx, %esi
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_10:
	xorl	%esi, %esi
LBB0_13:
	movl	%r15d, %edi
	movl	%r13d, %edx
	movq	%r14, %rcx
	callq	_decode_twoop_opcode
	testl	%eax, %eax
	jns	LBB0_17
LBB0_15:
	movq	_MSP430_INV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	(%r14), %rax
	movb	$0, (%rax)
LBB0_16:
	movl	$2, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSP430_TWOOP,4,2               ## @MSP430_TWOOP
	.comm	_MSP430_INV,4,2                 ## @MSP430_INV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msp430_decode_command          ; -- Begin function msp430_decode_command
	.p2align	2
_msp430_decode_command:                 ; @msp430_decode_command
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w1, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_19
LBB0_2:
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_r_read_le16
	mov	x20, x0
	bl	_get_twoop_opcode
	sub	w8, w0, #129
	cmp	w8, #2
	b.lo	LBB0_8
; %bb.3:
	cmp	w0, #131
	b.eq	LBB0_17
; %bb.4:
	cmp	w0, #128
	b.ne	LBB0_9
; %bb.5:
	and	w8, w20, #0xf80
	cmp	w8, #768
	b.hi	LBB0_17
; %bb.6:
	cmp	w22, #4
	b.lo	LBB0_15
; %bb.7:
	mov	x0, x21
	mov	w1, #2
	bl	_r_read_at_le16
	mov	x1, x0
	b	LBB0_16
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_decode_jmp
	b	LBB0_18
LBB0_9:
Lloh0:
	adrp	x8, _MSP430_TWOOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSP430_TWOOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	cmp	w22, #4
	b.lo	LBB0_12
; %bb.10:
	mov	x0, x21
	mov	w1, #2
	bl	_r_read_at_le16
	mov	x23, x0
	cmp	w22, #6
	b.lo	LBB0_13
; %bb.11:
	mov	x0, x21
	mov	w1, #4
	bl	_r_read_at_le16
	mov	x2, x0
	b	LBB0_14
LBB0_12:
	mov	w23, #0
LBB0_13:
	mov	w2, #0
LBB0_14:
	mov	x0, x20
	mov	x1, x23
	mov	x3, x19
	bl	_decode_twoop_opcode
	tbz	w0, #31, LBB0_19
	b	LBB0_17
LBB0_15:
	mov	w1, #0
LBB0_16:
	mov	x0, x20
	mov	x2, x19
	bl	_decode_oneop_opcode
	tbz	w0, #31, LBB0_19
LBB0_17:
Lloh3:
	adrp	x8, _MSP430_INV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSP430_INV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x8, [x19]
	strb	wzr, [x8]
LBB0_18:
	mov	w0, #2
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSP430_TWOOP,4,2               ; @MSP430_TWOOP
	.comm	_MSP430_INV,4,2                 ; @MSP430_INV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid"

.subsections_via_symbols
