	.file	"extr_avr_disasm.c_lookupInstruction.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lookupInstruction, @function
lookupInstruction:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	cmp	DWORD PTR AVR_TOTAL_INSTRUCTIONS[rip], esi
	jle	.L21
	movsx	rax, esi
	mov	DWORD PTR 28[rsp], esi
	mov	r10, QWORD PTR instructionSet[rip]
	mov	r12, rdi
	lea	rbp, [rax+rax*2]
	lea	rax, 0[0+rbp*8]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rsp]
	mov	r14, r12
	lea	rsi, [r10+rax]
	mov	eax, DWORD PTR AVR_MAX_NUM_OPERANDS[rip]
	test	eax, eax
	jle	.L9
	mov	rdi, QWORD PTR 8[rsi]
	mov	r14, r12
	xor	ebx, ebx
	mov	r13d, 1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR [rsi]
	mov	edx, DWORD PTR AVR_MAX_NUM_OPERANDS[rip]
	lea	r15, 0[0+rbx*8]
	mov	rcx, QWORD PTR OPERAND_REGISTER_GHOST[rip]
	cmp	QWORD PTR [rax+rbx*8], rcx
	je	.L22
.L6:
	mov	rax, QWORD PTR [rdi+r15]
	add	rbx, 1
	not	rax
	and	r14, rax
	cmp	edx, ebx
	jg	.L8
	test	r13d, r13d
	je	.L11
.L9:
	cmp	QWORD PTR 16[rsi], r14
	je	.L1
.L11:
	add	DWORD PTR 28[rsp], 1
	mov	eax, DWORD PTR 28[rsp]
	add	QWORD PTR 8[rsp], 24
	cmp	DWORD PTR AVR_TOTAL_INSTRUCTIONS[rip], eax
	jg	.L10
.L1:
	mov	eax, DWORD PTR 28[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rdi]
	mov	rdi, r12
	mov	ebp, 1
	call	extractDataFromMask@PLT
	mov	edx, DWORD PTR AVR_MAX_NUM_OPERANDS[rip]
	mov	QWORD PTR 16[rsp], rax
	cmp	edx, 1
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR instructionSet[rip]
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdi, r12
	mov	rax, QWORD PTR 8[rax+rcx]
	mov	rsi, QWORD PTR [rax+r15]
	call	extractDataFromMask@PLT
	mov	edx, DWORD PTR AVR_MAX_NUM_OPERANDS[rip]
	cmp	rax, QWORD PTR 16[rsp]
	mov	eax, 0
	cmovne	r13d, eax
	add	ebp, 1
	cmp	edx, ebp
	jg	.L5
.L19:
	mov	r10, QWORD PTR instructionSet[rip]
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, [r10+rax]
	mov	rdi, QWORD PTR 8[rsi]
	jmp	.L6
.L21:
	mov	DWORD PTR 28[rsp], esi
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	lookupInstruction, .-lookupInstruction
	.comm	instructionSet,8,8
	.comm	OPERAND_REGISTER_GHOST,8,8
	.comm	AVR_TOTAL_INSTRUCTIONS,4,4
	.comm	AVR_MAX_NUM_OPERANDS,4,4
	.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_avr_disasm.c_lookupInstruction.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lookupInstruction, %function
lookupInstruction:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	sub	sp, sp, #20
	ldr	r3, [r3]
	cmp	r3, r1
	strle	r1, [sp, #4]
	ble	.L1
	mov	r9, r0
	str	r1, [sp, #4]
	add	r1, r1, r1, lsl #1
	lsl	r3, r1, #2
	ldr	r8, .L22+4
	ldr	fp, .L22+8
	ldr	r10, .L22+12
	str	r3, [sp]
.L11:
	ldr	r3, [r8]
	ldr	r0, [fp]
	ldr	r2, [sp]
	cmp	r3, #0
	add	r0, r0, r2
	mov	r6, r9
	mov	r3, r0
	ble	.L10
	mov	r7, #1
	mov	lr, r3
	mov	r4, #0
	mov	r3, r9
	mov	r9, r7
	mov	r7, r6
	ldr	ip, [r0, #4]
.L9:
	ldr	r0, [lr]
	ldr	r1, [r10]
	ldr	r5, [r0, r4, lsl #2]
	mov	r0, lr
	cmp	r5, r1
	ldrne	r1, [r8]
	lsl	r5, r4, #2
	beq	.L20
.L8:
	ldr	r5, [ip, r5]
	add	r4, r4, #1
	cmp	r4, r1
	bic	r7, r7, r5
	blt	.L9
	mov	r6, r7
	mov	r7, r9
	mov	r9, r3
.L6:
	cmp	r7, #0
	beq	.L12
.L10:
	ldr	r3, [r0, #8]
	cmp	r3, r6
	beq	.L1
.L12:
	ldr	r3, .L22
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	add	r2, r2, #1
	cmp	r3, r2
	ldr	r3, [sp]
	str	r2, [sp, #4]
	add	r3, r3, #12
	str	r3, [sp]
	bgt	.L11
.L1:
	ldr	r0, [sp, #4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	mov	r0, r3
	ldr	r1, [ip]
	str	r3, [sp, #8]
	bl	extractDataFromMask
	ldr	r1, [r8]
	ldr	r3, [sp, #8]
	cmp	r1, #1
	ble	.L21
	str	r7, [sp, #8]
	str	r4, [sp, #12]
	mov	r6, #1
	mov	r7, r0
	mov	r4, r3
.L5:
	ldr	r1, [fp]
	ldr	r3, [sp]
	mov	r0, r4
	add	r1, r1, r3
	ldr	r1, [r1, #4]
	add	r6, r6, #1
	ldr	r1, [r1, r5]
	bl	extractDataFromMask
	ldr	r1, [r8]
	cmp	r0, r7
	movne	r9, #0
	cmp	r1, r6
	bgt	.L5
	ldr	lr, [fp]
	ldr	r2, [sp]
	mov	r3, r4
	add	lr, lr, r2
	mov	r0, lr
	ldr	r7, [sp, #8]
	ldr	r4, [sp, #12]
	ldr	ip, [lr, #4]
	b	.L8
.L21:
	mov	r6, r7
	ldr	r0, [fp]
	mov	r7, r9
	mov	r9, r3
	ldr	r3, [sp]
	add	r0, r0, r3
	ldr	r3, [r0, #4]
	ldr	r3, [r3, r5]
	bic	r6, r6, r3
	b	.L6
.L23:
	.align	2
.L22:
	.word	AVR_TOTAL_INSTRUCTIONS
	.word	AVR_MAX_NUM_OPERANDS
	.word	instructionSet
	.word	OPERAND_REGISTER_GHOST
	.size	lookupInstruction, .-lookupInstruction
	.comm	instructionSet,4,4
	.comm	OPERAND_REGISTER_GHOST,4,4
	.comm	AVR_TOTAL_INSTRUCTIONS,4,4
	.comm	AVR_MAX_NUM_OPERANDS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
