	.file	"765604.c"
	.intel_syntax noprefix
	.text
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 272
queue:
	.zero	272
	.globl	barrier_mem
	.align 8
	.type	barrier_mem, @object
	.size	barrier_mem, 8
barrier_mem:
	.zero	8
	.globl	queue_entering
	.align 16
	.type	queue_entering, @object
	.size	queue_entering, 16
queue_entering:
	.zero	16
	.globl	queue_num
	.align 16
	.type	queue_num, @object
	.size	queue_num, 16
queue_num:
	.zero	16
	.text
	.globl	lock_queue
	.type	lock_queue, @function
lock_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_entering[rip]
	mov	QWORD PTR [rdx+rax], 1
	mov	QWORD PTR -24[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L3
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
.L3:
	add	QWORD PTR -24[rbp], 1
.L2:
	cmp	QWORD PTR -24[rbp], 1
	jbe	.L4
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_entering[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L5
.L9:
	nop
.L6:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_entering[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L6
	nop
.L8:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rax, QWORD PTR [rcx+rax]
	cmp	rdx, rax
	ja	.L8
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	rax, QWORD PTR [rcx+rax]
	cmp	rdx, rax
	jne	.L7
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	ja	.L8
.L7:
	add	QWORD PTR -16[rbp], 1
.L5:
	cmp	QWORD PTR -16[rbp], 1
	jbe	.L9
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	lock_queue, .-lock_queue
	.globl	unlock_queue
	.type	unlock_queue, @function
unlock_queue:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	QWORD PTR [rdx+rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	unlock_queue, .-unlock_queue
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.LFB2:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	lock_queue
	mov	rax, QWORD PTR queue[rip+8]
	add	rax, 1
	and	eax, 31
	mov	rdx, rax
	mov	rax, QWORD PTR queue[rip]
	cmp	rdx, rax
	jne	.L12
	mov	QWORD PTR -8[rbp], 1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR queue[rip+8]
	add	rax, 2
	lea	rcx, 0[0+rax*8]
	lea	rdx, queue[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR queue[rip+8]
	add	rax, 1
	and	eax, 31
	mov	QWORD PTR queue[rip+8], rax
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	unlock_queue
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	enqueue, .-enqueue
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB3:
	.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	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -24[rbp], 0
	mov	eax, 2415919103
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	lock_queue
	mov	rdx, QWORD PTR queue[rip+8]
	mov	rax, QWORD PTR queue[rip]
	cmp	rdx, rax
	jne	.L16
	mov	QWORD PTR -24[rbp], 1
	jmp	.L17
.L16:
	mov	rax, QWORD PTR queue[rip]
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	lea	rax, queue[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR queue[rip]
	add	rax, 1
	and	eax, 31
	mov	QWORD PTR queue[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
#APP
# 125 "the_stack_data/765604.c" 1
	sb rax, 0(rdx)
# 0 "" 2
#NO_APP
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	unlock_queue
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dequeue, .-dequeue
	.globl	thread_main
	.type	thread_main, @function
thread_main:
.LFB4:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
#APP
# 142 "the_stack_data/765604.c" 1
	csrr rax, mhartid
# 0 "" 2
#NO_APP
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L24
	jmp	.L21
.L22:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	enqueue
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	QWORD PTR -40[rbp], rax
	add	QWORD PTR -32[rbp], 1
.L21:
	cmp	QWORD PTR -32[rbp], 9
	jbe	.L22
	jmp	.L23
.L25:
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dequeue
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L24
	add	QWORD PTR -32[rbp], 1
.L24:
	cmp	QWORD PTR -32[rbp], 9
	jbe	.L25
.L23:
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	thread_main, .-thread_main
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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	QWORD PTR -32[rbp], rsi
#APP
# 168 "the_stack_data/765604.c" 1
	csrr rax, mhartid
# 0 "" 2
#NO_APP
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L36
	mov	QWORD PTR -16[rbp], 0
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_entering[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, queue_num[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	QWORD PTR -16[rbp], 1
.L29:
	cmp	QWORD PTR -16[rbp], 1
	jbe	.L30
	mov	QWORD PTR queue[rip], 0
	mov	QWORD PTR queue[rip+8], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	lea	rax, queue[rip]
	mov	ecx, 3735928559
	mov	QWORD PTR [rdx+rax], rcx
	add	QWORD PTR -16[rbp], 1
.L31:
	cmp	QWORD PTR -16[rbp], 31
	jbe	.L32
	mov	eax, 3735928559
	mov	QWORD PTR barrier_mem[rip], rax
	jmp	.L33
.L36:
	nop
.L34:
	mov	rax, QWORD PTR barrier_mem[rip]
	mov	edx, 3735928559
	cmp	rax, rdx
	jne	.L34
.L33:
	mov	eax, 0
	call	thread_main
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"765604.c"
	.text
	.comm	queue,272,8
	.global	barrier_mem
	.bss
	.align	3
	.type	barrier_mem, %object
	.size	barrier_mem, 8
barrier_mem:
	.space	8
	.comm	queue_entering,16,8
	.comm	queue_num,16,8
	.text
	.align	2
	.global	lock_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	lock_queue, %function
lock_queue:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #36
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, .L10
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #1
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L2
.L4:
	ldr	r2, .L10+4
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L3
	ldr	r2, .L10+4
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L3:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-52]
	str	r9, [fp, #-48]
.L2:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bls	.L4
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	ldr	r2, .L10+4
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	stm	r3, {r6-r7}
	ldr	r2, .L10
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L5
.L9:
	nop
.L6:
	ldr	r2, .L10
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L6
	nop
.L8:
	ldr	r2, .L10+4
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L7
	ldr	r2, .L10+4
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, .L10+4
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L8
	ldr	r2, .L10+4
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, .L10+4
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L7
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L8
.L7:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
.L5:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bls	.L9
	nop
	nop
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
.L11:
	.align	2
.L10:
	.word	queue_entering
	.word	queue_num
	.size	lock_queue, .-lock_queue
	.align	2
	.global	unlock_queue
	.syntax unified
	.arm
	.fpu softvfp
	.type	unlock_queue, %function
unlock_queue:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r2, .L13
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	queue_num
	.size	unlock_queue, .-unlock_queue
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	lock_queue
	ldr	r3, .L19
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	mov	r2, #31
	mov	r3, #0
	and	r1, r6, r2
	str	r1, [fp, #-60]
	and	r3, r7, r3
	str	r3, [fp, #-56]
	ldr	r3, .L19
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L16
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L17
.L16:
	ldr	r3, .L19
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	ldr	r1, .L19
	add	r3, r2, #2
	lsl	r3, r3, #3
	add	r1, r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, .L19
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	mov	r2, #31
	mov	r3, #0
	and	r8, r4, r2
	and	r9, r5, r3
	ldr	r3, .L19
	str	r8, [r3, #8]
	str	r9, [r3, #12]
.L17:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	unlock_queue
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L20:
	.align	2
.L19:
	.word	queue
	.size	enqueue, .-enqueue
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	str	r2, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mvn	r2, #1879048192
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	lock_queue
	ldr	r3, .L25
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r3, .L25
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L22
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L23
.L22:
	ldr	r3, .L25
	ldmia	r3, {r2-r3}
	ldr	r1, .L25
	add	r3, r2, #2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-56]
	stm	r1, {r2-r3}
	ldr	r3, .L25
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	mov	r2, #31
	mov	r3, #0
	and	r6, r4, r2
	and	r7, r5, r3
	ldr	r3, .L25
	stm	r3, {r6-r7}
	ldr	r3, [fp, #-56]
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	.syntax divided
@ 125 "the_stack_data/765604.c" 1
	sb r2, 0(r0)
@ 0 "" 2
	.arm
	.syntax unified
.L23:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	unlock_queue
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L26:
	.align	2
.L25:
	.word	queue
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thread_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_main, %function
thread_main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #48
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r0, #0
	mov	r1, #0
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	mov	r0, #0
	mov	r1, #0
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	.syntax divided
@ 142 "the_stack_data/765604.c" 1
	csrr r0, mhartid
@ 0 "" 2
	.arm
	.syntax unified
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	mov	r2, #1
	mov	r3, #0
	mov	ip, r2
	and	ip, r0, ip
	str	ip, [fp, #-76]
	and	r3, r1, r3
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L32
	b	.L29
.L30:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	enqueue
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L29
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-68]
	str	r7, [fp, #-64]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-60]
	str	r9, [fp, #-56]
.L29:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #9
	bls	.L30
	b	.L31
.L33:
	sub	r3, fp, #68
	mov	r2, r3
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	dequeue
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L32
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
.L32:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #9
	bls	.L33
.L31:
	nop
	ldr	r1, .L35
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC0
	.size	thread_main, .-thread_main
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	str	r2, [fp, #-48]
	.syntax divided
@ 168 "the_stack_data/765604.c" 1
	csrr r2, mhartid
@ 0 "" 2
	.arm
	.syntax unified
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L46
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L39
.L40:
	ldr	r2, .L47+8
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r2, .L47+12
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L39:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bls	.L40
	ldr	r1, .L47+16
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r1, .L47+16
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L41
.L42:
	ldr	r2, .L47+16
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	lsl	r3, r3, #3
	add	r1, r2, r3
	adr	r3, .L47
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
.L41:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #31
	bls	.L42
	ldr	r1, .L47+20
	adr	r3, .L47
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L43
.L46:
	nop
.L44:
	ldr	r3, .L47+20
	ldmia	r3, {r2-r3}
	adr	r1, .L47
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L44
.L43:
	bl	thread_main
	mov	r2, #0
	mov	r3, #0
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L48:
	.align	3
.L47:
	.word	-559038737
	.word	0
	.word	queue_entering
	.word	queue_num
	.word	queue
	.word	barrier_mem
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
