	.file	"extr_idt77252.c___fill_tst.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: conn %d: first TST entry at %d.\n"
	.align 8
.LC1:
	.string	"%s: No free TST entries found\n"
	.text
	.p2align 4
	.type	__fill_tst, @function
__fill_tst:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8d, edx
	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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	movsx	rdx, DWORD PTR [rdi]
	lea	r15d, -2[rdx]
	movsx	r9, r15d
	test	r9, r9
	je	.L2
	mov	r13, rsi
	mov	r14d, ecx
	mov	rsi, QWORD PTR 24[rdi]
	sub	rdx, 2
	xor	ecx, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	add	rcx, 1
	cmp	rcx, rdx
	je	.L2
.L4:
	mov	rax, rcx
	mov	ebx, ecx
	sal	rax, 4
	cmp	QWORD PTR 8[rsi+rax], 0
	jne	.L25
	mov	esi, DWORD PTR 36[r12]
	test	r13, r13
	je	.L26
	mov	edx, DWORD PTR 0[r13]
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 16[rsp], r8d
	mov	QWORD PTR 8[rsp], r9
	call	NPRINTK@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 16[rsp]
	cmp	DWORD PTR TSTE_OPC_NULL[rip], r14d
	je	.L27
	or	r14d, DWORD PTR 0[r13]
.L6:
	mov	eax, DWORD PTR 16[r12]
	mov	rdx, QWORD PTR 8[r12]
	xor	eax, 1
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR 56[rsp], rax
	test	r8d, r8d
	jle	.L14
	test	r13, r13
	mov	rsi, -1
	lea	rax, 32[r12]
	mov	rbp, r9
	cmovne	rsi, r13
	mov	QWORD PTR 48[rsp], rax
	movsx	r13, r8d
	mov	QWORD PTR 40[rsp], rsi
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	add	ebx, 1
	mov	eax, 0
	cmp	r15d, ebx
	cmove	ebx, eax
	add	rbp, r13
	test	r8d, r8d
	je	.L14
.L13:
	cmp	r9, rbp
	ja	.L9
	movsx	rsi, ebx
	mov	rax, QWORD PTR 24[r12]
	mov	rcx, rsi
	sal	rcx, 4
	add	rax, rcx
	cmp	QWORD PTR 8[rax], 0
	jne	.L9
	mov	rdi, QWORD PTR 40[rsp]
	mov	DWORD PTR [rax], r14d
	mov	DWORD PTR 36[rsp], r8d
	mov	QWORD PTR 8[rax], rdi
	mov	rdi, QWORD PTR 48[rsp]
	mov	QWORD PTR 24[rsp], r9
	mov	QWORD PTR 16[rsp], rcx
	mov	QWORD PTR 8[rsp], rsi
	call	timer_pending@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	test	rax, rax
	mov	r9, QWORD PTR 24[rsp]
	mov	r8d, DWORD PTR 36[rsp]
	je	.L10
	add	rcx, QWORD PTR 24[r12]
	mov	eax, DWORD PTR TSTE_PUSH_ACTIVE[rip]
	or	DWORD PTR [rcx], eax
.L11:
	movsx	rax, DWORD PTR [r12]
	sub	r8d, 1
	sub	rbp, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	and	r14d, DWORD PTR TSTE_OPC_MASK[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
.L1:
	add	rsp, 72
	.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
.L10:
	.cfi_restore_state
	add	rsi, QWORD PTR 56[rsp]
	mov	edx, r14d
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], r8d
	mov	QWORD PTR 16[rsp], r9
	mov	QWORD PTR 8[rsp], rcx
	call	write_sram@PLT
	mov	rcx, QWORD PTR 8[rsp]
	add	rcx, QWORD PTR 24[r12]
	mov	eax, DWORD PTR TSTE_PUSH_IDLE[rip]
	mov	r8d, DWORD PTR 24[rsp]
	or	DWORD PTR [rcx], eax
	mov	r9, QWORD PTR 16[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, -1
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 16[rsp], r8d
	mov	QWORD PTR 8[rsp], r9
	call	NPRINTK@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 16[rsp]
	and	r14d, DWORD PTR TSTE_OPC_MASK[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 36[r12]
	lea	rdi, .LC1[rip]
	call	printk@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__fill_tst, .-__fill_tst
	.comm	TSTE_PUSH_IDLE,4,4
	.comm	TSTE_PUSH_ACTIVE,4,4
	.comm	TSTE_OPC_NULL,4,4
	.comm	TSTE_OPC_MASK,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_idt77252.c___fill_tst.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: conn %d: first TST entry at %d.\012\000"
	.align	2
.LC1:
	.ascii	"%s: No free TST entries found\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__fill_tst, %function
__fill_tst:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r0]
	mov	r7, r0
	subs	r5, r5, #2
	sub	sp, sp, #20
	beq	.L2
	mov	r6, r1
	ldr	r1, [r0, #12]
	mov	r8, r2
	mov	r10, r3
	mov	r4, #0
	add	r1, r1, #4
	b	.L4
.L26:
	add	r4, r4, #1
	cmp	r4, r5
	beq	.L2
.L4:
	ldr	r3, [r1, r4, lsl #3]
	cmp	r3, #0
	bne	.L26
	cmp	r6, #0
	ldr	r1, [r7, #20]
	beq	.L27
	mov	r3, r4
	ldr	r2, [r6]
	ldr	r0, .L28
	bl	NPRINTK
	ldr	r3, .L28+4
	ldr	r3, [r3]
	cmp	r3, r10
	beq	.L24
	ldr	r3, [r6]
	orr	r3, r10, r3
	str	r3, [sp, #4]
	b	.L6
.L27:
	mov	r3, r4
	mvn	r2, #0
	ldr	r0, .L28
	bl	NPRINTK
.L24:
	ldr	r3, .L28+8
	ldr	r3, [r3]
	and	r3, r10, r3
	str	r3, [sp, #4]
.L6:
	ldmib	r7, {r2, r3}
	eor	r3, r3, #1
	ldr	r3, [r2, r3, lsl #2]
	cmp	r8, #0
	str	r3, [sp, #12]
	ble	.L14
	cmp	r6, #0
	movne	r3, r6
	mvneq	r3, #0
	mov	r9, r8
	mov	r6, r5
	str	r3, [sp, #8]
	add	fp, r7, #16
	b	.L13
.L9:
	add	r4, r4, #1
	cmp	r5, r4
	moveq	r4, #0
	cmp	r8, #0
	add	r6, r6, r9
	beq	.L14
.L13:
	cmp	r5, r6
	bhi	.L9
	ldr	r2, [r7, #12]
	lsl	r10, r4, #3
	add	r1, r2, r4, lsl #3
	ldr	r0, [r1, #4]
	cmp	r0, #0
	bne	.L9
	ldr	r3, [sp, #8]
	mov	r0, fp
	str	r3, [r1, #4]
	ldr	r3, [sp, #4]
	str	r3, [r2, r4, lsl #3]
	bl	timer_pending
	cmp	r0, #0
	beq	.L10
	ldr	r1, [r7, #12]
	ldr	r3, .L28+12
	ldr	r2, [r1, r10]
	ldr	r0, [r3]
	orr	r2, r2, r0
	str	r2, [r1, r10]
.L11:
	ldr	r3, [r7]
	sub	r8, r8, #1
	sub	r6, r6, r3
	b	.L9
.L14:
	mov	r0, #0
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #4]
	add	r1, r4, r3
	mov	r0, r7
	bl	write_sram
	ldr	r1, [r7, #12]
	ldr	r3, .L28+16
	ldr	r2, [r1, r10]
	ldr	r0, [r3]
	orr	r2, r2, r0
	str	r2, [r1, r10]
	b	.L11
.L2:
	ldr	r1, [r7, #20]
	ldr	r0, .L28+20
	bl	printk
	mvn	r0, #0
	b	.L1
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	TSTE_OPC_NULL
	.word	TSTE_OPC_MASK
	.word	TSTE_PUSH_ACTIVE
	.word	TSTE_PUSH_IDLE
	.word	.LC1
	.size	__fill_tst, .-__fill_tst
	.comm	TSTE_PUSH_IDLE,4,4
	.comm	TSTE_PUSH_ACTIVE,4,4
	.comm	TSTE_OPC_NULL,4,4
	.comm	TSTE_OPC_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
