	.file	"265280.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	array
	.align 16
	.type	array, @object
	.size	array, 24
array:
	.zero	24
	.text
	.globl	init
	.type	init, @function
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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, count[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -52[rbp], 3
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, head[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, array[rip+4]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, array[rip+12]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -52[rbp], 2
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, array[rip+20]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -52[rbp], -1
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	pop
	.type	pop, @function
pop:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L4
.L8:
	lea	rax, head[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	add	rax, rdx
	add	rax, 4
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -64[rbp], -1
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	xchg	edx, DWORD PTR [rax]
	mov	eax, edx
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	js	.L4
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -68[rbp], eax
	lea	rax, head[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, eax
	mov	rsi, QWORD PTR -24[rbp]
	lea	rdx, -68[rbp]
	mov	eax, DWORD PTR [rdx]
	lock cmpxchg	DWORD PTR [rsi], ecx
	mov	ecx, eax
	sete	al
	test	al, al
	jne	.L5
	mov	DWORD PTR [rdx], ecx
.L5:
	test	al, al
	je	.L6
	lock sub	DWORD PTR count[rip], 1
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	add	rax, rdx
	add	rax, 4
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	xchg	edx, DWORD PTR [rax]
	mov	eax, edx
	mov	DWORD PTR -60[rbp], eax
.L4:
	lea	rax, count[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 1
	jg	.L8
	mov	eax, -1
.L7:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.globl	push
	.type	push, @function
push:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, head[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -40[rbp], eax
.L12:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	add	rax, rdx
	add	rax, 4
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	lea	rax, head[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	rsi, QWORD PTR -16[rbp]
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR [rdx]
	lock cmpxchg	DWORD PTR [rsi], ecx
	mov	ecx, eax
	sete	al
	test	al, al
	jne	.L11
	mov	DWORD PTR [rdx], ecx
.L11:
	xor	eax, 1
	test	al, al
	jne	.L12
	lock add	DWORD PTR count[rip], 1
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push, .-push
	.section	.rodata
.LC0:
	.string	"the_stack_data/265280.c"
.LC1:
	.string	"array[elem].value == idx"
	.text
	.globl	thread
	.type	thread, @function
thread:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
.L17:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L26
	jmp	.L17
.L26:
	nop
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 117
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L18:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
.L21:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L27
	jmp	.L21
.L27:
	nop
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, array[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 126
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L22:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	thread, .-thread
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	init
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 1
	lea	rdx, thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 2
	lea	rdx, thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 7
__PRETTY_FUNCTION__.0:
	.string	"thread"
	.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	"265280.c"
	.text
	.comm	head,4,4
	.comm	count,4,4
	.comm	array,24,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L3+4
	str	r3, [fp, #-28]
	mov	r3, #3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, .L3+8
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, .L3+12
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, .L3+16
	str	r3, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L3+20
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	count
	.word	head
	.word	array+4
	.word	array+12
	.word	array+20
	.size	init, .-init
	.global	__sync_synchronize
	.global	__sync_val_compare_and_swap_4
	.global	__sync_fetch_and_sub_4
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #52
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	b	.L6
.L12:
	ldr	r3, .L14+4
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r4, [r3]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, .L14+8
	add	r3, r3, r2
	add	r3, r3, #4
	str	r3, [fp, #-40]
	mvn	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r6, r3
	ldr	r5, [fp, #-40]
	ldr	r3, [r5]
.L7:
	mov	r4, r3
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, r4
	moveq	r2, #1
	movne	r2, #0
	cmp	r2, #0
	beq	.L7
	mov	r3, r4
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L6
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-64]
	ldr	r3, .L14+4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	sub	r4, fp, #64
	ldr	r5, [r4]
	mov	r1, r5
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, r5
	moveq	r2, #1
	movne	r2, #0
	cmp	r2, #0
	bne	.L8
	str	r3, [r4]
.L8:
	mov	r3, r2
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L14+12
	mov	r1, #1
	mov	r0, r3
	bl	__sync_fetch_and_sub_4
	ldr	r3, [fp, #-44]
	b	.L10
.L9:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, .L14+8
	add	r3, r3, r2
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r6, r3
	ldr	r5, [fp, #-28]
	ldr	r3, [r5]
.L11:
	mov	r4, r3
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, r4
	moveq	r2, #1
	movne	r2, #0
	cmp	r2, #0
	beq	.L11
	mov	r3, r4
	str	r3, [fp, #-56]
.L6:
	ldr	r3, .L14+12
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldr	r4, [r3]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L12
	mvn	r3, #0
.L10:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	head
	.word	array
	.word	count
	.size	pop, .-pop
	.global	__sync_fetch_and_add_4
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L20+4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
.L18:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, .L20+8
	add	r3, r3, r2
	add	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r5, r3
	ldr	r4, [fp, #-24]
	bl	__sync_synchronize
	str	r5, [r4]
	ldr	r3, .L20+4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	sub	r4, fp, #36
	ldr	r5, [r4]
	mov	r1, r5
	mov	r0, r3
	bl	__sync_val_compare_and_swap_4
	mov	r3, r0
	cmp	r3, r5
	moveq	r2, #1
	movne	r2, #0
	cmp	r2, #0
	bne	.L17
	str	r3, [r4]
.L17:
	mov	r3, r2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L20+12
	mov	r1, #1
	mov	r0, r3
	bl	__sync_fetch_and_add_4
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	head
	.word	array
	.word	count
	.size	push, .-push
	.section	.rodata
	.align	2
.LC3:
	.ascii	"the_stack_data/265280.c\000"
	.align	2
.LC4:
	.ascii	"array[elem].value == idx\000"
	.text
	.align	2
	.global	thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread, %function
thread:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
.L25:
	bl	pop
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L34
	b	.L25
.L34:
	nop
	ldr	r1, .L36
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #3]
	ldr	r2, .L36
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L26
	ldr	r3, .L36+4
	mov	r2, #117
	ldr	r1, .L36+8
	ldr	r0, .L36+12
	bl	__assert_fail
.L26:
	ldr	r0, [fp, #-8]
	bl	push
.L29:
	bl	pop
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L35
	b	.L29
.L35:
	nop
	ldr	r1, .L36
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #3]
	ldr	r2, .L36
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L30
	ldr	r3, .L36+4
	mov	r2, #126
	ldr	r1, .L36+8
	ldr	r0, .L36+12
	bl	__assert_fail
.L30:
	ldr	r0, [fp, #-8]
	bl	push
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	array
	.word	__PRETTY_FUNCTION__.5782
	.word	.LC3
	.word	.LC4
	.size	thread, .-thread
	.section	.rodata
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	init
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L41+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #1
	ldr	r2, .L41+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #2
	ldr	r2, .L41+4
	mov	r1, #0
	bl	pthread_create
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC5
	.word	thread
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5782, %object
	.size	__PRETTY_FUNCTION__.5782, 7
__PRETTY_FUNCTION__.5782:
	.ascii	"thread\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
