	.file	"760428.c"
	.intel_syntax noprefix
	.text
	.globl	compare
	.type	compare, @function
compare:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L2
	mov	eax, 1
	jmp	.L1
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jnb	.L4
	mov	eax, -1
	jmp	.L1
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L5
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	jmp	.L1
.L5:
.L1:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.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
	lea	r11, -1019904[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1020072[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1020068[rbp], 0
	jmp	.L7
.L8:
	lea	rcx, -1020064[rbp]
	mov	eax, DWORD PTR -1020068[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 4
	add	rax, rdx
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -1020068[rbp], 1
.L7:
	mov	eax, DWORD PTR -1020072[rbp]
	cmp	DWORD PTR -1020068[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR -1020072[rbp]
	movsx	rsi, eax
	lea	rax, -1020064[rbp]
	lea	rcx, compare[rip]
	mov	edx, 51
	mov	rdi, rax
	call	qsort@PLT
	lea	rax, -1020064[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR -1020068[rbp], 1
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -1020068[rbp]
	sub	eax, 1
	lea	rcx, -1020064[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 4
	add	rax, rdx
	lea	rdx, [rcx+rax]
	lea	rsi, -1020064[rbp]
	mov	eax, DWORD PTR -1020068[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	mov	rcx, rax
	sal	rcx, 4
	add	rax, rcx
	add	rax, rsi
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L10
	lea	rcx, -1020064[rbp]
	mov	eax, DWORD PTR -1020068[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	mov	rdx, rax
	sal	rdx, 4
	add	rax, rdx
	add	rax, rcx
	mov	rdi, rax
	call	puts@PLT
.L10:
	add	DWORD PTR -1020068[rbp], 1
.L9:
	mov	eax, DWORD PTR -1020072[rbp]
	cmp	DWORD PTR -1020068[rbp], eax
	jl	.L11
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.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	"760428.c"
	.text
	.align	2
	.global	compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare, %function
compare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bls	.L2
	mov	r3, #1
	b	.L1
.L2:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bcs	.L4
	mvn	r3, #0
	b	.L1
.L4:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bne	.L5
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	b	.L1
.L5:
.L1:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	compare, .-compare
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\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 = 1020064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1019904
	sub	sp, sp, #160
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	sub	r3, r3, #160
	mov	r1, r3
	ldr	r0, .L14+4
	bl	__isoc99_scanf
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-156]
	b	.L7
.L8:
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #152
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r1, [r3, #-156]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #4
	add	r3, r3, r1
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+8
	bl	__isoc99_scanf
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-156]
	add	r3, r3, #1
	str	r3, [r2, #-156]
.L7:
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-160]
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	ldr	r2, [r2, #-156]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-160]
	mov	r1, r3
	sub	r0, fp, #1019904
	sub	r0, r0, #4
	sub	r0, r0, #152
	ldr	r3, .L14+12
	mov	r2, #51
	bl	qsort
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	sub	r3, r3, #152
	mov	r0, r3
	bl	puts
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-156]
	b	.L9
.L11:
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #152
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r1, [r3, #-156]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #4
	add	r3, r3, r1
	add	r0, r2, r3
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-156]
	sub	r1, r3, #1
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #152
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #4
	add	r3, r3, r1
	add	r3, r2, r3
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #152
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r1, [r3, #-156]
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #4
	add	r3, r3, r1
	add	r3, r2, r3
	mov	r0, r3
	bl	puts
.L10:
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-156]
	add	r3, r3, #1
	str	r3, [r2, #-156]
.L9:
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-160]
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	ldr	r2, [r2, #-156]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	compare
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
