	.file	"extr_sljitNativeTILEGX-encoder.c_find_opcode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	find_opcode
	.type	find_opcode, @function
find_opcode:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR tilegx_bundle_decoder_fsms[rip]
	movzx	edi, di
	movzx	r9d, WORD PTR TILEGX_OPC_NONE[rip]
	mov	rsi, QWORD PTR [rax+rsi*8]
	mov	eax, edi
	mov	r8d, r9d
	movzx	ecx, WORD PTR [rsi]
	sar	eax, cl
	shr	cx, 6
	movzx	ecx, cx
	and	eax, ecx
	add	eax, 1
	movzx	eax, WORD PTR [rsi+rax*2]
	cmp	ax, r9w
	jbe	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	eax, ax
	sub	eax, r9d
	movsx	rdx, eax
	movzx	ecx, WORD PTR [rsi+rdx*2]
	mov	edx, edi
	sar	edx, cl
	shr	cx, 6
	movzx	ecx, cx
	and	ecx, edx
	lea	eax, 1[rax+rcx]
	movzx	eax, WORD PTR [rsi+rax*2]
	cmp	ax, r8w
	ja	.L4
.L3:
	mov	rdx, QWORD PTR tilegx_opcodes[rip]
	lea	rax, [rdx+rax*4]
	ret
	.cfi_endproc
.LFE0:
	.size	find_opcode, .-find_opcode
	.comm	tilegx_opcodes,8,8
	.comm	tilegx_bundle_decoder_fsms,8,8
	.comm	TILEGX_OPC_NONE,2,2
	.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_sljitNativeTILEGX-encoder.c_find_opcode.c"
	.text
	.align	2
	.global	find_opcode
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_opcode, %function
find_opcode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	ldr	r2, .L11+4
	ldr	r3, [r3]
	ldrh	ip, [r2]
	ldr	r1, [r3, r1, lsl #2]
	ldrh	r3, [r1]
	and	r2, r3, #63
	lsr	r3, r3, #6
	and	r3, r3, r0, asr r2
	add	r3, r1, r3, lsl #1
	ldrh	r3, [r3, #2]
	cmp	r3, ip
	bls	.L10
	str	lr, [sp, #-4]!
.L4:
	sub	r3, r3, ip
	lsl	r2, r3, #1
	ldrh	r2, [r1, r2]
	and	lr, r2, #63
	lsr	r2, r2, #6
	and	r2, r2, r0, asr lr
	add	r3, r3, r2
	add	r3, r1, r3, lsl #1
	ldrh	r3, [r3, #2]
	cmp	r3, ip
	bhi	.L4
	ldr	r2, .L11+8
	ldr	r0, [r2]
	add	r0, r0, r3, lsl #2
	ldr	pc, [sp], #4
.L10:
	ldr	r2, .L11+8
	ldr	r0, [r2]
	add	r0, r0, r3, lsl #2
	bx	lr
.L12:
	.align	2
.L11:
	.word	tilegx_bundle_decoder_fsms
	.word	TILEGX_OPC_NONE
	.word	tilegx_opcodes
	.size	find_opcode, .-find_opcode
	.comm	tilegx_opcodes,4,4
	.comm	tilegx_bundle_decoder_fsms,4,4
	.comm	TILEGX_OPC_NONE,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
