	.file	"382322.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld"
.LC3:
	.string	"%lld "
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 168
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L28:
	mov	rax, rsp
	mov	rbx, rax
	lea	rax, -136[rbp]
	lea	rcx, -132[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -132[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	movsx	rax, edx
	mov	r12, rax
	mov	r13d, 0
	movsx	rax, edx
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L3:
	cmp	rsp, rcx
	je	.L4
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L3
.L4:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L5
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L5:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -96[rbp], rax
	mov	edx, DWORD PTR -136[rbp]
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -176[rbp], rax
	mov	QWORD PTR -168[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L6:
	cmp	rsp, rcx
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
.L7:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L8
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L8:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -136[rbp]
	add	edx, eax
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -184[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L9:
	cmp	rsp, rcx
	je	.L10
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L9
.L10:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L11
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L11:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -108[rbp], 1
.L12:
	mov	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jl	.L13
	mov	DWORD PTR -112[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -112[rbp], 1
.L14:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -112[rbp], eax
	jl	.L15
	mov	DWORD PTR -116[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	jmp	.L16
.L19:
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	rcx, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	cmp	rcx, rax
	jle	.L17
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	rcx, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	mov	QWORD PTR [rdx+rax*8], rcx
	add	DWORD PTR -116[rbp], 1
	add	DWORD PTR -124[rbp], 1
	jmp	.L16
.L17:
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	rcx, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	mov	QWORD PTR [rdx+rax*8], rcx
	add	DWORD PTR -120[rbp], 1
	add	DWORD PTR -124[rbp], 1
.L16:
	mov	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jge	.L18
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L19
.L18:
	mov	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jge	.L20
	jmp	.L21
.L22:
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	rcx, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	mov	QWORD PTR [rdx+rax*8], rcx
	add	DWORD PTR -124[rbp], 1
	add	DWORD PTR -116[rbp], 1
.L21:
	mov	eax, DWORD PTR -132[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L22
	jmp	.L23
.L20:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jge	.L23
	jmp	.L24
.L25:
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	rcx, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	mov	QWORD PTR [rdx+rax*8], rcx
	add	DWORD PTR -124[rbp], 1
	add	DWORD PTR -120[rbp], 1
.L24:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L25
.L23:
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -132[rbp]
	add	eax, edx
	mov	DWORD PTR -128[rbp], eax
	jmp	.L26
.L27:
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -128[rbp], 1
.L26:
	cmp	DWORD PTR -128[rbp], 0
	jns	.L27
	mov	edi, 10
	call	putchar@PLT
	mov	rsp, rbx
.L2:
	mov	eax, DWORD PTR -140[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -140[rbp], edx
	test	eax, eax
	jne	.L28
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"382322.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d %d\000"
	.align	2
.LC2:
	.ascii	"%lld\000"
	.align	2
.LC3:
	.ascii	"%lld \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L22+4
	bl	__isoc99_scanf
	b	.L2
.L19:
	mov	r3, sp
	mov	r4, r3
	sub	r2, fp, #72
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	ip, [fp, #-68]
	sub	r3, ip, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-36]
	ldr	ip, [fp, #-72]
	sub	r3, ip, #1
	str	r3, [fp, #-32]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-72]
	add	ip, r2, r3
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L3
.L4:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L4
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L5
.L6:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L22+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L7
.L10:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-28]
	ldr	r1, [fp, #-56]
	lsl	r1, r1, #3
	add	r1, r0, r1
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L8
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-20]
	ldr	r1, [fp, #-60]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	b	.L7
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-20]
	ldr	r1, [fp, #-60]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L7:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L9
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L10
.L9:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L11
	b	.L12
.L13:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-20]
	ldr	r1, [fp, #-60]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L12:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L13
	b	.L14
.L11:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bge	.L14
	b	.L15
.L16:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-20]
	ldr	r1, [fp, #-60]
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L15:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L16
.L14:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-64]
	b	.L17
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L22+16
	bl	printf
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
.L17:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L18
	mov	r0, #10
	bl	putchar
	mov	sp, r4
.L2:
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	str	r2, [fp, #-76]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
