	.file	"extr_w83795.c_w83795_tss_useful.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w83795_tss_useful, @function
w83795_tss_useful:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR tss_map[rip]
	movsx	rsi, esi
	mov	r10d, DWORD PTR TSS_MAP_RESERVED[rip]
	xor	r8d, r8d
	sal	rsi, 2
	lea	r9, 32[rax]
.L4:
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rdx+rsi]
	cmp	ecx, r10d
	je	.L2
	cmp	ecx, 5
	jg	.L3
	mov	edx, DWORD PTR [rdi]
	sar	edx, cl
	and	edx, 1
	add	r8d, edx
.L2:
	add	rax, 8
	cmp	rax, r9
	jne	.L4
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 4[rdi]
	sub	ecx, 6
	sar	edx, cl
	and	edx, 1
	add	r8d, edx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	w83795_tss_useful, .-w83795_tss_useful
	.comm	tss_map,8,8
	.comm	TSS_MAP_RESERVED,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_w83795.c_w83795_tss_useful.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83795_tss_useful, %function
w83795_tss_useful:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	mov	r0, #0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	lr, [r2]
	ldr	r5, [r3]
	sub	r2, lr, #4
	lsl	r1, r1, #2
	add	lr, lr, #12
.L4:
	ldr	r3, [r2, #4]!
	ldr	r3, [r3, r1]
	cmp	r3, r5
	beq	.L2
	cmp	r3, #5
	ldrle	ip, [r4]
	ldrgt	ip, [r4, #4]
	subgt	r3, r3, #6
	asr	r3, ip, r3
	and	r3, r3, #1
	add	r0, r0, r3
.L2:
	cmp	r2, lr
	bne	.L4
	pop	{r4, r5, pc}
.L10:
	.align	2
.L9:
	.word	tss_map
	.word	TSS_MAP_RESERVED
	.size	w83795_tss_useful, .-w83795_tss_useful
	.comm	tss_map,4,4
	.comm	TSS_MAP_RESERVED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
