	.file	"262319.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"input22.txt"
	.section	.data.rel.local,"aw"
	.align 8
	.type	fname, @object
	.size	fname, 8
fname:
	.quad	.LC0
	.local	cube
	.comm	cube,126000,32
	.local	temp
	.comm	temp,9800,32
	.local	len
	.comm	len,4,4
	.text
	.type	intersect, @function
intersect:
.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jg	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jl	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jg	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jl	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jg	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jl	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	cmovge	eax, edx
	mov	r9d, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	cmovle	eax, edx
	mov	r8d, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	cmovge	eax, edx
	mov	edi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	cmovle	eax, edx
	mov	esi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	cmovge	eax, edx
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	cmovg	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	neg	eax
	mov	r10d, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], r9d
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], r8d
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], edi
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 12[rax], esi
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 16[rax], ecx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 24[rax], r10d
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	intersect, .-intersect
	.type	find, @function
find:
.LFB1:
	.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 -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L7:
	add	DWORD PTR -12[rbp], 1
	add	QWORD PTR -8[rbp], 28
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	edx, eax
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jne	.L7
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L8
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find, .-find
	.section	.rodata
	.align 8
.LC1:
	.string	"Cube counter array overflow while adding (max=%d)\n"
	.text
	.type	add, @function
add:
.LFB2:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L12
.L11:
	mov	edx, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	find
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jge	.L14
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR 24[rdx], eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	jmp	.L12
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	add, .-add
	.section	.rodata
	.align 8
.LC2:
	.string	"Cube counter array overflow while merging (max=%d)\n"
	.text
	.type	merge, @function
merge:
.LFB3:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	DWORD PTR -60[rbp], r8d
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L16
.L21:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	find
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 24[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 24[rax]
	lea	edx, [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jge	.L19
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, 1[rax]
	mov	DWORD PTR -32[rbp], ecx
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	edx, DWORD PTR 24[rdx]
	mov	DWORD PTR 24[rax], edx
	jmp	.L17
.L19:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -60[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L20
.L17:
	add	DWORD PTR -28[rbp], 1
.L16:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L21
	mov	eax, DWORD PTR -32[rbp]
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	merge, .-merge
	.section	.rodata
	.align 8
.LC3:
	.string	"%3s x=%d..%d,y=%d..%d,z=%d..%d "
	.text
	.type	read, @function
read:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -112[rbp], 0
	jmp	.L23
.L32:
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, BYTE PTR -10[rbp]
	test	al, al
	jne	.L24
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, -1
.L25:
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 2
	lea	rdx, cube[rip]
	lea	rcx, [rax+rdx]
	lea	rdx, -80[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	intersect
	test	al, al
	je	.L27
	mov	edx, DWORD PTR -108[rbp]
	lea	rax, -80[rbp]
	mov	ecx, 350
	mov	rsi, rax
	lea	rdi, temp[rip]
	call	add
	mov	DWORD PTR -108[rbp], eax
.L27:
	add	DWORD PTR -104[rbp], 1
.L26:
	mov	eax, DWORD PTR len[rip]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L28
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 1
	jne	.L29
	mov	edx, DWORD PTR -108[rbp]
	lea	rax, -48[rbp]
	mov	ecx, 350
	mov	rsi, rax
	lea	rdi, temp[rip]
	call	add
	mov	DWORD PTR -108[rbp], eax
.L29:
	mov	eax, DWORD PTR len[rip]
	mov	edx, DWORD PTR -108[rbp]
	mov	r8d, 4500
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, temp[rip]
	lea	rdi, cube[rip]
	call	merge
	mov	DWORD PTR len[rip], eax
	add	DWORD PTR -112[rbp], 1
.L23:
	cmp	DWORD PTR -156[rbp], 0
	je	.L30
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jge	.L31
.L30:
	lea	r8, -128[rbp]
	lea	rdi, -132[rbp]
	lea	rcx, -136[rbp]
	lea	rdx, -12[rbp]
	mov	rax, QWORD PTR -152[rbp]
	sub	rsp, 8
	lea	rsi, -116[rbp]
	push	rsi
	lea	rsi, -120[rbp]
	push	rsi
	lea	rsi, -124[rbp]
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 32
	cmp	eax, 7
	je	.L32
.L31:
	mov	QWORD PTR -96[rbp], 0
	lea	rax, cube[rip]
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -100[rbp], 0
	jmp	.L33
.L34:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 24[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, DWORD PTR [rax]
	mov	eax, ecx
	sub	eax, esi
	add	eax, 1
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, DWORD PTR 8[rax]
	mov	eax, ecx
	sub	eax, esi
	add	eax, 1
	cdqe
	imul	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	eax, ecx
	sub	eax, esi
	add	eax, 1
	cdqe
	imul	rax, rdx
	add	QWORD PTR -96[rbp], rax
	add	DWORD PTR -100[rbp], 1
	add	QWORD PTR -88[rbp], 28
.L33:
	mov	eax, DWORD PTR len[rip]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L34
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	read, .-read
	.section	.rodata
.LC4:
	.string	"r"
.LC5:
	.string	"Part 1: %lld\n"
.LC6:
	.string	"Part 2: %lld\n"
	.text
	.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, 16
	mov	rax, QWORD PTR fname[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	read
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	read
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	"262319.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"input22.txt\000"
	.data
	.align	2
	.type	fname, %object
	.size	fname, 4
fname:
	.word	.LC0
	.local	cube
	.comm	cube,126000,4
	.local	temp
	.comm	temp,9800,4
	.local	len
	.comm	len,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intersect, %function
intersect:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	blt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	bgt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	cmp	r2, r3
	blt	.L2
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r2, r3
	movge	r5, r2
	movlt	r5, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	movlt	r4, r2
	movge	r4, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	movge	lr, r2
	movlt	lr, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	movlt	ip, r2
	movge	ip, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	cmp	r2, r3
	movge	r0, r2
	movlt	r0, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	movlt	r1, r2
	movge	r1, r3
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #24]
	rsb	r2, r3, #0
	ldr	r3, [fp, #-56]
	str	r5, [r3]
	ldr	r3, [fp, #-56]
	str	r4, [r3, #4]
	ldr	r3, [fp, #-56]
	str	lr, [r3, #8]
	ldr	r3, [fp, #-56]
	str	ip, [r3, #12]
	ldr	r3, [fp, #-56]
	str	r0, [r3, #16]
	ldr	r3, [fp, #-56]
	str	r1, [r3, #20]
	ldr	r3, [fp, #-56]
	str	r2, [r3, #24]
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	intersect, .-intersect
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find, %function
find:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L5
.L7:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #28
	str	r3, [fp, #-8]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L6
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	bne	.L7
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-8]
	b	.L9
.L8:
	mov	r3, #0
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	find, .-find
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Cube counter array overflow while adding (max=%d)\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-24]
	b	.L12
.L11:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	find
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	b	.L12
.L13:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L14
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-20]
	mov	ip, r2
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	b	.L12
.L14:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L15+4
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stderr
	.word	.LC1
	.size	add, .-add
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Cube counter array overflow while merging (max=%d)\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge, %function
merge:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L23:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	find
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #24]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r3, [r3, #24]
	add	r2, r1, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	b	.L19
.L20:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L21
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r1, r3, r2
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	mov	ip, r3
	mov	lr, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	b	.L19
.L21:
	ldr	r3, .L24
	ldr	r3, [r3]
	ldr	r2, [fp, #4]
	ldr	r1, .L24+4
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L22
.L19:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-16]
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC2
	.size	merge, .-merge
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%3s x=%d..%d,y=%d..%d,z=%d..%d \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read, %function
read:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #152
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L27
.L36:
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-36]
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	b	.L29
.L28:
	mvn	r3, #0
.L29:
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L30
.L32:
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L41+4
	add	r3, r3, r2
	sub	r2, fp, #84
	sub	r1, fp, #56
	mov	r0, r3
	bl	intersect
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	sub	r1, fp, #84
	ldr	r3, .L41+8
	ldr	r2, [fp, #-108]
	ldr	r0, .L41+12
	bl	add
	str	r0, [fp, #-108]
.L31:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L30:
	ldr	r3, .L41+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L33
	sub	r1, fp, #56
	ldr	r3, .L41+8
	ldr	r2, [fp, #-108]
	ldr	r0, .L41+12
	bl	add
	str	r0, [fp, #-108]
.L33:
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, .L41+20
	str	r3, [sp]
	ldr	r3, [fp, #-108]
	ldr	r1, .L41+12
	ldr	r0, .L41+4
	bl	merge
	mov	r3, r0
	ldr	r2, .L41+16
	str	r3, [r2]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L27:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L34
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-148]
	cmp	r2, r3
	bge	.L35
.L34:
	sub	r1, fp, #136
	sub	r2, fp, #28
	sub	r3, fp, #116
	str	r3, [sp, #16]
	sub	r3, fp, #120
	str	r3, [sp, #12]
	sub	r3, fp, #124
	str	r3, [sp, #8]
	sub	r3, fp, #128
	str	r3, [sp, #4]
	sub	r3, fp, #132
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L41+24
	ldr	r0, [fp, #-144]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #7
	beq	.L36
.L35:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, .L41+4
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L37
.L38:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #24]
	mov	r4, r3
	asr	r5, r4, #31
	ldr	r3, [fp, #-100]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r2, r3
	asr	r3, r2, #31
	mul	r0, r2, r5
	mul	r1, r4, r3
	add	ip, r0, r1
	umull	r0, r1, r4, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, [fp, #-100]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #8]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r4, r3
	asr	r5, r4, #31
	mul	r2, r4, r1
	mul	r3, r0, r5
	add	ip, r2, r3
	umull	r2, r3, r0, r4
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-100]
	ldr	r0, [r1, #20]
	ldr	r1, [fp, #-100]
	ldr	r1, [r1, #16]
	sub	r1, r0, r1
	add	r1, r1, #1
	mov	r4, r1
	asr	r5, r4, #31
	mul	r0, r4, r3
	mul	r1, r2, r5
	add	ip, r0, r1
	umull	r0, r1, r2, r4
	add	r3, ip, r1
	mov	r1, r3
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r6, r2, r0
	adc	r7, r3, r1
	str	r6, [fp, #-92]
	str	r7, [fp, #-88]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-100]
	add	r3, r3, #28
	str	r3, [fp, #-100]
.L37:
	ldr	r3, .L41+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	blt	.L38
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	ldr	r1, .L41
	ldr	r0, [r1]
	ldr	r1, [fp, #-24]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC4
	.word	cube
	.word	350
	.word	temp
	.word	len
	.word	4500
	.word	.LC3
	.size	read, .-read
	.section	.rodata
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"Part 1: %lld\012\000"
	.align	2
.LC7:
	.ascii	"Part 2: %lld\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L45
	ldr	r3, [r3]
	ldr	r1, .L45+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	mov	r1, #20
	ldr	r0, [fp, #-8]
	bl	read
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+8
	bl	printf
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	read
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L45+12
	bl	printf
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	fname
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
