	.file	"782601.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\350\257\267\350\276\223\345\205\245%d\344\270\252\345\255\227\347\254\246\344\270\262:\n"
.LC1:
	.string	"\346\216\222\345\272\217\345\220\216,\345\216\237\345\255\227\347\254\246\344\270\262:"
.LC2:
	.string	"\346\216\222\345\272\217\345\220\216,\346\214\207\351\222\210\346\225\260\347\273\204:"
	.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
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -220[rbp], 0
	jmp	.L2
.L3:
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -220[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	QWORD PTR -208[rbp+rax*8], rdx
	add	DWORD PTR -220[rbp], 1
.L2:
	cmp	DWORD PTR -220[rbp], 4
	jle	.L3
	mov	esi, 5
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -220[rbp], 0
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR stdin[rip]
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rax, QWORD PTR -208[rbp+rax*8]
	mov	esi, 30
	mov	rdi, rax
	call	fgets@PLT
	add	DWORD PTR -220[rbp], 1
.L4:
	cmp	DWORD PTR -220[rbp], 4
	jle	.L5
	lea	rax, -208[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	sort
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -220[rbp], 0
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rsi, -160[rbp]
	mov	eax, DWORD PTR -220[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	add	rax, rax
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	DWORD PTR -220[rbp], 1
.L6:
	cmp	DWORD PTR -220[rbp], 4
	jle	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -220[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rax, QWORD PTR -208[rbp+rax*8]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	add	DWORD PTR -220[rbp], 1
.L8:
	cmp	DWORD PTR -220[rbp], 4
	jle	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	sort
	.type	sort, @function
sort:
.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	DWORD PTR -16[rbp], 0
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jle	.L15
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L15:
	add	DWORD PTR -12[rbp], 1
.L14:
	cmp	DWORD PTR -12[rbp], 4
	jle	.L16
	add	DWORD PTR -16[rbp], 1
.L13:
	cmp	DWORD PTR -16[rbp], 4
	jle	.L17
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sort, .-sort
	.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	"782601.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\350\257\267\350\276\223\345\205\245%d\344\270\252\345"
	.ascii	"\255\227\347\254\246\344\270\262:\012\000"
	.align	2
.LC1:
	.ascii	"\346\216\222\345\272\217\345\220\216,\345\216\237\345"
	.ascii	"\255\227\347\254\246\344\270\262:\000"
	.align	2
.LC2:
	.ascii	"\346\216\222\345\272\217\345\220\216,\346\214\207\351"
	.ascii	"\222\210\346\225\260\347\273\204:\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 = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L2
.L3:
	sub	r1, fp, #160
	ldr	r2, [fp, #-188]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-176]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L2:
	ldr	r3, [fp, #-188]
	cmp	r3, #4
	ble	.L3
	mov	r1, #5
	ldr	r0, .L12+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L4
.L5:
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-176]
	ldr	r2, .L12+8
	ldr	r2, [r2]
	mov	r1, #30
	mov	r0, r3
	bl	fgets
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L4:
	ldr	r3, [fp, #-188]
	cmp	r3, #4
	ble	.L5
	sub	r3, fp, #180
	str	r3, [fp, #-184]
	ldr	r0, [fp, #-184]
	bl	sort
	ldr	r0, .L12+12
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L6
.L7:
	sub	r1, fp, #160
	ldr	r2, [fp, #-188]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, .L12+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L6:
	ldr	r3, [fp, #-188]
	cmp	r3, #4
	ble	.L7
	ldr	r0, .L12+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L8
.L9:
	ldr	r3, [fp, #-188]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-176]
	ldr	r2, .L12+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L8:
	ldr	r3, [fp, #-188]
	cmp	r3, #4
	ble	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	stdout
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort, %function
sort:
	@ 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, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L15
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L16
.L18:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	ble	.L17
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L18
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L19
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sort, .-sort
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
