	.file	"162297.c"
	.intel_syntax noprefix
	.text
	.globl	getStartingRoot
	.type	getStartingRoot, @function
getStartingRoot:
.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 -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 1
.L4:
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, rax
	cmp	QWORD PTR -24[rbp], rax
	jl	.L2
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	imul	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jge	.L2
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L5
.L2:
	add	QWORD PTR -8[rbp], 2
	jmp	.L4
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getStartingRoot, .-getStartingRoot
	.section	.rodata
	.align 8
.LC0:
	.string	"%li*%li = %lli <= %lli < %lli = %li*%li\n"
	.text
	.globl	testGetStartingRoot
	.type	testGetStartingRoot, @function
testGetStartingRoot:
.LFB1:
	.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 -40[rbp]
	mov	rdi, rax
	call	getStartingRoot
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 2
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	imul	rax, rax
	mov	QWORD PTR -8[rbp], rax
	mov	rdi, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -32[rbp]
	push	QWORD PTR -16[rbp]
	push	QWORD PTR -16[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	testGetStartingRoot, .-testGetStartingRoot
	.globl	spiralToCartesian
	.type	spiralToCartesian, @function
spiralToCartesian:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	getStartingRoot
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 1
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	add	rax, rcx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 1
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	add	rax, rcx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L8
.L14:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jl	.L9
	add	QWORD PTR -56[rbp], 1
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cmp	QWORD PTR -40[rbp], rax
	jge	.L11
	sub	QWORD PTR -48[rbp], 1
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	add	rax, rdx
	cmp	QWORD PTR -40[rbp], rax
	jge	.L12
	sub	QWORD PTR -56[rbp], 1
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	add	rax, rdx
	cmp	QWORD PTR -40[rbp], rax
	jge	.L13
	add	QWORD PTR -48[rbp], 1
	jmp	.L10
.L13:
	add	QWORD PTR -56[rbp], 1
.L10:
	add	QWORD PTR -40[rbp], 1
.L8:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -80[rbp]
	jl	.L14
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	spiralToCartesian, .-spiralToCartesian
	.section	.rodata
	.align 8
.LC1:
	.string	"size %li, spiral position %lli -> expected (%li, %li), got (%li, %li)\n"
	.text
	.globl	testSpiralToCartesian
	.type	testSpiralToCartesian, @function
testSpiralToCartesian:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	spiralToCartesian
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rsi, QWORD PTR -8[rbp]
	mov	r8, QWORD PTR -16[rbp]
	mov	rdi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	testSpiralToCartesian, .-testSpiralToCartesian
	.section	.rodata
.LC2:
	.string	"%li %lli"
.LC3:
	.string	"Line = %li, column = %li.\n"
	.text
	.globl	main
	.type	main, @function
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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 1
	call	testGetStartingRoot
	mov	edi, 3
	call	testGetStartingRoot
	mov	edi, 9
	call	testGetStartingRoot
	mov	edi, 10
	call	testGetStartingRoot
	mov	ecx, 2
	mov	edx, 2
	mov	esi, 1
	mov	edi, 3
	call	testSpiralToCartesian
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 3
	mov	edi, 3
	call	testSpiralToCartesian
	mov	ecx, 3
	mov	edx, 3
	mov	esi, 9
	mov	edi, 3
	call	testSpiralToCartesian
	mov	ecx, 4
	mov	edx, 4
	mov	esi, 9
	mov	edi, 5
	call	testSpiralToCartesian
	mov	ecx, 4
	mov	edx, 5
	mov	esi, 10
	mov	edi, 5
	call	testSpiralToCartesian
	lea	rdx, -56[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	spiralToCartesian
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -56[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L18:
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	jne	.L19
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"162297.c"
	.text
	.align	2
	.global	getStartingRoot
	.syntax unified
	.arm
	.fpu softvfp
	.type	getStartingRoot, %function
getStartingRoot:
	@ 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
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L2
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r2, r2, #2
	mul	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L2
	ldr	r3, [fp, #-8]
	b	.L5
.L2:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	b	.L4
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getStartingRoot, .-getStartingRoot
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%li*%li = %lli <= %lli < %lli = %li*%li\012\000"
	.text
	.align	2
	.global	testGetStartingRoot
	.syntax unified
	.arm
	.fpu softvfp
	.type	testGetStartingRoot, %function
testGetStartingRoot:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	getStartingRoot
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	str	r3, [sp, #28]
	ldr	r3, [fp, #-24]
	str	r3, [sp, #24]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L7
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	testGetStartingRoot, .-testGetStartingRoot
	.align	2
	.global	spiralToCartesian
	.syntax unified
	.arm
	.fpu softvfp
	.type	spiralToCartesian, %function
spiralToCartesian:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	getStartingRoot
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r1, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r1, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	b	.L10
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L12
.L13:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L14
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L12
.L14:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L15
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L12
.L15:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L12:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L16
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-40]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	spiralToCartesian, .-spiralToCartesian
	.section	.rodata
	.align	2
.LC1:
	.ascii	"size %li, spiral position %lli -> expected (%li, %l"
	.ascii	"i), got (%li, %li)\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	testSpiralToCartesian
	.syntax unified
	.arm
	.fpu softvfp
	.type	testSpiralToCartesian, %function
testSpiralToCartesian:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	bl	spiralToCartesian
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	ldr	r0, .L20+4
	bl	printf
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC1
	.size	testSpiralToCartesian, .-testSpiralToCartesian
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%li %lli\000"
	.align	2
.LC4:
	.ascii	"Line = %li, column = %li.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.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, #48
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #1
	mov	r1, #0
	bl	testGetStartingRoot
	mov	r0, #3
	mov	r1, #0
	bl	testGetStartingRoot
	mov	r0, #9
	mov	r1, #0
	bl	testGetStartingRoot
	mov	r0, #10
	mov	r1, #0
	bl	testGetStartingRoot
	mov	r3, #2
	str	r3, [sp, #4]
	mov	r3, #2
	str	r3, [sp]
	mov	r2, #1
	mov	r3, #0
	mov	r0, #3
	bl	testSpiralToCartesian
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #3
	str	r3, [sp]
	mov	r2, #3
	mov	r3, #0
	mov	r0, #3
	bl	testSpiralToCartesian
	mov	r3, #3
	str	r3, [sp, #4]
	mov	r3, #3
	str	r3, [sp]
	mov	r2, #9
	mov	r3, #0
	mov	r0, #3
	bl	testSpiralToCartesian
	mov	r3, #4
	str	r3, [sp, #4]
	mov	r3, #4
	str	r3, [sp]
	mov	r2, #9
	mov	r3, #0
	mov	r0, #5
	bl	testSpiralToCartesian
	mov	r3, #4
	str	r3, [sp, #4]
	mov	r3, #5
	str	r3, [sp]
	mov	r2, #10
	mov	r3, #0
	mov	r0, #5
	bl	testSpiralToCartesian
	sub	r2, fp, #28
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L27+4
	bl	__isoc99_scanf
	b	.L23
.L24:
	ldr	r1, [fp, #-40]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r0, fp, #16
	bl	spiralToCartesian
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, .L27+8
	bl	printf
	sub	r2, fp, #28
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L27+4
	bl	__isoc99_scanf
.L23:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
