	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i4004dis
_i4004dis:                              ## @i4004dis
	.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
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_i4004_get_ins_len
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpl	%ebx, %r15d
	jg	LBB0_28
## %bb.1:
	movl	(%r12), %eax
	movl	%eax, %esi
	andl	$15, %esi
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	testl	%esi, %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	jmp	LBB0_27
LBB0_3:
	andl	$14, %eax
	cmpl	$1, %r15d
	jne	LBB0_21
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_24
LBB0_5:
	shll	$8, %esi
	orl	4(%r12), %esi
	leaq	L_.str.7(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_6:
	leaq	L_.str.12(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_7:
	leaq	L_.str.14(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_8:
	leaq	L_.str.15(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_9:
	movq	_i4004_e@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rsi
	jmp	LBB0_27
LBB0_10:
	movq	_i4004_f@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rsi
	jmp	LBB0_27
LBB0_11:
	movl	4(%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %ecx
	andl	$14, %eax
	testb	$1, %cl
	jne	LBB0_23
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_24
LBB0_14:
	shll	$8, %esi
	orl	4(%r12), %esi
	leaq	L_.str.8(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_15:
	leaq	L_.str.9(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_16:
	movl	4(%r12), %edx
	leaq	L_.str.10(%rip), %rdi
LBB0_17:
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_22
LBB0_18:
	leaq	L_.str.11(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_19:
	leaq	L_.str.13(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_20:
	leaq	L_.str.16(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_25
LBB0_21:
	movl	4(%r12), %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
LBB0_22:
	xorl	%eax, %eax
	callq	_sdb_fmt
	jmp	LBB0_26
LBB0_23:
	leaq	L_.str.5(%rip), %rdi
LBB0_24:
	movl	%eax, %esi
LBB0_25:
	xorl	%eax, %eax
	callq	_sdb_fmt
LBB0_26:
	movq	%rax, %rsi
LBB0_27:
	leaq	4(%r14), %rdi
	callq	_r_strbuf_set
	movl	%r15d, %eax
LBB0_28:
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_6
	.long	L0_0_set_19
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_20
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid"

L_.str.1:                               ## @.str.1
	.asciz	"nop"

L_.str.2:                               ## @.str.2
	.asciz	"jcn %d 0x%02x"

L_.str.3:                               ## @.str.3
	.asciz	"src r%d"

L_.str.4:                               ## @.str.4
	.asciz	"fim r%d, 0x%02x"

L_.str.5:                               ## @.str.5
	.asciz	"jin r%d"

L_.str.6:                               ## @.str.6
	.asciz	"fin r%d"

L_.str.7:                               ## @.str.7
	.asciz	"jun 0x%03x"

L_.str.8:                               ## @.str.8
	.asciz	"jms 0x%03x"

L_.str.9:                               ## @.str.9
	.asciz	"inc r%d"

L_.str.10:                              ## @.str.10
	.asciz	"isz r%d, 0x%02x"

L_.str.11:                              ## @.str.11
	.asciz	"add r%d"

L_.str.12:                              ## @.str.12
	.asciz	"sub r%d"

L_.str.13:                              ## @.str.13
	.asciz	"ld r%d"

L_.str.14:                              ## @.str.14
	.asciz	"xch r%d"

L_.str.15:                              ## @.str.15
	.asciz	"bbl %d"

L_.str.16:                              ## @.str.16
	.asciz	"ldm %d"

	.comm	_i4004_e,8,3                    ## @i4004_e
	.comm	_i4004_f,8,3                    ## @i4004_f
	.no_dead_strip	_i4004dis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i4004dis
_i4004dis:                              ; @i4004dis
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_i4004_get_ins_len
	cmp	w0, w22
	b.le	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_25
LBB0_2:
	ldr	w8, [x21]
	and	x1, x8, #0xf
	ubfx	w9, w8, #4, #4
	mov	x20, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w1, #0
	csel	x1, x9, x8, eq
	b	LBB0_24
LBB0_4:
	and	w1, w8, #0xe
	cmp	w20, #1
	b.ne	LBB0_21
; %bb.5:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_6:
	ldr	w8, [x21, #4]
	orr	w1, w8, w1, lsl #8
Lloh8:
	adrp	x0, l_.str.7@PAGE
Lloh9:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_23
LBB0_7:
Lloh10:
	adrp	x0, l_.str.12@PAGE
Lloh11:
	add	x0, x0, l_.str.12@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_8:
Lloh12:
	adrp	x0, l_.str.14@PAGE
Lloh13:
	add	x0, x0, l_.str.14@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_9:
Lloh14:
	adrp	x0, l_.str.15@PAGE
Lloh15:
	add	x0, x0, l_.str.15@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_10:
Lloh16:
	adrp	x8, _i4004_e@GOTPAGE
Lloh17:
	ldr	x8, [x8, _i4004_e@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x1, [x8, x1, lsl #3]
	b	LBB0_24
LBB0_11:
Lloh19:
	adrp	x8, _i4004_f@GOTPAGE
Lloh20:
	ldr	x8, [x8, _i4004_f@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x1, [x8, w1, uxtw #3]
	b	LBB0_24
LBB0_12:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_13:
	and	w1, w8, #0xe
	tbnz	w8, #0, LBB0_22
; %bb.14:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_23
LBB0_15:
	ldr	w8, [x21, #4]
	orr	w1, w8, w1, lsl #8
Lloh26:
	adrp	x0, l_.str.8@PAGE
Lloh27:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_16:
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_17:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.10@PAGE
Lloh31:
	add	x0, x0, l_.str.10@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_18:
Lloh32:
	adrp	x0, l_.str.11@PAGE
Lloh33:
	add	x0, x0, l_.str.11@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_19:
Lloh34:
	adrp	x0, l_.str.13@PAGE
Lloh35:
	add	x0, x0, l_.str.13@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_20:
Lloh36:
	adrp	x0, l_.str.16@PAGE
Lloh37:
	add	x0, x0, l_.str.16@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_23
LBB0_21:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_23:
	bl	_sdb_fmt
	mov	x1, x0
LBB0_24:
	add	x0, x19, #4
	bl	_r_strbuf_set
LBB0_25:
	str	w20, [x19]
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid"

l_.str.1:                               ; @.str.1
	.asciz	"nop"

l_.str.2:                               ; @.str.2
	.asciz	"jcn %d 0x%02x"

l_.str.3:                               ; @.str.3
	.asciz	"src r%d"

l_.str.4:                               ; @.str.4
	.asciz	"fim r%d, 0x%02x"

l_.str.5:                               ; @.str.5
	.asciz	"jin r%d"

l_.str.6:                               ; @.str.6
	.asciz	"fin r%d"

l_.str.7:                               ; @.str.7
	.asciz	"jun 0x%03x"

l_.str.8:                               ; @.str.8
	.asciz	"jms 0x%03x"

l_.str.9:                               ; @.str.9
	.asciz	"inc r%d"

l_.str.10:                              ; @.str.10
	.asciz	"isz r%d, 0x%02x"

l_.str.11:                              ; @.str.11
	.asciz	"add r%d"

l_.str.12:                              ; @.str.12
	.asciz	"sub r%d"

l_.str.13:                              ; @.str.13
	.asciz	"ld r%d"

l_.str.14:                              ; @.str.14
	.asciz	"xch r%d"

l_.str.15:                              ; @.str.15
	.asciz	"bbl %d"

l_.str.16:                              ; @.str.16
	.asciz	"ldm %d"

	.comm	_i4004_e,8,3                    ; @i4004_e
	.comm	_i4004_f,8,3                    ; @i4004_f
	.no_dead_strip	_i4004dis
.subsections_via_symbols
