	.file	"631436.c"
	.intel_syntax noprefix
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L2
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"%d\n"
	.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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1020016[rbp]
	mov	edx, 1020000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -1020024[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -1020020[rbp], 0
	jmp	.L5
.L6:
	lea	rcx, -1020016[rbp]
	mov	eax, DWORD PTR -1020020[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
	mov	eax, 0
	call	gets@PLT
	add	DWORD PTR -1020020[rbp], 1
.L5:
	mov	eax, DWORD PTR -1020024[rbp]
	cmp	DWORD PTR -1020020[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR -1020024[rbp]
	movsx	rsi, eax
	lea	rax, -1020016[rbp]
	lea	rcx, cmp[rip]
	mov	edx, 51
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -1020020[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -1020020[rbp]
	add	eax, 1
	lea	rcx, -1020016[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, -1020016[rbp]
	mov	eax, DWORD PTR -1020020[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	.L8
	lea	rcx, -1020016[rbp]
	mov	eax, DWORD PTR -1020020[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
.L8:
	add	DWORD PTR -1020020[rbp], 1
.L7:
	mov	eax, DWORD PTR -1020024[rbp]
	cmp	DWORD PTR -1020020[rbp], eax
	jl	.L9
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"631436.c"
	.text
	.align	2
	.global	cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bne	.L2
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	b	.L3
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cmp, .-cmp
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1020016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1019904
	sub	sp, sp, #112
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	sub	r3, r3, #100
	ldr	r2, .L12+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	sub	r3, r3, #108
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-104]
	b	.L5
.L6:
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #100
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r1, [r3, #-104]
	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	gets
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	str	r3, [r2, #-104]
.L5:
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-108]
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	ldr	r2, [r2, #-104]
	cmp	r2, r3
	blt	.L6
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-108]
	mov	r1, r3
	sub	r0, fp, #1019904
	sub	r0, r0, #4
	sub	r0, r0, #100
	ldr	r3, .L12+12
	mov	r2, #51
	bl	qsort
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-104]
	b	.L7
.L9:
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #100
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r1, [r3, #-104]
	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, #-104]
	add	r1, r3, #1
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #100
	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	.L8
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	sub	r2, r2, #100
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r1, [r3, #-104]
	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
.L8:
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	str	r3, [r2, #-104]
.L7:
	sub	r3, fp, #1019904
	sub	r3, r3, #4
	ldr	r3, [r3, #-108]
	sub	r2, fp, #1019904
	sub	r2, r2, #4
	ldr	r2, [r2, #-104]
	cmp	r2, r3
	blt	.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	.LC1
	.word	1020000
	.word	.LC0
	.word	cmp
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
