	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_ldc
_decode_ldc:                            ## @decode_ldc
	.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, %r15
	movq	%rdi, %rbx
	callq	_decode_opcode
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	(%rbx), %eax
	movq	_H8300_LDC_2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	movq	_H8300_XORC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_H8300_ORC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.5:
	movq	_H8300_LDC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movq	_H8300_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %r8d
	movl	%r8d, %ecx
	andl	$7, %ecx
	andl	$8, %r8d
	shrl	%r8d
	orl	$104, %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$2, %r14d
	jmp	LBB0_9
LBB0_4:
	movl	(%r15), %edi
	movq	_H8300_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$2, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	_H8300_STC@GOTPCREL(%rip), %rcx
	movl	$2, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	movq	_H8300_INSTR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %r8d
	movl	%r8d, %ecx
	andl	$7, %ecx
	andl	$8, %r8d
	shrl	%r8d
	orl	$104, %r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H8300_LDC_2,4,2                ## @H8300_LDC_2
	.comm	_H8300_XORC,4,2                 ## @H8300_XORC
	.comm	_H8300_ORC,4,2                  ## @H8300_ORC
	.comm	_H8300_INSTR_MAXLEN,4,2         ## @H8300_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#0x%x:8,ccr"

	.comm	_H8300_LDC,4,2                  ## @H8300_LDC
L_.str.1:                               ## @.str.1
	.asciz	"r%u%c,ccr"

	.comm	_H8300_STC,4,2                  ## @H8300_STC
L_.str.2:                               ## @.str.2
	.asciz	"ccr,r%u%c"

	.no_dead_strip	_decode_ldc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_ldc
_decode_ldc:                            ; @decode_ldc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_decode_opcode
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_10
LBB0_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _H8300_LDC_2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H8300_LDC_2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _H8300_XORC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _H8300_XORC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _H8300_ORC@GOTPAGE
Lloh7:
	ldr	x11, [x11, _H8300_ORC@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _H8300_INSTR_MAXLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H8300_INSTR_MAXLEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x19, #4]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh14:
	adrp	x9, _H8300_LDC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _H8300_LDC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x20]
Lloh17:
	adrp	x8, _H8300_INSTR_MAXLEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H8300_INSTR_MAXLEN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
	and	w3, w8, #0x7
	tst	w8, #0x8
	mov	w8, #108
	mov	w9, #104
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh22:
	adrp	x9, _H8300_STC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _H8300_STC@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _H8300_INSTR_MAXLEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _H8300_INSTR_MAXLEN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
	and	w3, w8, #0x7
	tst	w8, #0x8
	mov	w8, #108
	mov	w9, #104
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	bl	_snprintf
LBB0_9:
	mov	w0, #2
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_H8300_LDC_2,4,2                ; @H8300_LDC_2
	.comm	_H8300_XORC,4,2                 ; @H8300_XORC
	.comm	_H8300_ORC,4,2                  ; @H8300_ORC
	.comm	_H8300_INSTR_MAXLEN,4,2         ; @H8300_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#0x%x:8,ccr"

	.comm	_H8300_LDC,4,2                  ; @H8300_LDC
l_.str.1:                               ; @.str.1
	.asciz	"r%u%c,ccr"

	.comm	_H8300_STC,4,2                  ; @H8300_STC
l_.str.2:                               ; @.str.2
	.asciz	"ccr,r%u%c"

	.no_dead_strip	_decode_ldc
.subsections_via_symbols
