	.file	"111078942.c"
	.intel_syntax noprefix
	.text
	.globl	timer_thread_ctr
	.bss
	.align 4
	.type	timer_thread_ctr, @object
	.size	timer_thread_ctr, 4
timer_thread_ctr:
	.zero	4
	.local	timer_thread
	.comm	timer_thread,8,8
	.local	TMDETECT
	.comm	TMDETECT,16,16
	.local	tmdetect
	.comm	tmdetect,16,16
	.local	select_timeout
	.comm	select_timeout,4,4
	.local	ready
	.comm	ready,128,32
	.local	funcptr
	.comm	funcptr,8,8
	.local	timer_oto
	.comm	timer_oto,4,4
	.section	.rodata
	.align 8
.LC0:
	.string	"TIMER THREAD DID NOT CREATE: return: %d, errno: %d\n\tTXT: "
	.align 8
.LC1:
	.string	"Insufficient resources to create another thread, or a system-imposed limit on  the  number  ofthreads  was  encountered"
.LC2:
	.string	"Invalid settings in attr."
	.align 8
.LC3:
	.string	"No permission to set the scheduling policy and parameters specified in attr."
	.text
	.globl	timer_thread_init
	.type	timer_thread_init, @function
timer_thread_init:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR funcptr[rip], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR select_timeout[rip], eax
	mov	QWORD PTR TMDETECT[rip], 0
	mov	eax, DWORD PTR select_timeout[rip]
	cdqe
	mov	QWORD PTR TMDETECT[rip+8], rax
	mov	eax, DWORD PTR timer_oto[rip]
	test	eax, eax
	je	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	DWORD PTR timer_oto[rip], 1
	mov	ecx, 0
	lea	rdx, timerthread[rip]
	mov	esi, 0
	lea	rdi, timer_thread[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L5:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L6:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L7:
	mov	eax, -1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	timer_thread_init, .-timer_thread_init
	.globl	timer_thread_shutdown
	.type	timer_thread_shutdown, @function
timer_thread_shutdown:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR timer_oto[rip]
	test	eax, eax
	je	.L11
	mov	DWORD PTR timer_oto[rip], 0
	mov	rax, QWORD PTR timer_thread[rip]
	mov	rdi, rax
	call	pthread_cancel@PLT
	jmp	.L8
.L11:
	nop
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	timer_thread_shutdown, .-timer_thread_shutdown
	.section	.rodata
	.align 8
.LC4:
	.string	"SELECT ERROR: return: %d, errno: %d\n\tTXT: "
	.align 8
.LC5:
	.string	"An  invalid  file  descriptor  was  given  in  one of the sets.\n\t (Perhaps a file descriptor that was already closed, or one on which an error has occurred.)"
	.align 8
.LC6:
	.string	"A signal was caught; see signal(7)."
	.align 8
.LC7:
	.string	"nfds is negative or the value contained within timeout is invalid."
	.align 8
.LC8:
	.string	"unable to allocate memory for internal tables."
	.text
	.type	timerthread, @function
timerthread:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
.L18:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, ready[rip]
	mov	rdi, rdx
#APP
# 89 "the_stack_data/111078942.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR TMDETECT[rip]
	mov	rdx, QWORD PTR TMDETECT[rip+8]
	mov	QWORD PTR tmdetect[rip], rax
	mov	QWORD PTR tmdetect[rip+8], rdx
	lea	r8, tmdetect[rip]
	mov	ecx, 0
	mov	edx, 0
	lea	rsi, ready[rip]
	mov	edi, 0
	call	select@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR timer_thread_ctr[rip]
	add	eax, 1
	mov	DWORD PTR timer_thread_ctr[rip], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L13
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	jne	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L14:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L15
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L15:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L16
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L16:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 12
	jne	.L13
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L13:
	mov	rax, QWORD PTR funcptr[rip]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR funcptr[rip]
	call	rax
	jmp	.L18
	.cfi_endproc
.LFE8:
	.size	timerthread, .-timerthread
	.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	"111078942.c"
	.text
	.comm	timer_thread_ctr,4,4
	.local	timer_thread
	.comm	timer_thread,4,4
	.local	TMDETECT
	.comm	TMDETECT,8,4
	.local	tmdetect
	.comm	tmdetect,8,4
	.local	select_timeout
	.comm	select_timeout,4,4
	.local	ready
	.comm	ready,128,4
	.local	funcptr
	.comm	funcptr,4,4
	.local	timer_oto
	.comm	timer_oto,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"TIMER THREAD DID NOT CREATE: return: %d, errno: %d\012"
	.ascii	"\011TXT: \000"
	.align	2
.LC1:
	.ascii	"Insufficient resources to create another thread, or"
	.ascii	" a system-imposed limit on  the  number  ofthreads "
	.ascii	" was  encountered\000"
	.align	2
.LC2:
	.ascii	"Invalid settings in attr.\000"
	.align	2
.LC3:
	.ascii	"No permission to set the scheduling policy and para"
	.ascii	"meters specified in attr.\000"
	.text
	.align	2
	.global	timer_thread_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_thread_init, %function
timer_thread_init:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r2, .L8+4
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, .L8+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, .L8+8
	str	r3, [r2, #4]
	ldr	r3, .L8+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, .L8+12
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	ldr	r2, .L8+16
	mov	r1, #0
	ldr	r0, .L8+20
	bl	pthread_create
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+24
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L5
	ldr	r0, .L8+28
	bl	puts
.L5:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L6
	ldr	r0, .L8+32
	bl	puts
.L6:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L7
	ldr	r0, .L8+36
	bl	puts
.L7:
	mvn	r3, #0
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	funcptr
	.word	select_timeout
	.word	TMDETECT
	.word	timer_oto
	.word	timerthread
	.word	timer_thread
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	timer_thread_init, .-timer_thread_init
	.align	2
	.global	timer_thread_shutdown
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_thread_shutdown, %function
timer_thread_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L14
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	pthread_cancel
	pop	{fp, pc}
.L13:
	nop
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	timer_oto
	.word	timer_thread
	.size	timer_thread_shutdown, .-timer_thread_shutdown
	.section	.rodata
	.align	2
.LC4:
	.ascii	"SELECT ERROR: return: %d, errno: %d\012\011TXT: \000"
	.align	2
.LC5:
	.ascii	"An  invalid  file  descriptor  was  given  in  one "
	.ascii	"of the sets.\012\011 (Perhaps a file descriptor tha"
	.ascii	"t was already closed, or one on which an error has "
	.ascii	"occurred.)\000"
	.align	2
.LC6:
	.ascii	"A signal was caught; see signal(7).\000"
	.align	2
.LC7:
	.ascii	"nfds is negative or the value contained within time"
	.ascii	"out is invalid.\000"
	.align	2
.LC8:
	.ascii	"unable to allocate memory for internal tables.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timerthread, %function
timerthread:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
.L24:
	ldr	r3, .L25
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L17
.L18:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #31
	bls	.L18
	ldr	r3, .L25+4
	ldr	r2, .L25+8
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L25+4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, .L25
	mov	r0, #0
	bl	select
	str	r0, [fp, #-8]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L25+16
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L20
	ldr	r0, .L25+20
	bl	puts
.L20:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L21
	ldr	r0, .L25+24
	bl	puts
.L21:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L22
	ldr	r0, .L25+28
	bl	puts
.L22:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #12
	bne	.L19
	ldr	r0, .L25+32
	bl	puts
.L19:
	ldr	r3, .L25+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L25+36
	ldr	r3, [r3]
	blx	r3
	b	.L24
.L26:
	.align	2
.L25:
	.word	ready
	.word	tmdetect
	.word	TMDETECT
	.word	timer_thread_ctr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	funcptr
	.size	timerthread, .-timerthread
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
