	.file	"extr_i4004dis.c_i4004dis.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid"
.LC1:
	.string	"nop"
.LC2:
	.string	"jcn %d 0x%02x"
.LC3:
	.string	"src r%d"
.LC4:
	.string	"fim r%d, 0x%02x"
.LC5:
	.string	"jin r%d"
.LC6:
	.string	"fin r%d"
.LC7:
	.string	"jun 0x%03x"
.LC8:
	.string	"jms 0x%03x"
.LC9:
	.string	"inc r%d"
.LC10:
	.string	"isz r%d, 0x%02x"
.LC11:
	.string	"add r%d"
.LC12:
	.string	"sub r%d"
.LC13:
	.string	"ld r%d"
.LC14:
	.string	"xch r%d"
.LC15:
	.string	"bbl %d"
.LC16:
	.string	"ldm %d"
	.text
	.p2align 4
	.type	i4004dis, @function
i4004dis:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rsi]
	call	i4004_get_ins_len@PLT
	cmp	eax, r13d
	jg	.L27
	mov	esi, DWORD PTR [rbx]
	lea	rcx, .L6[rip]
	mov	r12d, eax
	mov	edx, esi
	mov	r8d, esi
	sar	edx, 4
	and	r8d, 15
	and	edx, 15
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L4-.L6
	.long	.L20-.L6
	.long	.L19-.L6
	.long	.L18-.L6
	.long	.L17-.L6
	.long	.L16-.L6
	.long	.L15-.L6
	.long	.L14-.L6
	.long	.L13-.L6
	.long	.L12-.L6
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
	.p2align 4,,10
	.p2align 3
.L27:
	mov	DWORD PTR 0[rbp], 0
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR i4004_f[rip]
	movsx	r8, r8d
	mov	rsi, QWORD PTR [rax+r8*8]
.L21:
	lea	rdi, 4[rbp]
	call	r_strbuf_set@PLT
	mov	DWORD PTR 0[rbp], r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR i4004_e[rip]
	movsx	r8, r8d
	mov	rsi, QWORD PTR [rax+r8*8]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, r8d
	lea	rdi, .LC16[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, r8d
	lea	rdi, .LC15[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, r8d
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, r8d
	lea	rdi, .LC13[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, r8d
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, r8d
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, r8d
	lea	rdi, .LC10[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, r8d
	lea	rdi, .LC9[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, r8d
	lea	rdi, .LC8[rip]
	xor	eax, eax
	sal	esi, 8
	or	esi, DWORD PTR 4[rbx]
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, r8d
	lea	rdi, .LC7[rip]
	xor	eax, eax
	sal	esi, 8
	or	esi, DWORD PTR 4[rbx]
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r8d, esi
	and	r8d, 14
	and	esi, 1
	mov	esi, r8d
	je	.L23
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	and	esi, 14
	cmp	r12d, 1
	je	.L28
	mov	edx, DWORD PTR 4[rbx]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, r8d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
.L4:
	test	r8d, r8d
	lea	rax, .LC0[rip]
	lea	rsi, .LC1[rip]
	cmovne	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	sdb_fmt@PLT
	mov	rsi, rax
	jmp	.L21
	.cfi_endproc
.LFE0:
	.size	i4004dis, .-i4004dis
	.comm	i4004_f,8,8
	.comm	i4004_e,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_i4004dis.c_i4004dis.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid\000"
	.align	2
.LC1:
	.ascii	"nop\000"
	.align	2
.LC2:
	.ascii	"jcn %d 0x%02x\000"
	.align	2
.LC3:
	.ascii	"src r%d\000"
	.align	2
.LC4:
	.ascii	"fim r%d, 0x%02x\000"
	.align	2
.LC5:
	.ascii	"jin r%d\000"
	.align	2
.LC6:
	.ascii	"fin r%d\000"
	.align	2
.LC7:
	.ascii	"jun 0x%03x\000"
	.align	2
.LC8:
	.ascii	"jms 0x%03x\000"
	.align	2
.LC9:
	.ascii	"inc r%d\000"
	.align	2
.LC10:
	.ascii	"isz r%d, 0x%02x\000"
	.align	2
.LC11:
	.ascii	"add r%d\000"
	.align	2
.LC12:
	.ascii	"sub r%d\000"
	.align	2
.LC13:
	.ascii	"ld r%d\000"
	.align	2
.LC14:
	.ascii	"xch r%d\000"
	.align	2
.LC15:
	.ascii	"bbl %d\000"
	.align	2
.LC16:
	.ascii	"ldm %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i4004dis, %function
i4004dis:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r1]
	mov	r7, r2
	mov	r5, r1
	bl	i4004_get_ins_len
	cmp	r0, r7
	movgt	r4, #0
	strgt	r4, [r6]
	bgt	.L1
	ldr	r2, [r5]
	mov	r4, r0
	asr	r3, r2, #4
	and	r3, r3, #15
	sub	r3, r3, #1
	and	r1, r2, #15
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L5:
	ldr	r3, .L28
	ldr	r3, [r3]
	ldr	r1, [r3, r1, lsl #2]
.L21:
	add	r0, r6, #4
	bl	r_strbuf_set
	str	r4, [r6]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r1, [r3, r1, lsl #2]
	b	.L21
.L8:
	ldr	r0, .L28+8
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L9:
	ldr	r0, .L28+12
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L10:
	ldr	r0, .L28+16
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L11:
	ldr	r0, .L28+20
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L12:
	ldr	r0, .L28+24
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L13:
	ldr	r0, .L28+28
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L14:
	ldr	r2, [r5, #4]
	ldr	r0, .L28+32
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L15:
	ldr	r0, .L28+36
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L16:
	ldr	r3, [r5, #4]
	ldr	r0, .L28+40
	orr	r1, r3, r1, lsl #8
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L17:
	ldr	r3, [r5, #4]
	ldr	r0, .L28+44
	orr	r1, r3, r1, lsl #8
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L18:
	tst	r2, #1
	and	r1, r2, #14
	ldrne	r0, .L28+48
	ldreq	r0, .L28+52
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L19:
	cmp	r0, #1
	and	r1, r2, #14
	beq	.L27
	ldr	r2, [r5, #4]
	ldr	r0, .L28+56
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L20:
	ldr	r2, [r5, #4]
	ldr	r0, .L28+60
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L27:
	ldr	r0, .L28+64
	bl	sdb_fmt
	mov	r1, r0
	b	.L21
.L4:
	ldr	r3, .L28+68
	ldr	r2, .L28+72
	cmp	r1, #0
	movne	r1, r3
	moveq	r1, r2
	b	.L21
.L29:
	.align	2
.L28:
	.word	i4004_f
	.word	i4004_e
	.word	.LC16
	.word	.LC15
	.word	.LC14
	.word	.LC13
	.word	.LC12
	.word	.LC11
	.word	.LC10
	.word	.LC9
	.word	.LC8
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.size	i4004dis, .-i4004dis
	.comm	i4004_f,4,4
	.comm	i4004_e,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
