	.file	"extr_31966.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TESTTIME"
.LC1:
	.string	"child"
.LC2:
	.string	"pthread_create"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edi
	lea	rdi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	getenv@PLT
	xor	edi, edi
	mov	r13, rax
	call	time@PLT
	mov	r12, QWORD PTR DEFAULT_TESTTIME[rip]
	mov	rbx, rax
	test	r13, r13
	je	.L3
	mov	rdi, r13
	call	atoi@PLT
	mov	r12, rax
.L3:
	mov	edi, DWORD PTR cleanup[rip]
	call	atexit@PLT
	mov	esi, DWORD PTR handler_fail[rip]
	mov	edi, DWORD PTR SIGABRT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR handler_fail[rip]
	mov	edi, DWORD PTR SIGINT[rip]
	call	signal@PLT
	cmp	r14d, 2
	je	.L4
.L7:
	call	fork@PLT
	mov	DWORD PTR pid[rip], eax
	test	eax, eax
	jne	.L20
.L6:
	mov	rcx, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR thread_func[rip]
	xor	esi, esi
	lea	rdi, 4[rsp]
	call	pthread_create@PLT
	test	rax, rax
	jne	.L21
.L10:
	xor	eax, eax
	call	pause@PLT
	xor	eax, eax
	call	pause@PLT
	jmp	.L10
.L4:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L7
	jmp	.L6
.L21:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L10
.L20:
	add	rbx, r12
.L8:
	mov	esi, DWORD PTR pid[rip]
	mov	edi, DWORD PTR PTRACE_ATTACH[rip]
	xor	ecx, ecx
	xor	edx, edx
	call	ptrace@PLT
	mov	edi, DWORD PTR PTRACE_DETACH[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, DWORD PTR pid[rip]
	call	ptrace@PLT
	xor	edi, edi
	call	time@PLT
	cmp	rax, rbx
	jl	.L8
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L22:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	thread_func,4,4
	.comm	pid,4,4
	.comm	handler_fail,4,4
	.comm	cleanup,4,4
	.comm	SIGINT,4,4
	.comm	SIGABRT,4,4
	.comm	PTRACE_DETACH,4,4
	.comm	PTRACE_ATTACH,4,4
	.comm	DEFAULT_TESTTIME,8,8
	.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_31966.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TESTTIME\000"
	.align	2
.LC1:
	.ascii	"child\000"
	.align	2
.LC2:
	.ascii	"pthread_create\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L25
	sub	sp, sp, #8
	mov	r7, r0
	ldr	r0, .L25+4
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	getenv
	mov	r5, r0
	mov	r0, #0
	bl	time
	cmp	r5, #0
	mov	r4, r0
	beq	.L2
	mov	r0, r5
	bl	atoi
	mov	r5, r0
.L3:
	ldr	r3, .L25+8
	ldr	r8, .L25+12
	ldr	r0, [r3]
	bl	atexit
	ldr	r3, .L25+16
	ldr	r1, [r8]
	ldr	r0, [r3]
	bl	signal
	ldr	r3, .L25+20
	ldr	r1, [r8]
	ldr	r0, [r3]
	bl	signal
	cmp	r7, #2
	bne	.L4
	ldr	r1, .L25+24
	ldr	r0, [r6, #4]
	bl	strcmp
	cmp	r0, #0
	bne	.L4
.L5:
	ldr	r2, .L25+28
	mov	r1, #0
	mov	r0, sp
	ldr	r3, [r6]
	ldr	r2, [r2]
	bl	pthread_create
	cmp	r0, #0
	bne	.L23
.L8:
	bl	pause
	b	.L8
.L4:
	bl	fork
	ldr	r7, .L25+32
	cmp	r0, #0
	str	r0, [r7]
	beq	.L5
	ldr	r8, .L25+36
	ldr	r6, .L25+40
	add	r4, r4, r5
.L6:
	mov	r3, #0
	ldr	r1, [r7]
	mov	r2, r3
	ldr	r0, [r8]
	bl	ptrace
	mov	r3, #0
	ldr	r1, [r7]
	mov	r2, r3
	ldr	r0, [r6]
	bl	ptrace
	mov	r0, #0
	bl	time
	cmp	r0, r4
	blt	.L6
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L25+44
	ldr	r5, [r3]
	b	.L3
.L23:
	ldr	r0, .L25+48
	bl	perror
	b	.L8
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC3
	.word	.LC0
	.word	cleanup
	.word	handler_fail
	.word	SIGABRT
	.word	SIGINT
	.word	.LC1
	.word	thread_func
	.word	pid
	.word	PTRACE_ATTACH
	.word	PTRACE_DETACH
	.word	DEFAULT_TESTTIME
	.word	.LC2
	.size	main, .-main
	.comm	thread_func,4,4
	.comm	pid,4,4
	.comm	handler_fail,4,4
	.comm	cleanup,4,4
	.comm	SIGINT,4,4
	.comm	SIGABRT,4,4
	.comm	PTRACE_DETACH,4,4
	.comm	PTRACE_ATTACH,4,4
	.comm	DEFAULT_TESTTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
