	.file	"extr_armass.c_thumb_selector.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	thumb_selector, @function
thumb_selector:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, 15
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	call	collect_list@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, 1
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
.L4:
	add	rbx, 1
	cmp	rbx, 15
	je	.L2
.L18:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	test	rdi, rdi
	je	.L2
	call	getreg@PLT
	lea	r14d, 0[0+rbx*4]
	cmp	eax, -1
	jne	.L25
	mov	DWORD PTR err[rip], 0
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getnum@PLT
	mov	esi, DWORD PTR err[rip]
	test	esi, esi
	jne	.L5
	mov	eax, 2
	mov	ecx, r14d
	add	rbx, 1
	sal	eax, cl
	or	r12d, eax
	cmp	rbx, 15
	jne	.L18
.L2:
	mov	DWORD PTR err[rip], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR err[rip], 0
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	thumb_getshift@PLT
	mov	ecx, DWORD PTR err[rip]
	test	ecx, ecx
	jne	.L6
	mov	eax, 3
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getcoproc@PLT
	cmp	eax, -1
	je	.L7
	mov	eax, 4
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getcoprocreg@PLT
	cmp	eax, -1
	je	.L8
	mov	eax, 5
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L8:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getregmemstart@PLT
	cmp	eax, -1
	je	.L9
	mov	eax, 6
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L9:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getregmemstartend@PLT
	cmp	eax, -1
	je	.L10
	mov	eax, 7
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L10:
	mov	DWORD PTR err[rip], 0
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getnummemend@PLT
	mov	edx, DWORD PTR err[rip]
	test	edx, edx
	jne	.L11
	mov	eax, 8
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L11:
	mov	DWORD PTR err[rip], 0
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getnummemendbang@PLT
	mov	eax, DWORD PTR err[rip]
	test	eax, eax
	jne	.L12
	mov	eax, 9
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L12:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getregmembang@PLT
	cmp	eax, -1
	je	.L13
	mov	eax, 10
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L13:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getreglist@PLT
	add	eax, 1
	je	.L14
	mov	eax, 11
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L14:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getregmemend@PLT
	add	eax, 1
	je	.L15
	mov	eax, 12
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L15:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getshiftmemend@PLT
	add	eax, 1
	je	.L16
	mov	eax, 13
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L16:
	mov	DWORD PTR err[rip], 0
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	call	getnumbang@PLT
	cmp	DWORD PTR err[rip], 0
	je	.L26
	mov	eax, r13d
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
.L26:
	mov	eax, 14
	mov	ecx, r14d
	sal	eax, cl
	or	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	thumb_selector, .-thumb_selector
	.comm	err,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_armass.c_thumb_selector.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thumb_selector, %function
thumb_selector:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r4, #0
	bl	collect_list
	mov	r6, r4
	mov	r8, r4
	mov	r10, #15
	mov	r9, #14
	ldr	r7, .L26
	sub	r5, r5, #4
	b	.L18
.L25:
	mov	r3, #1
	orr	r6, r6, r3, lsl r4
.L4:
	add	r4, r4, #4
	cmp	r4, #60
	beq	.L2
.L18:
	ldr	r0, [r5, #4]!
	cmp	r0, #0
	beq	.L2
	bl	getreg
	cmn	r0, #1
	bne	.L25
	ldr	r0, [r5]
	str	r8, [r7]
	bl	getnum
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L5
	mov	r3, #2
	orr	r6, r6, r3, lsl r4
	add	r4, r4, #4
	cmp	r4, #60
	bne	.L18
.L2:
	mov	r3, #0
	mov	r0, r6
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r0, [r5]
	str	r8, [r7]
	bl	thumb_getshift
	ldr	r3, [r7]
	cmp	r3, #0
	moveq	r3, #3
	orreq	r6, r6, r3, lsl r4
	beq	.L4
.L6:
	ldr	r0, [r5]
	bl	getcoproc
	cmn	r0, #1
	movne	r3, #4
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L7:
	ldr	r0, [r5]
	bl	getcoprocreg
	cmn	r0, #1
	movne	r3, #5
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L8:
	ldr	r0, [r5]
	bl	getregmemstart
	cmn	r0, #1
	movne	r3, #6
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L9:
	ldr	r0, [r5]
	bl	getregmemstartend
	cmn	r0, #1
	movne	r3, #7
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L10:
	ldr	r0, [r5]
	str	r8, [r7]
	bl	getnummemend
	ldr	r3, [r7]
	cmp	r3, #0
	moveq	r3, #8
	orreq	r6, r6, r3, lsl r4
	beq	.L4
.L11:
	ldr	r0, [r5]
	str	r8, [r7]
	bl	getnummemendbang
	ldr	r3, [r7]
	cmp	r3, #0
	moveq	r3, #9
	orreq	r6, r6, r3, lsl r4
	beq	.L4
.L12:
	ldr	r0, [r5]
	bl	getregmembang
	cmn	r0, #1
	movne	r3, #10
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L13:
	ldr	r0, [r5]
	bl	getreglist
	cmn	r0, #1
	movne	r3, #11
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L14:
	ldr	r0, [r5]
	bl	getregmemend
	cmn	r0, #1
	movne	r3, #12
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L15:
	ldr	r0, [r5]
	bl	getshiftmemend
	cmn	r0, #1
	movne	r3, #13
	orrne	r6, r6, r3, lsl r4
	bne	.L4
.L16:
	ldr	r0, [r5]
	str	r8, [r7]
	bl	getnumbang
	ldr	r3, [r7]
	cmp	r3, #0
	orreq	r6, r6, r9, lsl r4
	orrne	r6, r6, r10, lsl r4
	b	.L4
.L27:
	.align	2
.L26:
	.word	err
	.size	thumb_selector, .-thumb_selector
	.comm	err,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
