	.file	"297487.c"
	.intel_syntax noprefix
	.text
	.globl	ToRad
	.type	ToRad, @function
ToRad:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ToRad, .-ToRad
	.globl	ToDeg
	.type	ToDeg, @function
ToDeg:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ToDeg, .-ToDeg
	.section	.rodata
.LC3:
	.string	"brng raw %f \n"
.LC4:
	.string	"brng raw %i \n"
	.text
	.globl	heading
	.type	heading, @function
heading:
.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, 112
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	QWORD PTR -80[rbp], xmm1
	movsd	QWORD PTR -88[rbp], xmm2
	movsd	QWORD PTR -96[rbp], xmm3
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rax
	call	ToRad
	movq	rax, xmm0
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	call	ToRad
	movq	rax, xmm0
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	movq	xmm0, rax
	call	ToRad
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	movq	xmm0, rax
	call	ToRad
	movq	rax, xmm0
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movsd	QWORD PTR -104[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movapd	xmm4, xmm0
	mulsd	xmm4, QWORD PTR -104[rbp]
	movsd	QWORD PTR -104[rbp], xmm4
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movsd	QWORD PTR -112[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movapd	xmm5, xmm0
	mulsd	xmm5, QWORD PTR -112[rbp]
	movsd	QWORD PTR -112[rbp], xmm5
	movsd	xmm0, QWORD PTR -32[rbp]
	movapd	xmm6, xmm0
	subsd	xmm6, QWORD PTR -48[rbp]
	movq	rax, xmm6
	movq	xmm0, rax
	call	cos@PLT
	movsd	xmm1, QWORD PTR -112[rbp]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR -104[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	subsd	xmm0, QWORD PTR -48[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	sin@PLT
	movsd	QWORD PTR -104[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -104[rbp]
	movsd	QWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	cvtsd2ss	xmm0, QWORD PTR -24[rbp]
	pxor	xmm7, xmm7
	cvtsd2ss	xmm7, QWORD PTR -16[rbp]
	movd	eax, xmm7
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	atan2f@PLT
	cvtss2sd	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	call	ToDeg
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	eax, xmm0
	add	eax, 360
	movsx	rdx, eax
	imul	rdx, rdx, -1240768329
	shr	rdx, 32
	add	edx, eax
	sar	edx, 8
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 360
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	heading, .-heading
	.section	.rodata
.LC9:
	.string	"Heading of runway is: %.2f"
	.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, 48
	movsd	xmm0, QWORD PTR .LC5[rip]
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm2, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	heading
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-1571644103
	.long	1066524486
	.align 8
.LC1:
	.long	0
	.long	1080459264
	.align 8
.LC2:
	.long	1413754136
	.long	1074340347
	.align 8
.LC5:
	.long	-904623192
	.long	1078986690
	.align 8
.LC6:
	.long	1343603209
	.long	-1070207064
	.align 8
.LC7:
	.long	1726233256
	.long	1078986936
	.align 8
.LC8:
	.long	951352436
	.long	-1070206877
	.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	"297487.c"
	.text
	.global	__aeabi_dmul
	.align	2
	.global	ToRad
	.syntax unified
	.arm
	.fpu softvfp
	.type	ToRad, %function
ToRad:
	@ 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, #-20]
	str	r1, [fp, #-16]
	ldr	r2, .L3
	ldr	r3, .L3+4
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	-1571644103
	.word	1066524486
	.size	ToRad, .-ToRad
	.global	__aeabi_ddiv
	.align	2
	.global	ToDeg
	.syntax unified
	.arm
	.fpu softvfp
	.type	ToDeg, %function
ToDeg:
	@ 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, #-20]
	str	r1, [fp, #-16]
	mov	r2, #0
	ldr	r3, .L7
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L7+4
	ldr	r3, .L7+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	1080459264
	.word	1413754136
	.word	1074340347
	.size	ToDeg, .-ToDeg
	.global	__aeabi_dsub
	.global	__aeabi_d2f
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"brng raw %f \012\000"
	.global	__aeabi_d2iz
	.align	2
.LC1:
	.ascii	"brng raw %i \012\000"
	.global	__aeabi_i2d
	.text
	.align	2
	.global	heading
	.syntax unified
	.arm
	.fpu softvfp
	.type	heading, %function
heading:
	@ args = 16, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #72
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	ToRad
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	ToRad
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	ldmib	fp, {r0-r1}
	bl	ToRad
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	ToRad
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	sin
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	cos
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2f
	mov	r4, r0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	atan2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	ToDeg
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, .L11
	bl	printf
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	add	r1, r3, #360
	ldr	r3, .L11+8
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #8
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	sub	r2, r1, r2
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	-1240768329
	.size	heading, .-heading
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Heading of runway is: %.2f\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r2, .L15
	ldr	r3, .L15+4
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, .L15+24
	ldr	r3, .L15+28
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	heading
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L15+32
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	-904623192
	.word	1078986690
	.word	1343603209
	.word	-1070207064
	.word	1726233256
	.word	1078986936
	.word	951352436
	.word	-1070206877
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
