	.file	"687183.c"
	.intel_syntax noprefix
	.text
	.globl	navState
	.bss
	.align 8
	.type	navState, @object
	.size	navState, 8
navState:
	.zero	8
	.globl	navLock
	.align 32
	.type	navLock, @object
	.size	navLock, 40
navLock:
	.zero	40
	.globl	iterations
	.data
	.align 4
	.type	iterations, @object
	.size	iterations, 4
iterations:
	.long	5
	.globl	updates
	.bss
	.align 4
	.type	updates, @object
	.size	updates, 4
updates:
	.zero	4
	.globl	gets
	.align 4
	.type	gets, @object
	.size	gets, 4
gets:
	.zero	4
	.globl	x
	.data
	.align 8
	.type	x, @object
	.size	x, 8
x:
	.long	-1717986918
	.long	1072798105
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.long	-1717986918
	.long	1073846681
	.globl	z
	.align 8
	.type	z, @object
	.size	z, 8
z:
	.long	1717986918
	.long	1074423398
	.globl	roll
	.align 8
	.type	roll, @object
	.size	roll, 8
roll:
	.long	-1717986918
	.long	1074895257
	.globl	pich
	.align 8
	.type	pich, @object
	.size	pich, 8
pich:
	.long	0
	.long	1075183616
	.globl	yaw
	.align 8
	.type	yaw, @object
	.size	yaw, 8
yaw:
	.long	1717986918
	.long	1075471974
	.section	.rodata
	.align 8
.LC0:
	.string	"******************************"
	.align 8
.LC1:
	.string	"accelX = %2.3f\taccelY = %2.3f\taccelZ = %2.3f\n"
	.align 8
.LC2:
	.string	"row = %2.3f\tpitch = %2.3f\tyaw = %2.3f\n"
.LC4:
	.string	"time: [%lf] s\n"
	.text
	.globl	printState
	.type	printState, @function
printState:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 3
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 3
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printState, .-printState
	.section	.rodata
	.align 8
.LC5:
	.string	"Updating state: %dth iteration\n"
.LC6:
	.string	"Finished updating state"
	.text
	.globl	updateState
	.type	updateState, @function
updateState:
.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	jmp	.L3
.L5:
	nop
.L4:
	mov	edx, DWORD PTR gets[rip]
	mov	eax, DWORD PTR updates[rip]
	cmp	edx, eax
	jne	.L4
	lea	rdi, navLock[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR updates[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR updates[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR x[rip]
	mov	rbx, QWORD PTR navState[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR updates[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR y[rip]
	mov	rbx, QWORD PTR navState[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR updates[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR z[rip]
	mov	rbx, QWORD PTR navState[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR updates[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR roll[rip]
	mov	rbx, QWORD PTR navState[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR updates[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR pich[rip]
	mov	rbx, QWORD PTR navState[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR updates[rip]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR yaw[rip]
	mov	rbx, QWORD PTR navState[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR navState[rip]
	add	rax, 48
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, navLock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR updates[rip]
	add	eax, 1
	mov	DWORD PTR updates[rip], eax
.L3:
	mov	edx, DWORD PTR updates[rip]
	mov	eax, DWORD PTR iterations[rip]
	cmp	edx, eax
	jl	.L5
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	updateState, .-updateState
	.section	.rodata
	.align 8
.LC7:
	.string	"Reading state: %dth iteration\n"
	.text
	.globl	getState
	.type	getState, @function
getState:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L8
.L9:
	mov	eax, DWORD PTR gets[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, navLock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR navState[rip]
	mov	rdi, rax
	call	printState
	lea	rdi, navLock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR gets[rip]
	add	eax, 1
	mov	DWORD PTR gets[rip], eax
.L8:
	mov	edx, DWORD PTR gets[rip]
	mov	eax, DWORD PTR iterations[rip]
	cmp	edx, eax
	jl	.L9
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getState, .-getState
	.section	.rodata
	.align 8
.LC8:
	.string	"Failed to allocated memory for navState"
.LC9:
	.string	"Threads started!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -128[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	lea	rax, -128[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -152[rbp], 4
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -148[rbp], 4
	lea	rdx, -152[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
	lea	rdx, -148[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
	mov	esi, 0
	lea	rdi, navLock[rip]
	call	pthread_mutex_init@PLT
	mov	edi, 64
	call	malloc@PLT
	mov	QWORD PTR navState[rip], rax
	mov	rax, QWORD PTR navState[rip]
	test	rax, rax
	jne	.L12
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rsi, -128[rbp]
	lea	rax, -144[rbp]
	mov	ecx, 0
	lea	rdx, updateState[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rsi, -64[rbp]
	lea	rax, -136[rbp]
	mov	ecx, 0
	lea	rdx, getState[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, navLock[rip]
	call	pthread_mutex_destroy@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1104006501
	.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	"687183.c"
	.text
	.comm	navState,4,4
	.comm	navLock,24,4
	.global	iterations
	.data
	.align	2
	.type	iterations, %object
	.size	iterations, 4
iterations:
	.word	5
	.global	updates
	.bss
	.align	2
	.type	updates, %object
	.size	updates, 4
updates:
	.space	4
	.global	gets
	.align	2
	.type	gets, %object
	.size	gets, 4
gets:
	.space	4
	.global	x
	.data
	.align	3
	.type	x, %object
	.size	x, 8
x:
	.word	2576980378
	.word	1072798105
	.global	y
	.align	3
	.type	y, %object
	.size	y, 8
y:
	.word	2576980378
	.word	1073846681
	.global	z
	.align	3
	.type	z, %object
	.size	z, 8
z:
	.word	1717986918
	.word	1074423398
	.global	roll
	.align	3
	.type	roll, %object
	.size	roll, 8
roll:
	.word	2576980378
	.word	1074895257
	.global	pich
	.align	3
	.type	pich, %object
	.size	pich, 8
pich:
	.word	0
	.word	1075183616
	.global	yaw
	.align	3
	.type	yaw, %object
	.size	yaw, 8
yaw:
	.word	1717986918
	.word	1075471974
	.section	.rodata
	.align	2
.LC0:
	.ascii	"******************************\000"
	.align	2
.LC1:
	.ascii	"accelX = %2.3f\011accelY = %2.3f\011accelZ = %2.3f\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"row = %2.3f\011pitch = %2.3f\011yaw = %2.3f\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"time: [%lf] s\012\000"
	.text
	.align	2
	.global	printState
	.syntax unified
	.arm
	.fpu softvfp
	.type	printState, %function
printState:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r0, .L2
	bl	puts
	ldr	r3, [fp, #-24]
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	add	r1, r1, #16
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-24]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	add	r1, r1, #40
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L2+8
	bl	printf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #52]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L2+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L2+16
	bl	printf
	ldr	r0, .L2
	bl	puts
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1104006501
	.word	.LC3
	.size	printState, .-printState
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Updating state: %dth iteration\012\000"
	.align	2
.LC5:
	.ascii	"Finished updating state\000"
	.text
	.align	2
	.global	updateState
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateState, %function
updateState:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	str	r0, [fp, #-24]
	b	.L5
.L7:
	nop
.L6:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	ldr	r0, .L9+8
	bl	pthread_mutex_lock
	ldr	r0, .L9+12
	bl	puts
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, .L9+20
	ldmia	r3, {r4-r5}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+24
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r3, .L9+28
	ldmia	r3, {r4-r5}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+24
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	str	r2, [r6, #8]
	str	r3, [r6, #12]
	ldr	r3, .L9+32
	ldmia	r3, {r4-r5}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+24
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	str	r2, [r6, #16]
	str	r3, [r6, #20]
	ldr	r3, .L9+36
	ldmia	r3, {r4-r5}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+24
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	str	r2, [r6, #24]
	str	r3, [r6, #28]
	ldr	r3, .L9+40
	ldmia	r3, {r4-r5}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+24
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	str	r2, [r6, #32]
	str	r3, [r6, #36]
	ldr	r3, .L9+44
	ldmia	r3, {r4-r5}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+24
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	str	r2, [r6, #40]
	str	r3, [r6, #44]
	ldr	r3, .L9+24
	ldr	r3, [r3]
	add	r3, r3, #48
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r0, .L9+12
	bl	puts
	ldr	r0, .L9+48
	bl	puts
	ldr	r0, .L9+8
	bl	pthread_mutex_unlock
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
.L5:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, .L9+52
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L7
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L10:
	.align	2
.L9:
	.word	gets
	.word	updates
	.word	navLock
	.word	.LC0
	.word	.LC4
	.word	x
	.word	navState
	.word	y
	.word	z
	.word	roll
	.word	pich
	.word	yaw
	.word	.LC5
	.word	iterations
	.size	updateState, .-updateState
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Reading state: %dth iteration\012\000"
	.text
	.align	2
	.global	getState
	.syntax unified
	.arm
	.fpu softvfp
	.type	getState, %function
getState:
	@ 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]
	b	.L12
.L13:
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	ldr	r0, .L15+8
	bl	pthread_mutex_lock
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	printState
	ldr	r0, .L15+8
	bl	pthread_mutex_unlock
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
.L12:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	gets
	.word	.LC6
	.word	navLock
	.word	navState
	.word	iterations
	.size	getState, .-getState
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Failed to allocated memory for navState\000"
	.align	2
.LC8:
	.ascii	"Threads started!\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #80
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #80
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	sub	r3, fp, #80
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	mov	r3, #4
	str	r3, [fp, #-88]
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	mov	r3, #4
	str	r3, [fp, #-84]
	sub	r2, fp, #88
	sub	r3, fp, #80
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedparam
	sub	r2, fp, #84
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedparam
	mov	r1, #0
	ldr	r0, .L21+4
	bl	pthread_mutex_init
	mov	r0, #56
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L21+8
	str	r2, [r3]
	ldr	r3, .L21+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L21+12
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	sub	r1, fp, #80
	sub	r0, fp, #96
	mov	r3, #0
	ldr	r2, .L21+16
	bl	pthread_create
	sub	r1, fp, #44
	sub	r0, fp, #92
	mov	r3, #0
	ldr	r2, .L21+20
	bl	pthread_create
	ldr	r0, .L21+24
	bl	puts
	ldr	r3, [fp, #-96]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-92]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L21+4
	bl	pthread_mutex_destroy
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC9
	.word	navLock
	.word	navState
	.word	.LC7
	.word	updateState
	.word	getState
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
