	.file	"162753.c"
	.intel_syntax noprefix
	.text
	.globl	endSign
	.bss
	.align 4
	.type	endSign, @object
	.size	endSign, 4
endSign:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d,"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 944
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -944[rbp], 0
	call	getnum
	mov	DWORD PTR -936[rbp], eax
	mov	eax, DWORD PTR -936[rbp]
	cdqe
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -928[rbp], rax
	mov	DWORD PTR -944[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -944[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -928[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -944[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -944[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -928[rbp]
	add	rax, rdx
	mov	QWORD PTR 8[rax], 0
	add	DWORD PTR -944[rbp], 1
.L2:
	mov	eax, DWORD PTR -944[rbp]
	cmp	eax, DWORD PTR -936[rbp]
	jl	.L3
	mov	DWORD PTR endSign[rip], 0
.L6:
	call	getnum
	mov	DWORD PTR -932[rbp], eax
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -920[rbp], rax
	call	getnum
	mov	rdx, QWORD PTR -920[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -932[rbp]
	cdqe
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -928[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -920[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -932[rbp]
	cdqe
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -928[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -920[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR endSign[rip]
	test	eax, eax
	jne	.L16
	jmp	.L6
.L16:
	nop
	mov	DWORD PTR -944[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -940[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -940[rbp]
	cdqe
	mov	DWORD PTR -912[rbp+rax*4], 0
	add	DWORD PTR -940[rbp], 1
.L8:
	cmp	DWORD PTR -940[rbp], 99
	jle	.L9
	mov	eax, DWORD PTR -944[rbp]
	add	eax, 1
	cdqe
	mov	DWORD PTR -912[rbp+rax*4], 1
	mov	eax, DWORD PTR -944[rbp]
	lea	ecx, 1[rax]
	lea	rdx, -912[rbp]
	mov	rax, QWORD PTR -928[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getLength
	mov	edx, DWORD PTR -944[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -512[rbp+rdx*4], eax
	add	DWORD PTR -944[rbp], 1
.L7:
	mov	eax, DWORD PTR -944[rbp]
	cmp	eax, DWORD PTR -936[rbp]
	jl	.L10
	mov	DWORD PTR -944[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -944[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -944[rbp], 1
.L11:
	mov	eax, DWORD PTR -936[rbp]
	sub	eax, 1
	cmp	DWORD PTR -944[rbp], eax
	jl	.L12
	mov	eax, DWORD PTR -944[rbp]
	cdqe
	mov	eax, DWORD PTR -512[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	getLength
	.type	getLength, @function
getLength:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -16[rbp], 0
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 4
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L20
	mov	eax, 0
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getLength
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L20
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L21
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getLength, .-getLength
	.globl	getnum
	.type	getnum, @function
getnum:
.LFB8:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L23
.L25:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	movsx	eax, BYTE PTR -5[rbp]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR -4[rbp], eax
.L23:
	call	getchar@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], -1
	je	.L24
	cmp	BYTE PTR -5[rbp], 10
	je	.L24
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -5[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L25
.L24:
	cmp	BYTE PTR -5[rbp], 10
	je	.L26
	cmp	BYTE PTR -5[rbp], -1
	jne	.L27
.L26:
	mov	DWORD PTR endSign[rip], 1
.L27:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getnum, .-getnum
	.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	"162753.c"
	.text
	.comm	endSign,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d,\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 928
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #928
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-932]
	bl	getnum
	str	r0, [fp, #-924]
	ldr	r3, [fp, #-924]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-920]
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L2
.L3:
	ldr	r3, [fp, #-932]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-920]
	add	r3, r2, r3
	ldr	r2, [fp, #-932]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-932]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-920]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L2:
	ldr	r2, [fp, #-932]
	ldr	r3, [fp, #-924]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L17+4
	mov	r2, #0
	str	r2, [r3]
.L6:
	bl	getnum
	str	r0, [fp, #-916]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-912]
	bl	getnum
	mov	r2, r0
	ldr	r3, [fp, #-912]
	str	r2, [r3]
	ldr	r3, [fp, #-916]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r2, [fp, #-920]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-912]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-916]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r2, [fp, #-920]
	add	r3, r2, r3
	ldr	r2, [fp, #-912]
	str	r2, [r3, #4]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	b	.L6
.L16:
	nop
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-928]
	b	.L8
.L9:
	ldr	r3, [fp, #-928]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-904]
	ldr	r3, [fp, #-928]
	add	r3, r3, #1
	str	r3, [fp, #-928]
.L8:
	ldr	r3, [fp, #-928]
	cmp	r3, #99
	ble	.L9
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #-904]
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	sub	r2, fp, #908
	mov	r1, r3
	ldr	r0, [fp, #-920]
	bl	getLength
	mov	r2, r0
	ldr	r3, [fp, #-932]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-504]
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L7:
	ldr	r2, [fp, #-932]
	ldr	r3, [fp, #-924]
	cmp	r2, r3
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-932]
	b	.L11
.L12:
	ldr	r3, [fp, #-932]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-504]
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
	ldr	r3, [fp, #-932]
	add	r3, r3, #1
	str	r3, [fp, #-932]
.L11:
	ldr	r3, [fp, #-924]
	sub	r3, r3, #1
	ldr	r2, [fp, #-932]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-932]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-504]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	endSign
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.align	2
	.global	getLength
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLength, %function
getLength:
	@ args = 0, 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L21
.L23:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	getLength
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getLength, .-getLength
	.align	2
	.global	getnum
	.syntax unified
	.arm
	.fpu softvfp
	.type	getnum, %function
getnum:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L27:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r2, r3
	sub	r3, r3, #48
	str	r3, [fp, #-8]
.L25:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L26
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L27
.L26:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L28
	ldr	r3, .L30
	mov	r2, #1
	str	r2, [r3]
.L28:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	endSign
	.size	getnum, .-getnum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
