	.file	"201126.c"
	.intel_syntax noprefix
	.text
	.globl	cartesian_neighbor
	.type	cartesian_neighbor, @function
cartesian_neighbor:
.LFB6:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -28[rbp], 8
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 4
	mov	edi, 2
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -32[rbp], 1
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	edx, DWORD PTR -40[rbp]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	edx, DWORD PTR -40[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	edx, DWORD PTR -40[rbp]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	edx, DWORD PTR -40[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	edx, DWORD PTR -40[rbp]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -36[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 56
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	edx, DWORD PTR -40[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cartesian_neighbor, .-cartesian_neighbor
	.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	"201126.c"
	.text
	.align	2
	.global	cartesian_neighbor
	.syntax unified
	.arm
	.fpu softvfp
	.type	cartesian_neighbor, %function
cartesian_neighbor:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r1, #4
	mov	r0, #2
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #28
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #28
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, [fp, #-36]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	cartesian_neighbor, .-cartesian_neighbor
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
