	.file	"371688.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"thread %ld\n"
	.text
	.type	thread_func, @function
thread_func:
.LFB0:
	.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	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread_func, .-thread_func
	.section	.rodata
.LC1:
	.string	"could not create thread %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	lea	rax, -64[rbp]
	mov	esi, 65536
	mov	rdi, rax
	call	pthread_attr_setstacksize@PLT
	mov	DWORD PTR -92[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	mov	rdx, rax
	lea	rsi, -64[rbp]
	lea	rax, -88[rbp]
	mov	rcx, rdx
	lea	rdx, thread_func[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -92[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L6
.L5:
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 2000000
	lea	rdx, -80[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nanosleep@PLT
	add	DWORD PTR -92[rbp], 1
.L4:
	cmp	DWORD PTR -92[rbp], -1
	jne	.L7
.L6:
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"371688.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"thread %ld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_func, %function
thread_func:
	@ 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]
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L3+4
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.size	thread_func, .-thread_func
	.section	.rodata
	.align	2
.LC1:
	.ascii	"could not create thread %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	sub	r3, fp, #44
	mov	r1, #65536
	mov	r0, r3
	bl	pthread_attr_setstacksize
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L6
.L9:
	ldr	r3, [fp, #-56]
	sub	r1, fp, #44
	sub	r0, fp, #60
	ldr	r2, .L12+4
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	ldr	r1, .L12+12
	mov	r0, r3
	bl	fprintf
	b	.L8
.L7:
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, .L12+16
	str	r3, [fp, #-48]
	sub	r2, fp, #52
	sub	r3, fp, #52
	mov	r1, r2
	mov	r0, r3
	bl	nanosleep
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L6:
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L9
.L8:
	mov	r0, #1
	bl	sleep
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	thread_func
	.word	stderr
	.word	.LC1
	.word	2000000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
