	.file	"162985.c"
	.intel_syntax noprefix
	.text
	.type	futex, @function
futex:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	DWORD PTR -36[rbp], r9d
	mov	r8, QWORD PTR -8[rbp]
	mov	rdi, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR -36[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	mov	rsi, rax
	mov	edi, 202
	mov	eax, 0
	call	syscall@PLT
	add	rsp, 16
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	futex, .-futex
	.globl	thread_pfn
	.type	thread_pfn, @function
thread_pfn:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 600
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 128
	mov	rdi, rax
	call	futex
	mov	edi, 0
	call	_exit@PLT
	.cfi_endproc
.LFE7:
	.size	thread_pfn, .-thread_pfn
	.section	.rodata
.LC0:
	.string	"mmap failed: %s\n"
	.align 8
.LC1:
	.string	"pthread_create to create thread #%d failed: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 34
	mov	edx, 3
	mov	esi, 4096
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -232[rbp], rax
	cmp	QWORD PTR -232[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	DWORD PTR -236[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	sal	rax, 4
	add	rax, rbp
	lea	rdx, -144[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	mov	edx, DWORD PTR -236[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	add	rdx, rbp
	sub	rdx, 136
	mov	QWORD PTR [rdx], rax
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_pfn[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -236[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	abort@PLT
.L8:
	add	DWORD PTR -236[rbp], 1
.L7:
	cmp	DWORD PTR -236[rbp], 7
	jle	.L9
	mov	QWORD PTR -224[rbp], 1
	mov	QWORD PTR -216[rbp], 0
	lea	rax, -224[rbp]
	mov	ecx, 0
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 1
	call	clock_nanosleep@PLT
	mov	esi, 0
	mov	edi, 231
	mov	eax, 0
	call	syscall@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"162985.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	futex, %function
futex:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #240
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	futex, .-futex
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_pfn
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_pfn, %function
thread_pfn:
	@ 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]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	mov	r3, #600
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #0
	mov	r1, #128
	bl	futex
	mov	r0, #0
	bl	_exit
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	thread_pfn, .-thread_pfn
	.section	.rodata
	.align	2
.LC1:
	.ascii	"mmap failed: %s\012\000"
	.align	2
.LC2:
	.ascii	"pthread_create to create thread #%d failed: %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #34
	mov	r2, #3
	mov	r1, #4096
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L8
	ldr	r3, .L14+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L14+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L9
.L11:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-124]
	str	r2, [r3, #-68]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-128]
	str	r2, [r3, #-64]
	sub	r2, fp, #112
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #80
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, .L14+12
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L14+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-128]
	ldr	r1, .L14+16
	mov	r0, r4
	bl	fprintf
	bl	abort
.L10:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L9:
	ldr	r3, [fp, #-128]
	cmp	r3, #7
	ble	.L11
	mov	r3, #1
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r2, fp, #120
	mov	r3, #0
	mov	r1, #0
	mov	r0, #1
	bl	clock_nanosleep
	mov	r1, #0
	mov	r0, #248
	bl	syscall
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	stderr
	.word	.LC1
	.word	thread_pfn
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
