	.file	"855966.c"
	.intel_syntax noprefix
	.text
	.globl	tlist
	.bss
	.align 8
	.type	tlist, @object
	.size	tlist, 8
tlist:
	.zero	8
	.globl	curthread
	.align 8
	.type	curthread, @object
	.size	curthread, 8
curthread:
	.zero	8
	.globl	mainctx
	.align 32
	.type	mainctx, @object
	.size	mainctx, 968
mainctx:
	.zero	968
	.text
	.globl	addlist
	.type	addlist, @function
addlist:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	addlist, .-addlist
	.globl	dellist
	.type	dellist, @function
dellist:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 24[rax], rdx
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 16[rax], rdx
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dellist, .-dellist
	.section	.rodata
	.align 8
.LC0:
	.string	"i am the only thread, continuing"
	.text
	.globl	schedule
	.type	schedule, @function
schedule:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR tlist[rip]
	test	rax, rax
	jne	.L9
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L7
.L9:
	mov	rax, QWORD PTR tlist[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L11
.L8:
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
.L11:
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR curthread[rip], rax
	mov	rax, QWORD PTR curthread[rip]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	swapcontext@PLT
	endbr64
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	schedule, .-schedule
	.section	.rodata
.LC1:
	.string	"exitting"
	.text
	.globl	threadexit
	.type	threadexit, @function
threadexit:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	mov	rdx, QWORD PTR tlist[rip]
	mov	rax, QWORD PTR curthread[rip]
	cmp	rdx, rax
	jne	.L14
	mov	QWORD PTR -8[rbp], 0
	jmp	.L13
.L14:
	mov	rax, QWORD PTR tlist[rip]
	mov	QWORD PTR -8[rbp], rax
.L13:
	mov	rax, QWORD PTR curthread[rip]
	mov	rsi, rax
	lea	rdi, tlist[rip]
	call	dellist
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR curthread[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR curthread[rip], rax
	mov	rax, QWORD PTR curthread[rip]
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR curthread[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	setcontext@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	threadexit, .-threadexit
	.globl	initthread
	.type	initthread, @function
initthread:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 968
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	eax, 121
	mov	rdi, rdx
	mov	rcx, rax
	rep movsq
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	edi, 16384
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 16384
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, tlist[rip]
	call	addlist
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	initthread, .-initthread
	.section	.rodata
	.align 8
.LC2:
	.string	"id: %d, i: %d a: %d. switching\n"
	.text
	.globl	sample
	.type	sample, @function
sample:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 4
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1441151881
	shr	rdx, 32
	sar	edx, 25
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100000000
	sub	eax, ecx
	mov	edx, eax
	cmp	edx, 1
	jne	.L21
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	schedule
.L21:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 321141231
	lea	edx, 7[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1814434103
	shr	rdx, 32
	sar	edx, 16
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	edx, DWORD PTR -4[rbp]
	imul	edx, edx, 155131
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L20:
	cmp	DWORD PTR -8[rbp], 499999999
	jle	.L22
	mov	eax, 0
	call	threadexit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sample, .-sample
	.section	.rodata
.LC3:
	.string	"other ticks"
	.text
	.globl	other
	.type	other, @function
other:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1441151881
	shr	rdx, 32
	sar	edx, 25
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100000000
	sub	eax, ecx
	mov	edx, eax
	cmp	edx, 1
	jne	.L25
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	call	schedule
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 599999999
	jle	.L26
	mov	eax, 0
	call	threadexit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	other, .-other
	.section	.rodata
.LC4:
	.string	"all terminated"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 992
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -988[rbp], 1
	lea	rdi, mainctx[rip]
	call	getcontext@PLT
	endbr64
	lea	rax, -976[rbp]
	mov	rdi, rax
	call	getcontext@PLT
	endbr64
	cmp	DWORD PTR -988[rbp], 0
	je	.L29
	mov	DWORD PTR -988[rbp], 0
	lea	rax, -976[rbp]
	mov	rdi, rax
	call	initthread
	mov	QWORD PTR -984[rbp], rax
	mov	rax, QWORD PTR -984[rbp]
	mov	ecx, 1
	mov	edx, 1
	lea	rsi, sample[rip]
	mov	rdi, rax
	mov	eax, 0
	call	makecontext@PLT
	lea	rax, -976[rbp]
	mov	rdi, rax
	call	initthread
	mov	QWORD PTR -984[rbp], rax
	mov	rax, QWORD PTR -984[rbp]
	mov	ecx, 2
	mov	edx, 1
	lea	rsi, sample[rip]
	mov	rdi, rax
	mov	eax, 0
	call	makecontext@PLT
	lea	rax, -976[rbp]
	mov	rdi, rax
	call	initthread
	mov	QWORD PTR -984[rbp], rax
	mov	rax, QWORD PTR -984[rbp]
	mov	edx, 0
	lea	rsi, other[rip]
	mov	rdi, rax
	mov	eax, 0
	call	makecontext@PLT
	mov	rax, QWORD PTR tlist[rip]
	mov	QWORD PTR curthread[rip], rax
	mov	rax, QWORD PTR tlist[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	setcontext@PLT
.L29:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"855966.c"
	.text
	.global	tlist
	.bss
	.align	2
	.type	tlist, %object
	.size	tlist, 4
tlist:
	.space	4
	.comm	curthread,4,4
	.comm	mainctx,744,8
	.text
	.align	2
	.global	addlist
	.syntax unified
	.arm
	.fpu softvfp
	.type	addlist, %function
addlist:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	addlist, .-addlist
	.align	2
	.global	dellist
	.syntax unified
	.arm
	.fpu softvfp
	.type	dellist, %function
dellist:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #12]
	str	r2, [r3, #12]
.L4:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
.L5:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L6:
	ldr	r0, [fp, #-12]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dellist, .-dellist
	.section	.rodata
	.align	2
.LC0:
	.ascii	"i am the only thread, continuing\000"
	.text
	.align	2
	.global	schedule
	.syntax unified
	.arm
	.fpu softvfp
	.type	schedule, %function
schedule:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L12+8
	bl	puts
	b	.L7
.L9:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L11
.L8:
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L11:
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	swapcontext
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	curthread
	.word	tlist
	.word	.LC0
	.size	schedule, .-schedule
	.section	.rodata
	.align	2
.LC1:
	.ascii	"exitting\000"
	.text
	.align	2
	.global	threadexit
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadexit, %function
threadexit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r0, .L19+4
	bl	puts
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L16
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L15:
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+8
	bl	dellist
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	setcontext
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	curthread
	.word	.LC1
	.word	tlist
	.size	threadexit, .-threadexit
	.align	2
	.global	initthread
	.syntax unified
	.arm
	.fpu softvfp
	.type	initthread, %function
initthread:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #744
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r0, r2
	mov	r1, r3
	mov	r3, #744
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	mov	r0, #16384
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #16384
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, .L23
	bl	addlist
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	tlist
	.size	initthread, .-initthread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"id: %d, i: %d a: %d. switching\012\000"
	.text
	.align	2
	.global	sample
	.syntax unified
	.arm
	.fpu softvfp
	.type	sample, %function
sample:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #4
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L26
.L28:
	ldr	r2, [fp, #-12]
	ldr	r3, .L29
	smull	r1, r3, r2, r3
	asr	r1, r3, #25
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L29+4
	mul	r3, r1, r3
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L29+8
	bl	printf
	bl	schedule
.L27:
	ldr	r3, [fp, #-8]
	ldr	r2, .L29+12
	mul	r3, r2, r3
	add	r2, r3, #7
	ldr	r3, [fp, #-16]
	add	r1, r2, r3
	ldr	r3, .L29+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #16
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #7
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	sub	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, [fp, #-12]
	ldr	r2, .L29+20
	cmp	r3, r2
	ble	.L28
	bl	threadexit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	1441151881
	.word	100000000
	.word	.LC2
	.word	321141231
	.word	1814434103
	.word	499999999
	.size	sample, .-sample
	.section	.rodata
	.align	2
.LC3:
	.ascii	"other ticks\000"
	.text
	.align	2
	.global	other
	.syntax unified
	.arm
	.fpu softvfp
	.type	other, %function
other:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r2, [fp, #-8]
	ldr	r3, .L35
	smull	r1, r3, r2, r3
	asr	r1, r3, #25
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L35+4
	mul	r3, r1, r3
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L33
	ldr	r0, .L35+8
	bl	puts
	bl	schedule
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	ldr	r2, .L35+12
	cmp	r3, r2
	ble	.L34
	bl	threadexit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	1441151881
	.word	100000000
	.word	.LC3
	.word	599999999
	.size	other, .-other
	.section	.rodata
	.align	2
.LC4:
	.ascii	"all terminated\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 760
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #760
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-764]
	ldr	r0, .L42+4
	bl	getcontext
	sub	r3, fp, #756
	mov	r0, r3
	bl	getcontext
	ldr	r3, [fp, #-764]
	cmp	r3, #0
	beq	.L39
	mov	r3, #0
	str	r3, [fp, #-764]
	sub	r3, fp, #756
	mov	r0, r3
	bl	initthread
	mov	r3, r0
	str	r3, [fp, #-760]
	mov	r3, #1
	mov	r2, #1
	ldr	r1, .L42+8
	ldr	r0, [fp, #-760]
	bl	makecontext
	sub	r3, fp, #756
	mov	r0, r3
	bl	initthread
	mov	r3, r0
	str	r3, [fp, #-760]
	mov	r3, #2
	mov	r2, #1
	ldr	r1, .L42+8
	ldr	r0, [fp, #-760]
	bl	makecontext
	sub	r3, fp, #756
	mov	r0, r3
	bl	initthread
	mov	r3, r0
	str	r3, [fp, #-760]
	mov	r2, #0
	ldr	r1, .L42+12
	ldr	r0, [fp, #-760]
	bl	makecontext
	ldr	r3, .L42+16
	ldr	r3, [r3]
	ldr	r2, .L42+20
	str	r3, [r2]
	ldr	r3, .L42+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	setcontext
.L39:
	ldr	r0, .L42+24
	bl	puts
	mov	r3, #0
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC5
	.word	mainctx
	.word	sample
	.word	other
	.word	tlist
	.word	curthread
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
