	.file	"945070.c"
	.intel_syntax noprefix
	.text
	.local	buffer
	.comm	buffer,10,8
	.local	first
	.comm	first,4,4
	.local	next
	.comm	next,4,4
	.local	buffer_size
	.comm	buffer_size,4,4
	.globl	send
	.bss
	.type	send, @object
	.size	send, 1
send:
	.zero	1
	.globl	receive
	.type	receive, @object
	.size	receive, 1
receive:
	.zero	1
	.globl	m
	.align 32
	.type	m, @object
	.size	m, 40
m:
	.zero	40
	.text
	.globl	initLog
	.type	initLog, @function
initLog:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR buffer_size[rip], eax
	mov	DWORD PTR next[rip], 0
	mov	eax, DWORD PTR next[rip]
	mov	DWORD PTR first[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	initLog, .-initLog
	.globl	removeLogElement
	.type	removeLogElement, @function
removeLogElement:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR next[rip]
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR first[rip]
	mov	edx, DWORD PTR buffer_size[rip]
	cmp	eax, edx
	jnb	.L3
	mov	eax, DWORD PTR first[rip]
	add	eax, 1
	mov	DWORD PTR first[rip], eax
	mov	eax, DWORD PTR first[rip]
	sub	eax, 1
	mov	edx, eax
	lea	rax, buffer[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	jmp	.L4
.L3:
	mov	eax, -1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	removeLogElement, .-removeLogElement
	.section	.rodata
.LC0:
	.string	"the_stack_data/945070.c"
.LC1:
	.string	"next<buffer_size"
	.text
	.globl	insertLogElement
	.type	insertLogElement, @function
insertLogElement:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR next[rip]
	mov	edx, DWORD PTR buffer_size[rip]
	cmp	eax, edx
	jnb	.L6
	mov	eax, DWORD PTR buffer_size[rip]
	test	eax, eax
	jle	.L6
	mov	eax, DWORD PTR next[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rax, buffer[rip]
	mov	BYTE PTR [rdx+rax], cl
	mov	eax, DWORD PTR next[rip]
	add	eax, 1
	mov	edx, DWORD PTR buffer_size[rip]
	mov	ecx, edx
	mov	edx, 0
	div	ecx
	mov	eax, edx
	mov	DWORD PTR next[rip], eax
	mov	eax, DWORD PTR next[rip]
	mov	edx, DWORD PTR buffer_size[rip]
	cmp	eax, edx
	jb	.L10
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 47
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, -1
	jmp	.L9
.L10:
	nop
	mov	eax, DWORD PTR -4[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	insertLogElement, .-insertLogElement
	.globl	t1
	.type	t1, @function
t1:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L12
.L14:
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
	movzx	eax, BYTE PTR send[rip]
	test	al, al
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	insertLogElement
	mov	BYTE PTR send[rip], 0
	mov	BYTE PTR receive[rip], 1
.L13:
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -4[rbp], 1
.L12:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L14
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	t1, .-t1
	.section	.rodata
.LC2:
	.string	"removeLogElement()==i"
	.text
	.globl	t2
	.type	t2, @function
t2:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L16
.L19:
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
	movzx	eax, BYTE PTR receive[rip]
	test	al, al
	je	.L17
	call	removeLogElement
	cmp	DWORD PTR -4[rbp], eax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 83
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L18:
	mov	BYTE PTR receive[rip], 0
	mov	BYTE PTR send[rip], 1
.L17:
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -4[rbp], 1
.L16:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L19
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	t2, .-t2
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, m[rip]
	call	pthread_mutex_init@PLT
	mov	edi, 10
	call	initLog
	mov	BYTE PTR send[rip], 1
	mov	BYTE PTR receive[rip], 0
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, t1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, t2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 17
__PRETTY_FUNCTION__.1:
	.string	"insertLogElement"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 3
__PRETTY_FUNCTION__.0:
	.string	"t2"
	.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	"945070.c"
	.text
	.local	buffer
	.comm	buffer,10,4
	.local	first
	.comm	first,4,4
	.local	next
	.comm	next,4,4
	.local	buffer_size
	.comm	buffer_size,4,4
	.comm	send,1,1
	.comm	receive,1,1
	.comm	m,24,4
	.align	2
	.global	initLog
	.syntax unified
	.arm
	.fpu softvfp
	.type	initLog, %function
initLog:
	@ 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, #-8]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L2+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L2+4
	ldr	r3, [r3]
	ldr	r2, .L2+8
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	buffer_size
	.word	next
	.word	first
	.size	initLog, .-initLog
	.align	2
	.global	removeLogElement
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeLogElement, %function
removeLogElement:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, .L7+8
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L5
	ldr	r3, .L7+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+4
	str	r3, [r2]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L7+12
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	b	.L6
.L5:
	mvn	r3, #0
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	next
	.word	first
	.word	buffer_size
	.word	buffer
	.size	removeLogElement, .-removeLogElement
	.global	__aeabi_uidivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/945070.c\000"
	.align	2
.LC1:
	.ascii	"next<buffer_size\000"
	.text
	.align	2
	.global	insertLogElement
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertLogElement, %function
insertLogElement:
	@ 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, .L15
	ldr	r3, [r3]
	ldr	r2, .L15+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L10
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L10
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	and	r1, r2, #255
	ldr	r2, .L15+8
	strb	r1, [r2, r3]
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L15
	str	r2, [r3]
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, .L15+4
	ldr	r2, [r2]
	cmp	r3, r2
	bcc	.L14
	ldr	r3, .L15+12
	mov	r2, #47
	ldr	r1, .L15+16
	ldr	r0, .L15+20
	bl	__assert_fail
.L10:
	mvn	r3, #0
	b	.L13
.L14:
	nop
	ldr	r3, [fp, #-8]
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	next
	.word	buffer_size
	.word	buffer
	.word	__PRETTY_FUNCTION__.4893
	.word	.LC0
	.word	.LC1
	.size	insertLogElement, .-insertLogElement
	.align	2
	.global	t1
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1, %function
t1:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L20:
	ldr	r0, .L21
	bl	pthread_mutex_lock
	ldr	r3, .L21+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r0, [fp, #-8]
	bl	insertLogElement
	ldr	r3, .L21+4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L21+8
	mov	r2, #1
	strb	r2, [r3]
.L19:
	ldr	r0, .L21
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L20
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	m
	.word	send
	.word	receive
	.size	t1, .-t1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"removeLogElement()==i\000"
	.text
	.align	2
	.global	t2
	.syntax unified
	.arm
	.fpu softvfp
	.type	t2, %function
t2:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L27:
	ldr	r0, .L28
	bl	pthread_mutex_lock
	ldr	r3, .L28+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	bl	removeLogElement
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L26
	ldr	r3, .L28+8
	mov	r2, #83
	ldr	r1, .L28+12
	ldr	r0, .L28+16
	bl	__assert_fail
.L26:
	ldr	r3, .L28+4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L28+20
	mov	r2, #1
	strb	r2, [r3]
.L25:
	ldr	r0, .L28
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L27
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	m
	.word	receive
	.word	__PRETTY_FUNCTION__.4905
	.word	.LC0
	.word	.LC2
	.word	send
	.size	t2, .-t2
	.section	.rodata
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L33+4
	bl	pthread_mutex_init
	mov	r0, #10
	bl	initLog
	ldr	r3, .L33+8
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, .L33+12
	mov	r2, #0
	strb	r2, [r3]
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L33+16
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L33+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC3
	.word	m
	.word	send
	.word	receive
	.word	t1
	.word	t2
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4893, %object
	.size	__PRETTY_FUNCTION__.4893, 17
__PRETTY_FUNCTION__.4893:
	.ascii	"insertLogElement\000"
	.align	2
	.type	__PRETTY_FUNCTION__.4905, %object
	.size	__PRETTY_FUNCTION__.4905, 3
__PRETTY_FUNCTION__.4905:
	.ascii	"t2\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
