	.file	"94513.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d"
.LC2:
	.string	"%s"
	.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, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L18:
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -108[rbp], 0
	lea	rdx, -120[rbp]
	lea	rax, -124[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 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	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L3:
	cmp	rsp, rdx
	je	.L4
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L3
.L4:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L5
	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 -80[rbp], rax
	mov	DWORD PTR -112[rbp], 0
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -112[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -112[rbp], 1
.L6:
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -112[rbp], eax
	jl	.L7
	jmp	.L8
.L9:
	lea	rax, -66[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	lea	rdx, -66[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push
	mov	rdx, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	add	DWORD PTR -108[rbp], 1
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -108[rbp], eax
	jne	.L8
	mov	DWORD PTR -108[rbp], 0
.L8:
	mov	eax, DWORD PTR -124[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -124[rbp], edx
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -100[rbp], 0
	jmp	.L10
.L17:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -116[rbp], 1
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jle	.L12
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -96[rbp], rax
.L12:
	add	DWORD PTR -116[rbp], 1
.L11:
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L13
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	peek
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L14
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, 1
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -104[rbp], eax
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -116[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -80[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -116[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -104[rbp], 1
.L15:
	mov	eax, DWORD PTR -120[rbp]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L16
.L14:
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	pop
	mov	QWORD PTR -96[rbp], rax
.L10:
	mov	eax, DWORD PTR -120[rbp]
	test	eax, eax
	jne	.L17
	mov	rsp, rbx
.L2:
	mov	eax, DWORD PTR -128[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -128[rbp], edx
	test	eax, eax
	jne	.L18
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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
	.globl	push
	.type	push, @function
push:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	QWORD PTR -24[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L23:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pop, .-pop
	.globl	peek
	.type	peek, @function
peek:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, -1
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	peek, .-peek
	.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	"94513.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L18+4
	bl	__isoc99_scanf
	b	.L2
.L15:
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r2, fp, #64
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	ip, [fp, #-64]
	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, #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, #-36]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L3
.L4:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-52]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L3:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L4
	b	.L5
.L6:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L18+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	ldr	r3, [r3, r2, lsl #2]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	push
	mov	r1, r0
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-68]
	sub	r2, r3, #1
	str	r2, [fp, #-68]
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L7
.L14:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L8
.L10:
	ldr	r0, [fp, #-56]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-60]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-60]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-56]
.L9:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L8:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L10
	ldr	r0, [fp, #-56]
	bl	peek
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-44]
	b	.L12
.L13:
	ldr	r3, [fp, #-60]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-60]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L13
.L11:
	ldr	r0, [fp, #-56]
	bl	pop
	str	r0, [fp, #-56]
.L7:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L14
	mov	sp, r4
.L2:
	ldr	r3, [fp, #-72]
	sub	r2, r3, #1
	str	r2, [fp, #-72]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L22
.L21:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L22:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	push, .-push
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pop, .-pop
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	puts
	mvn	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	puts
	mov	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	peek, .-peek
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
