	.file	"225142917.c"
	.intel_syntax noprefix
	.text
	.globl	NEW
	.type	NEW, @function
NEW:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	NEW, .-NEW
	.section	.rodata
	.align 8
.LC0:
	.string	"\346\234\254\347\250\213\345\272\217\351\234\200\350\246\201\345\234\250\346\216\247\345\210\266\345\217\260\350\276\223\345\205\245\350\213\245\345\271\262\350\241\214\346\225\260\345\255\227(0\345\210\2607\344\271\213\351\227\264\347\232\204\346\225\264\346\225\260)\357\274\214\346\257\217\350\241\214\344\270\244\344\270\252\346\225\260\345\255\227(\346\225\260\345\255\227\351\227\264\347\224\250\347\251\272\346\240\274\351\232\224\345\274\200)\357\274\214\347\224\250\344\272\216\350\241\250\347\244\272\344\270\244\344\270\252\347\202\271\346\230\257\350\277\236\351\200\232\347\232\204\357\274\214\345\246\202\357\274\232\n0 1\n0 2\n0 5\n0 6\n0 7\n1 7\n2 7\n3 4\n3 5\n4 5\n4 6\n4 7"
	.align 8
.LC1:
	.string	"\346\217\220\347\244\272\357\274\232\346\216\247\345\210\266\345\217\260\350\276\223\345\205\245\345\256\214\346\210\220\345\220\216\357\274\214\346\214\211\345\233\236\350\275\246\357\274\214\347\204\266\345\220\216\346\214\211\345\277\253\346\215\267\351\224\256\357\274\232Ctrl + D \357\274\210\344\271\237\345\217\257\350\203\275\346\230\257Ctrl + C \346\210\226 Ctrl + Z\357\274\214\344\270\215\345\220\214\345\271\263\345\217\260\344\270\215\344\270\200\346\240\267\357\274\214\345\244\232\350\257\225\350\257\225\357\274\211"
.LC2:
	.string	"%d %d\n"
	.align 8
.LC3:
	.string	"\350\277\236\346\216\245\345\210\260\350\212\202\347\202\271 %d \347\232\204\350\212\202\347\202\271\346\234\211\357\274\232"
.LC4:
	.string	"%d"
.LC5:
	.string	" -> "
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -68[rbp], 8
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -56[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -96[rbp], rdx
	mov	QWORD PTR -88[rbp], 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -80[rbp], 0
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -48[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	eax, DWORD PTR -80[rbp]
	add	eax, 1
	mov	DWORD PTR -80[rbp], eax
.L7:
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jg	.L8
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -48[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -76[rbp]
	mov	ebx, DWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	NEW
	mov	rdx, QWORD PTR -48[rbp]
	movsx	rcx, ebx
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -48[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -80[rbp]
	mov	ebx, DWORD PTR -76[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	NEW
	mov	rdx, QWORD PTR -48[rbp]
	movsx	rcx, ebx
	mov	QWORD PTR [rdx+rcx*8], rax
.L9:
	lea	rdx, -76[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L10
	mov	DWORD PTR -72[rbp], 0
	jmp	.L11
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -72[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	je	.L12
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	cmp	QWORD PTR -64[rbp], 0
	jne	.L13
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -72[rbp], 1
.L11:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L14
	mov	rsp, r12
	mov	eax, 0
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"225142917.c"
	.text
	.align	2
	.global	NEW
	.syntax unified
	.arm
	.fpu softvfp
	.type	NEW, %function
NEW:
	@ 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, #-16]
	str	r1, [fp, #-20]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	NEW, .-NEW
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\346\234\254\347\250\213\345\272\217\351\234\200\350"
	.ascii	"\246\201\345\234\250\346\216\247\345\210\266\345\217"
	.ascii	"\260\350\276\223\345\205\245\350\213\245\345\271\262"
	.ascii	"\350\241\214\346\225\260\345\255\227(0\345\210\2607"
	.ascii	"\344\271\213\351\227\264\347\232\204\346\225\264\346"
	.ascii	"\225\260)\357\274\214\346\257\217\350\241\214\344\270"
	.ascii	"\244\344\270\252\346\225\260\345\255\227(\346\225\260"
	.ascii	"\345\255\227\351\227\264\347\224\250\347\251\272\346"
	.ascii	"\240\274\351\232\224\345\274\200)\357\274\214\347\224"
	.ascii	"\250\344\272\216\350\241\250\347\244\272\344\270\244"
	.ascii	"\344\270\252\347\202\271\346\230\257\350\277\236\351"
	.ascii	"\200\232\347\232\204\357\274\214\345\246\202\357\274"
	.ascii	"\232\0120 1\0120 2\0120 5\0120 6\0120 7\0121 7\0122"
	.ascii	" 7\0123 4\0123 5\0124 5\0124 6\0124 7\000"
	.align	2
.LC1:
	.ascii	"\346\217\220\347\244\272\357\274\232\346\216\247\345"
	.ascii	"\210\266\345\217\260\350\276\223\345\205\245\345\256"
	.ascii	"\214\346\210\220\345\220\216\357\274\214\346\214\211"
	.ascii	"\345\233\236\350\275\246\357\274\214\347\204\266\345"
	.ascii	"\220\216\346\214\211\345\277\253\346\215\267\351\224"
	.ascii	"\256\357\274\232Ctrl + D \357\274\210\344\271\237\345"
	.ascii	"\217\257\350\203\275\346\230\257Ctrl + C \346\210\226"
	.ascii	" Ctrl + Z\357\274\214\344\270\215\345\220\214\345\271"
	.ascii	"\263\345\217\260\344\270\215\344\270\200\346\240\267"
	.ascii	"\357\274\214\345\244\232\350\257\225\350\257\225\357"
	.ascii	"\274\211\000"
	.align	2
.LC2:
	.ascii	"%d %d\012\000"
	.align	2
.LC3:
	.ascii	"\350\277\236\346\216\245\345\210\260\350\212\202\347"
	.ascii	"\202\271 %d \347\232\204\350\212\202\347\202\271\346"
	.ascii	"\234\211\357\274\232\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	" -> \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	ldr	r0, .L14+8
	bl	puts
	ldr	r0, .L14+12
	bl	puts
	mov	r3, #8
	str	r3, [fp, #-28]
	ldr	ip, [fp, #-28]
	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, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L4
.L5:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L4:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bgt	.L5
	b	.L6
.L7:
	ldr	r0, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r4, [fp, #-44]
	mov	r1, r3
	bl	NEW
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, r4, lsl #2]
	ldr	r0, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r4, [fp, #-40]
	mov	r1, r3
	bl	NEW
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3, r4, lsl #2]
.L6:
	sub	r2, fp, #40
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L14+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L7
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L8
.L11:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, .L14+20
	bl	printf
	b	.L9
.L10:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L14+28
	bl	printf
.L9:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L10
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L11
	mov	sp, r5
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
