	.file	"947595.c"
	.intel_syntax noprefix
	.text
	.type	alist_pointer_equal, @function
alist_pointer_equal:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jne	.L2
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alist_pointer_equal, .-alist_pointer_equal
	.section	.rodata
.LC0:
	.string	"the_stack_data/947595.c"
.LC1:
	.string	"node"
	.text
	.globl	new_alist_element
	.type	new_alist_element, @function
new_alist_element:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	sete	al
	movzx	eax, al
	test	rax, rax
	je	.L6
	cmp	QWORD PTR -56[rbp], 0
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 52
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L7:
	mov	eax, 0
	mov	edx, 0
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	lea	rdi, 16[rcx]
	mov	rcx, rax
	mov	rbx, rdx
	mov	rsi, rcx
	mov	rax, rdx
	mov	ecx, 5
	mov	rdx, rax
	call	__atomic_store_16@PLT
	mov	eax, 0
	mov	edx, 0
	mov	rax, QWORD PTR -56[rbp]
.L8:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	new_alist_element, .-new_alist_element
	.globl	aqueue_len
	.type	aqueue_len, @function
aqueue_len:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	aqueue_len, .-aqueue_len
	.globl	aqueue_init
	.type	aqueue_init, @function
aqueue_init:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -88[rbp], 0
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -104[rbp]
	xchg	rdx, QWORD PTR [rax]
	mov	edi, 0
	call	new_alist_element
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	lea	rdi, 16[rcx]
	mov	rcx, rax
	mov	rbx, rdx
	mov	rsi, rcx
	mov	rax, rdx
	mov	ecx, 5
	mov	rdx, rax
	call	__atomic_store_16@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	lea	rdi, 32[rcx]
	mov	rcx, rax
	mov	rbx, rdx
	mov	rsi, rcx
	mov	rax, rdx
	mov	ecx, 5
	mov	rdx, rax
	call	__atomic_store_16@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	aqueue_init, .-aqueue_init
	.globl	aqueue_push
	.type	aqueue_push, @function
aqueue_push:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	new_alist_element
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
.L21:
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 32
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 32
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdi, QWORD PTR -112[rbp]
	mov	rsi, QWORD PTR -104[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	alist_pointer_equal
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 1
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, -80[rbp]
	mov	rdi, QWORD PTR -144[rbp]
	mov	r9d, 5
	mov	r8d, 5
	mov	rcx, rdx
	mov	rdx, rax
	call	__atomic_compare_exchange_16@PLT
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 32
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, -112[rbp]
	mov	rdi, QWORD PTR -136[rbp]
	mov	r9d, 5
	mov	r8d, 5
	mov	rcx, rdx
	mov	rdx, rax
	call	__atomic_compare_exchange_16@PLT
	mov	DWORD PTR -80[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	lock xadd	QWORD PTR [rax], rdx
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	jmp	.L23
.L19:
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 1
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 32
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, -112[rbp]
	mov	rdi, QWORD PTR -152[rbp]
	mov	r9d, 5
	mov	r8d, 5
	mov	rcx, rdx
	mov	rdx, rax
	call	__atomic_compare_exchange_16@PLT
	jmp	.L21
.L23:
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	aqueue_push, .-aqueue_push
	.globl	aqueue_pop
	.type	aqueue_pop, @function
aqueue_pop:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -168[rbp], 0
.L29:
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 16
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 32
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 16
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdi, QWORD PTR -144[rbp]
	mov	rsi, QWORD PTR -136[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	alist_pointer_equal
	test	al, al
	je	.L29
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -112[rbp]
	cmp	rdx, rax
	jne	.L26
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	jne	.L27
	mov	eax, 0
	jmp	.L30
.L27:
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 32
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, -112[rbp]
	mov	rdi, QWORD PTR -152[rbp]
	mov	r9d, 5
	mov	r8d, 5
	mov	rcx, rdx
	mov	rdx, rax
	call	__atomic_compare_exchange_16@PLT
	jmp	.L29
.L26:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 16
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, -144[rbp]
	mov	rdi, QWORD PTR -160[rbp]
	mov	r9d, 5
	mov	r8d, 5
	mov	rcx, rdx
	mov	rdx, rax
	call	__atomic_compare_exchange_16@PLT
	test	al, al
	je	.L29
	mov	DWORD PTR -172[rbp], 1
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -184[rbp]
	neg	rdx
	lock xadd	QWORD PTR [rax], rdx
	mov	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -168[rbp]
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	aqueue_pop, .-aqueue_pop
	.section	.rodata
.LC2:
	.string	"%d: len (start): %zu\n"
.LC3:
	.string	"%d: len (end): %zu - %d\n"
	.text
	.globl	thread_test
	.type	thread_test, @function
thread_test:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	aqueue_len
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 1
	test	eax, eax
	je	.L34
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	aqueue_pop
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	lock sub	DWORD PTR [rax], 1
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	aqueue_push
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	lock add	DWORD PTR [rax], 1
.L35:
	add	DWORD PTR -44[rbp], 1
.L33:
	cmp	DWORD PTR -44[rbp], 99999
	jle	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -48[rbp], eax
	mov	ebx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	aqueue_len
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, ebx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	thread_test, .-thread_test
	.section	.rodata
.LC4:
	.string	"res == 0"
.LC5:
	.string	"a"
.LC6:
	.string	"b"
.LC7:
	.string	"c"
.LC8:
	.string	"d"
.LC9:
	.string	"%d: joined\n"
.LC10:
	.string	"count: %d\n"
.LC11:
	.string	"head: %p\n"
.LC12:
	.string	"tail: %p\n"
.LC13:
	.string	"len: %zu\n"
.LC14:
	.string	"%d: pop (%zu): %s\n"
.LC15:
	.string	"error N: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 304
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	aqueue_init
	mov	DWORD PTR -272[rbp], eax
	cmp	DWORD PTR -272[rbp], 0
	je	.L40
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 175
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L40:
	mov	DWORD PTR -268[rbp], 4
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -256[rbp], rax
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	mov	QWORD PTR -336[rbp], rax
	mov	QWORD PTR -328[rbp], 0
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L41:
	cmp	rsp, rdx
	je	.L42
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L41
.L42:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L43
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L43:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -248[rbp], rax
	mov	DWORD PTR -292[rbp], 0
	mov	DWORD PTR -176[rbp], 0
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -168[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -292[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	DWORD PTR -144[rbp], 1
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, -292[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -112[rbp], 2
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, -292[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -80[rbp], 3
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, -292[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -276[rbp], 0
	jmp	.L44
.L46:
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	sal	rax, 5
	add	rdx, rax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, thread_test[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -272[rbp], eax
	cmp	DWORD PTR -272[rbp], 0
	je	.L45
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 189
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L45:
	add	DWORD PTR -276[rbp], 1
.L44:
	mov	eax, DWORD PTR -276[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L46
	mov	DWORD PTR -280[rbp], 0
	jmp	.L47
.L49:
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, DWORD PTR -280[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -272[rbp], eax
	cmp	DWORD PTR -272[rbp], 0
	je	.L48
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 193
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L48:
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	sal	rax, 5
	lea	rax, -32[rax]
	add	rax, rbp
	sub	rax, 144
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -280[rbp], 1
.L47:
	mov	eax, DWORD PTR -280[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L49
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 16
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], rdx
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 32
	mov	esi, 5
	mov	rdi, rax
	call	__atomic_load_16@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], rdx
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], rdx
	mov	eax, DWORD PTR -292[rbp]
	mov	DWORD PTR -288[rbp], eax
	mov	eax, DWORD PTR -288[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	aqueue_len
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -284[rbp], 0
	jmp	.L50
.L52:
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	aqueue_pop
	mov	rbx, rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	aqueue_len
	mov	rsi, rax
	mov	eax, DWORD PTR -284[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -284[rbp], edx
	mov	rcx, rbx
	mov	rdx, rsi
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -284[rbp], 19
	jle	.L50
	mov	eax, DWORD PTR -284[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L51
.L50:
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	aqueue_len
	test	rax, rax
	jne	.L52
	mov	eax, 0
.L51:
	mov	rsp, r12
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 18
__PRETTY_FUNCTION__.1:
	.string	"new_alist_element"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"947595.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alist_pointer_equal, %function
alist_pointer_equal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	sub	ip, fp, #12
	stm	ip, {r0, r1}
	sub	r1, fp, #20
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	alist_pointer_equal, .-alist_pointer_equal
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/947595.c\000"
	.align	2
.LC1:
	.ascii	"node\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	new_alist_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_alist_element, %function
new_alist_element:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L11+4
	mov	r2, #52
	ldr	r1, .L11+8
	ldr	r0, .L11+12
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	b	.L5
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	ip, r3, #8
	sub	r3, fp, #36
	sub	r2, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r1, #5
	str	r1, [sp]
	mov	r0, ip
	bl	__atomic_store_8
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
.L5:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	__PRETTY_FUNCTION__.5911
	.word	.LC0
	.word	.LC1
	.size	new_alist_element, .-new_alist_element
	.global	__sync_synchronize
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aqueue_len
	.syntax unified
	.arm
	.fpu softvfp
	.type	aqueue_len, %function
aqueue_len:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r4, [fp, #-20]
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	str	r4, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	bl	__sync_synchronize
	ldr	r4, [fp, #-28]
	bl	__sync_synchronize
	str	r4, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.size	aqueue_len, .-aqueue_len
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aqueue_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	aqueue_init, %function
aqueue_init:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r4, [fp, #-48]
	ldr	r5, [fp, #-44]
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	new_alist_element
	sub	r3, fp, #32
	sub	r2, fp, #40
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-48]
	add	ip, r3, #8
	sub	r3, fp, #60
	sub	r2, fp, #32
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	mov	r1, #5
	str	r1, [sp]
	mov	r0, ip
	bl	__atomic_store_8
	sub	r3, fp, #24
	sub	r2, fp, #40
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-48]
	add	ip, r3, #16
	sub	r3, fp, #60
	sub	r2, fp, #24
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	mov	r1, #5
	str	r1, [sp]
	mov	r0, ip
	bl	__atomic_store_8
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.size	aqueue_init, .-aqueue_init
	.global	__sync_fetch_and_add_4
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aqueue_push
	.syntax unified
	.arm
	.fpu softvfp
	.type	aqueue_push, %function
aqueue_push:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	new_alist_element
.L27:
	ldr	r3, [fp, #-88]
	add	r3, r3, #16
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	sub	r3, fp, #68
	sub	r2, fp, #100
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #28
	sub	r2, fp, #68
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	sub	r3, fp, #60
	sub	r2, fp, #100
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #20
	sub	r2, fp, #60
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-88]
	add	r3, r3, #16
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	sub	r3, fp, #52
	sub	r2, fp, #100
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r2, r3}
	sub	r1, fp, #28
	ldm	r1, {r0, r1}
	bl	alist_pointer_equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	str	r3, [fp, #-76]
	sub	r3, fp, #44
	sub	r2, fp, #36
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	mov	r0, #5
	str	r0, [sp, #4]
	mov	r0, #5
	str	r0, [sp]
	ldr	r0, [fp, #-76]
	bl	__atomic_compare_exchange_8
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-88]
	add	r3, r3, #16
	str	r3, [fp, #-72]
	sub	r3, fp, #20
	sub	r2, fp, #36
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	mov	r0, #5
	str	r0, [sp, #4]
	mov	r0, #5
	str	r0, [sp]
	ldr	r0, [fp, #-72]
	bl	__atomic_compare_exchange_8
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-44]
	mov	r1, r2
	mov	r0, r3
	bl	__sync_fetch_and_add_4
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	b	.L29
.L25:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-88]
	add	r3, r3, #16
	str	r3, [fp, #-80]
	sub	r3, fp, #44
	sub	r2, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	mov	r0, #5
	str	r0, [sp, #4]
	mov	r0, #5
	str	r0, [sp]
	ldr	r0, [fp, #-80]
	bl	__atomic_compare_exchange_8
	b	.L27
.L29:
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC5
	.size	aqueue_push, .-aqueue_push
	.global	__sync_fetch_and_sub_4
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aqueue_pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	aqueue_pop, %function
aqueue_pop:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-96]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-88]
.L37:
	ldr	r3, [fp, #-96]
	add	r3, r3, #8
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	sub	r3, fp, #76
	sub	r2, fp, #108
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #32
	sub	r2, fp, #76
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-96]
	add	r3, r3, #16
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	sub	r3, fp, #68
	sub	r2, fp, #108
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #24
	sub	r2, fp, #68
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	sub	r3, fp, #60
	sub	r2, fp, #108
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #16
	sub	r2, fp, #60
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-96]
	add	r3, r3, #8
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	sub	r3, fp, #52
	sub	r2, fp, #108
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #52
	ldm	r3, {r2, r3}
	sub	r1, fp, #32
	ldm	r1, {r0, r1}
	bl	alist_pointer_equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L34
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L35
	mov	r3, #0
	b	.L38
.L35:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-96]
	add	r3, r3, #16
	str	r3, [fp, #-80]
	sub	r3, fp, #44
	sub	r2, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #24
	mov	r0, #5
	str	r0, [sp, #4]
	mov	r0, #5
	str	r0, [sp]
	ldr	r0, [fp, #-80]
	bl	__atomic_compare_exchange_8
	b	.L37
.L34:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-96]
	add	r3, r3, #8
	str	r3, [fp, #-84]
	sub	r3, fp, #44
	sub	r2, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #32
	mov	r0, #5
	str	r0, [sp, #4]
	mov	r0, #5
	str	r0, [sp]
	ldr	r0, [fp, #-84]
	bl	__atomic_compare_exchange_8
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	mov	r3, #1
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-92]
	mov	r1, r2
	mov	r0, r3
	bl	__sync_fetch_and_sub_4
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-88]
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC6
	.size	aqueue_pop, .-aqueue_pop
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%d: len (start): %zu\012\000"
	.align	2
.LC8:
	.ascii	"%d: len (end): %zu - %d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_test, %function
thread_test:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	str	r0, [fp, #-48]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r4, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	aqueue_len
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L49+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L43
.L46:
	ldr	r3, [fp, #-36]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	aqueue_pop
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mvn	r1, #0
	mov	r0, r3
	bl	__sync_fetch_and_add_4
	b	.L45
.L44:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	aqueue_push
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r1, #1
	mov	r0, r3
	bl	__sync_fetch_and_add_4
.L45:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L43:
	ldr	r3, [fp, #-36]
	ldr	r2, .L49+8
	cmp	r3, r2
	blt	.L46
	ldr	r3, [fp, #-32]
	ldr	r5, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	aqueue_len
	mov	r6, r0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-28]
	ldr	r4, [fp, #-28]
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r2, r6
	mov	r1, r5
	ldr	r0, .L49+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC9
	.word	.LC7
	.word	100000
	.word	.LC8
	.size	thread_test, .-thread_test
	.section	.rodata
	.align	2
.LC10:
	.ascii	"res == 0\000"
	.align	2
.LC11:
	.ascii	"a\000"
	.align	2
.LC12:
	.ascii	"b\000"
	.align	2
.LC13:
	.ascii	"c\000"
	.align	2
.LC14:
	.ascii	"d\000"
	.align	2
.LC15:
	.ascii	"%d: joined\012\000"
	.align	2
.LC16:
	.ascii	"count: %d\012\000"
	.align	2
.LC17:
	.ascii	"head: %p\012\000"
	.align	2
.LC18:
	.ascii	"tail: %p\012\000"
	.align	2
.LC19:
	.ascii	"len: %zu\012\000"
	.align	2
.LC20:
	.ascii	"%d: pop (%zu): %s\012\000"
	.align	2
.LC21:
	.ascii	"error N: %d\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #164
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, sp
	mov	r6, r3
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-144]
	ldr	r0, [fp, #-144]
	bl	aqueue_init
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L52
	ldr	r3, .L64+4
	mov	r2, #175
	ldr	r1, .L64+8
	ldr	r0, .L64+12
	bl	__assert_fail
.L52:
	mov	r3, #4
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-136]
	sub	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-136]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-136]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-164]
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-84]
	ldr	r3, .L64+16
	str	r3, [fp, #-80]
	sub	r3, fp, #164
	str	r3, [fp, #-76]
	mov	r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-68]
	ldr	r3, .L64+20
	str	r3, [fp, #-64]
	sub	r3, fp, #164
	str	r3, [fp, #-60]
	mov	r3, #2
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-52]
	ldr	r3, .L64+24
	str	r3, [fp, #-48]
	sub	r3, fp, #164
	str	r3, [fp, #-44]
	mov	r3, #3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-36]
	ldr	r3, .L64+28
	str	r3, [fp, #-32]
	sub	r3, fp, #164
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L53
.L55:
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-128]
	add	r0, r2, r3
	sub	r2, fp, #88
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, .L64+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L64+4
	mov	r2, #189
	ldr	r1, .L64+8
	ldr	r0, .L64+12
	bl	__assert_fail
.L54:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L53:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L55
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L56
.L58:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-152]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L64+4
	mov	r2, #193
	ldr	r1, .L64+8
	ldr	r0, .L64+12
	bl	__assert_fail
.L57:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #4
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	mov	r1, r3
	ldr	r0, .L64+36
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L56:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L58
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-144]
	add	r3, r3, #8
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	sub	r3, fp, #124
	sub	r2, fp, #180
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #104
	sub	r2, fp, #124
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-144]
	add	r3, r3, #16
	mov	r1, #5
	mov	r0, r3
	bl	__atomic_load_8
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-180]
	str	r3, [fp, #-176]
	sub	r3, fp, #116
	sub	r2, fp, #180
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #96
	sub	r2, fp, #116
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	bl	__sync_synchronize
	ldr	r4, [fp, #-164]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	mov	r1, r3
	ldr	r0, .L64+40
	bl	printf
	ldr	r3, [fp, #-104]
	mov	r1, r3
	ldr	r0, .L64+44
	bl	printf
	ldr	r3, [fp, #-96]
	mov	r1, r3
	ldr	r0, .L64+48
	bl	printf
	ldr	r0, [fp, #-144]
	bl	aqueue_len
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L64+52
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L59
.L61:
	ldr	r4, [fp, #-156]
	add	r3, r4, #1
	str	r3, [fp, #-156]
	ldr	r0, [fp, #-144]
	bl	aqueue_len
	mov	r5, r0
	ldr	r0, [fp, #-144]
	bl	aqueue_pop
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L64+56
	bl	printf
	ldr	r3, [fp, #-156]
	cmp	r3, #19
	ble	.L59
	ldr	r1, [fp, #-156]
	ldr	r0, .L64+60
	bl	printf
	mov	r3, #1
	b	.L60
.L59:
	ldr	r0, [fp, #-144]
	bl	aqueue_len
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	mov	r3, #0
.L60:
	mov	sp, r6
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC22
	.word	__PRETTY_FUNCTION__.6003
	.word	.LC0
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	thread_test
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5911, %object
	.size	__PRETTY_FUNCTION__.5911, 18
__PRETTY_FUNCTION__.5911:
	.ascii	"new_alist_element\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6003, %object
	.size	__PRETTY_FUNCTION__.6003, 5
__PRETTY_FUNCTION__.6003:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
