	.file	"535115.c"
	.intel_syntax noprefix
	.text
	.globl	val
	.bss
	.align 32
	.type	val, @object
	.size	val, 1200024
val:
	.zero	1200024
	.globl	sz
	.align 4
	.type	sz, @object
	.size	sz, 4
sz:
	.zero	4
	.globl	sorted
	.align 4
	.type	sorted, @object
	.size	sorted, 4
sorted:
	.zero	4
	.text
	.globl	lb
	.type	lb, @function
lb:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -28[rbp], edi
	mov	r12d, 0
	mov	r13d, DWORD PTR sz[rip]
	jmp	.L2
.L4:
	mov	eax, r13d
	sub	eax, r12d
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	ebx, [r12+rax]
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L3
	lea	r12d, 1[rbx]
	jmp	.L2
.L3:
	mov	r13d, ebx
.L2:
	cmp	r12d, r13d
	jl	.L4
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lb, .-lb
	.globl	ub
	.type	ub, @function
ub:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -28[rbp], edi
	mov	r12d, 0
	mov	r13d, DWORD PTR sz[rip]
	jmp	.L7
.L9:
	mov	eax, r13d
	sub	eax, r12d
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	ebx, [r12+rax]
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L8
	lea	r12d, 1[rbx]
	jmp	.L7
.L8:
	mov	r13d, ebx
.L7:
	cmp	r12d, r13d
	jl	.L9
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ub, .-ub
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L12
	mov	eax, -1
	jmp	.L14
.L12:
	mov	eax, 1
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp, .-cmp
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	r12d, 0
	mov	r13d, 0
	nop
.L17:
	call	__ctype_b_loc@PLT
	mov	r14, QWORD PTR [rax]
	call	getchar@PLT
	mov	ebx, eax
	movsx	rax, ebx
	add	rax, rax
	add	rax, r14
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L16
	cmp	ebx, 45
	jne	.L17
.L16:
	cmp	ebx, 45
	jne	.L18
	mov	r12d, 1
	jmp	.L20
.L18:
	lea	r13d, -48[rbx]
	jmp	.L20
.L21:
	mov	eax, r13d
	sal	eax, 2
	add	eax, r13d
	add	eax, eax
	add	eax, ebx
	lea	r13d, -48[rax]
.L20:
	call	__ctype_b_loc@PLT
	mov	r14, QWORD PTR [rax]
	call	getchar@PLT
	mov	ebx, eax
	movsx	rax, ebx
	add	rax, rax
	add	rax, r14
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L21
	test	r12d, r12d
	je	.L23
	neg	r13d
	jmp	.L23
.L80:
	mov	r12d, 0
	mov	r14d, 0
	nop
.L25:
	call	__ctype_b_loc@PLT
	mov	r15, QWORD PTR [rax]
	call	getchar@PLT
	mov	ebx, eax
	movsx	rax, ebx
	add	rax, rax
	add	rax, r15
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L24
	cmp	ebx, 45
	jne	.L25
.L24:
	cmp	ebx, 45
	jne	.L26
	mov	r12d, 1
	jmp	.L28
.L26:
	lea	r14d, -48[rbx]
	jmp	.L28
.L29:
	mov	eax, r14d
	sal	eax, 2
	add	eax, r14d
	add	eax, eax
	add	eax, ebx
	lea	r14d, -48[rax]
.L28:
	call	__ctype_b_loc@PLT
	mov	r15, QWORD PTR [rax]
	call	getchar@PLT
	mov	ebx, eax
	movsx	rax, ebx
	add	rax, rax
	add	rax, r15
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L29
	test	r12d, r12d
	je	.L30
	neg	r14d
.L30:
	mov	r15d, 0
	mov	ebx, 0
	nop
.L32:
	call	__ctype_b_loc@PLT
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -136[rbp], rax
	call	getchar@PLT
	mov	r12d, eax
	movsx	rax, r12d
	add	rax, rax
	add	rax, QWORD PTR -136[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L31
	cmp	r12d, 45
	jne	.L32
.L31:
	cmp	r12d, 45
	jne	.L33
	mov	r15d, 1
	jmp	.L35
.L33:
	lea	ebx, -48[r12]
	jmp	.L35
.L36:
	mov	eax, ebx
	sal	eax, 2
	add	eax, ebx
	add	eax, eax
	add	eax, r12d
	lea	ebx, -48[rax]
.L35:
	call	__ctype_b_loc@PLT
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -136[rbp], rax
	call	getchar@PLT
	mov	r12d, eax
	movsx	rax, r12d
	add	rax, rax
	add	rax, QWORD PTR -136[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L36
	test	r15d, r15d
	je	.L37
	neg	ebx
.L37:
	cmp	r14d, 6
	ja	.L23
	mov	eax, r14d
	lea	rdx, 0[0+rax*4]
	lea	rax, .L39[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L39[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L39:
	.long	.L23-.L39
	.long	.L44-.L39
	.long	.L43-.L39
	.long	.L42-.L39
	.long	.L41-.L39
	.long	.L40-.L39
	.long	.L38-.L39
	.text
.L44:
	mov	eax, DWORD PTR sz[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR sz[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	DWORD PTR [rdx+rax], ebx
	mov	eax, DWORD PTR sz[rip]
	cmp	eax, 1
	jle	.L23
	mov	eax, DWORD PTR sz[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR sz[rip]
	sub	eax, 2
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L23
	mov	DWORD PTR sorted[rip], 0
	jmp	.L23
.L43:
	mov	eax, DWORD PTR sorted[rip]
	test	eax, eax
	jne	.L46
	mov	eax, DWORD PTR sz[rip]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, val[rip]
	call	qsort@PLT
	mov	DWORD PTR sorted[rip], 1
.L46:
	mov	edi, ebx
	call	lb
	mov	r12d, eax
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ebx, eax
	jne	.L23
	mov	eax, DWORD PTR sz[rip]
	sub	eax, r12d
	cdqe
	lea	rdx, 0[0+rax*4]
	movsx	rax, r12d
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	lea	rax, val[rip]
	add	rcx, rax
	movsx	rax, r12d
	lea	rsi, 0[0+rax*4]
	lea	rax, val[rip]
	add	rax, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR sz[rip]
	sub	eax, 1
	mov	DWORD PTR sz[rip], eax
	jmp	.L23
.L42:
	mov	eax, DWORD PTR sorted[rip]
	test	eax, eax
	jne	.L48
	mov	eax, DWORD PTR sz[rip]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, val[rip]
	call	qsort@PLT
	mov	DWORD PTR sorted[rip], 1
.L48:
	mov	edi, ebx
	call	lb
	lea	ebx, 1[rax]
	mov	r12d, 0
	lea	rax, -80[rbp]
	mov	QWORD PTR -120[rbp], rax
	test	ebx, ebx
	jne	.L49
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -120[rbp], rdx
	mov	BYTE PTR [rax], 48
.L49:
	test	ebx, ebx
	jns	.L51
	mov	r12d, 1
	neg	ebx
	jmp	.L51
.L52:
	mov	esi, 10
	mov	edi, ebx
	call	div@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -120[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ebx, DWORD PTR -88[rbp]
.L51:
	test	ebx, ebx
	jne	.L52
	test	r12d, r12d
	je	.L54
	mov	edi, 45
	call	putchar@PLT
	jmp	.L54
.L55:
	sub	QWORD PTR -120[rbp], 1
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L54:
	lea	rax, -80[rbp]
	cmp	QWORD PTR -120[rbp], rax
	jne	.L55
	mov	edi, 10
	call	putchar@PLT
	jmp	.L23
.L41:
	mov	eax, DWORD PTR sorted[rip]
	test	eax, eax
	jne	.L56
	mov	eax, DWORD PTR sz[rip]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, val[rip]
	call	qsort@PLT
	mov	DWORD PTR sorted[rip], 1
.L56:
	lea	eax, -1[rbx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	ebx, DWORD PTR [rdx+rax]
	mov	r12d, 0
	lea	rax, -80[rbp]
	mov	QWORD PTR -112[rbp], rax
	test	ebx, ebx
	jne	.L57
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -112[rbp], rdx
	mov	BYTE PTR [rax], 48
.L57:
	test	ebx, ebx
	jns	.L59
	mov	r12d, 1
	neg	ebx
	jmp	.L59
.L60:
	mov	esi, 10
	mov	edi, ebx
	call	div@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -112[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ebx, DWORD PTR -88[rbp]
.L59:
	test	ebx, ebx
	jne	.L60
	test	r12d, r12d
	je	.L62
	mov	edi, 45
	call	putchar@PLT
	jmp	.L62
.L63:
	sub	QWORD PTR -112[rbp], 1
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L62:
	lea	rax, -80[rbp]
	cmp	QWORD PTR -112[rbp], rax
	jne	.L63
	mov	edi, 10
	call	putchar@PLT
	jmp	.L23
.L40:
	mov	eax, DWORD PTR sorted[rip]
	test	eax, eax
	jne	.L64
	mov	eax, DWORD PTR sz[rip]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, val[rip]
	call	qsort@PLT
	mov	DWORD PTR sorted[rip], 1
.L64:
	mov	edi, ebx
	call	lb
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	ebx, DWORD PTR [rdx+rax]
	mov	r12d, 0
	lea	rax, -80[rbp]
	mov	QWORD PTR -104[rbp], rax
	test	ebx, ebx
	jne	.L65
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -104[rbp], rdx
	mov	BYTE PTR [rax], 48
.L65:
	test	ebx, ebx
	jns	.L67
	mov	r12d, 1
	neg	ebx
	jmp	.L67
.L68:
	mov	esi, 10
	mov	edi, ebx
	call	div@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -104[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -104[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ebx, DWORD PTR -88[rbp]
.L67:
	test	ebx, ebx
	jne	.L68
	test	r12d, r12d
	je	.L70
	mov	edi, 45
	call	putchar@PLT
	jmp	.L70
.L71:
	sub	QWORD PTR -104[rbp], 1
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L70:
	lea	rax, -80[rbp]
	cmp	QWORD PTR -104[rbp], rax
	jne	.L71
	mov	edi, 10
	call	putchar@PLT
	jmp	.L23
.L38:
	mov	eax, DWORD PTR sorted[rip]
	test	eax, eax
	jne	.L72
	mov	eax, DWORD PTR sz[rip]
	cdqe
	lea	rcx, cmp[rip]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, val[rip]
	call	qsort@PLT
	mov	DWORD PTR sorted[rip], 1
.L72:
	mov	edi, ebx
	call	ub
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, val[rip]
	mov	ebx, DWORD PTR [rdx+rax]
	mov	r12d, 0
	lea	rax, -80[rbp]
	mov	QWORD PTR -96[rbp], rax
	test	ebx, ebx
	jne	.L73
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -96[rbp], rdx
	mov	BYTE PTR [rax], 48
.L73:
	test	ebx, ebx
	jns	.L75
	mov	r12d, 1
	neg	ebx
	jmp	.L75
.L76:
	mov	esi, 10
	mov	edi, ebx
	call	div@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -96[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ebx, DWORD PTR -88[rbp]
.L75:
	test	ebx, ebx
	jne	.L76
	test	r12d, r12d
	je	.L78
	mov	edi, 45
	call	putchar@PLT
	jmp	.L78
.L79:
	sub	QWORD PTR -96[rbp], 1
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L78:
	lea	rax, -80[rbp]
	cmp	QWORD PTR -96[rbp], rax
	jne	.L79
	mov	edi, 10
	call	putchar@PLT
	nop
.L23:
	mov	eax, r13d
	lea	r13d, -1[rax]
	test	eax, eax
	jne	.L80
	mov	eax, 0
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	add	rsp, 104
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"535115.c"
	.text
	.comm	val,1200024,4
	.global	sz
	.bss
	.align	2
	.type	sz, %object
	.size	sz, 4
sz:
	.space	4
	.global	sorted
	.align	2
	.type	sorted, %object
	.size	sorted, 4
sorted:
	.space	4
	.text
	.align	2
	.global	lb
	.syntax unified
	.arm
	.fpu softvfp
	.type	lb, %function
lb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	mov	r4, #0
	ldr	r3, .L6
	ldr	r5, [r3]
	b	.L2
.L4:
	sub	r3, r5, r4
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r6, r4, r3
	ldr	r3, .L6+4
	ldr	r3, [r3, r6, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L3
	add	r4, r6, #1
	b	.L2
.L3:
	mov	r5, r6
.L2:
	cmp	r4, r5
	blt	.L4
	mov	r3, r4
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
.L7:
	.align	2
.L6:
	.word	sz
	.word	val
	.size	lb, .-lb
	.align	2
	.global	ub
	.syntax unified
	.arm
	.fpu softvfp
	.type	ub, %function
ub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	mov	r4, #0
	ldr	r3, .L13
	ldr	r5, [r3]
	b	.L9
.L11:
	sub	r3, r5, r4
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r6, r4, r3
	ldr	r3, .L13+4
	ldr	r3, [r3, r6, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L10
	add	r4, r6, #1
	b	.L9
.L10:
	mov	r5, r6
.L9:
	cmp	r4, r5
	blt	.L11
	mov	r3, r4
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
.L14:
	.align	2
.L13:
	.word	sz
	.word	val
	.size	ub, .-ub
	.align	2
	.global	cmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp, %function
cmp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L16
	mvn	r3, #0
	b	.L18
.L16:
	mov	r3, #1
.L18:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmp, .-cmp
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r6, #0
	mov	r5, #0
	nop
.L21:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r7, [r3]
	bl	getchar
	mov	r4, r0
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r7, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L20
	cmp	r4, #45
	bne	.L21
.L20:
	cmp	r4, #45
	bne	.L22
	mov	r6, #1
	b	.L24
.L22:
	sub	r5, r4, #48
	b	.L24
.L25:
	mov	r3, r5
	lsl	r3, r3, #2
	add	r3, r3, r5
	lsl	r3, r3, #1
	add	r3, r4, r3
	sub	r5, r3, #48
.L24:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r7, [r3]
	bl	getchar
	mov	r4, r0
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r7, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L25
	cmp	r6, #0
	beq	.L27
	rsb	r5, r5, #0
	b	.L27
.L84:
	mov	r7, #0
	mov	r6, #0
	nop
.L29:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r8, [r3]
	bl	getchar
	mov	r4, r0
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r8, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L28
	cmp	r4, #45
	bne	.L29
.L28:
	cmp	r4, #45
	bne	.L30
	mov	r7, #1
	b	.L32
.L30:
	sub	r6, r4, #48
	b	.L32
.L33:
	mov	r3, r6
	lsl	r3, r3, #2
	add	r3, r3, r6
	lsl	r3, r3, #1
	add	r3, r4, r3
	sub	r6, r3, #48
.L32:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r8, [r3]
	bl	getchar
	mov	r4, r0
	mov	r3, r4
	lsl	r3, r3, #1
	add	r3, r8, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L33
	cmp	r7, #0
	beq	.L34
	rsb	r6, r6, #0
.L34:
	mov	r8, #0
	mov	r4, #0
	nop
.L36:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r9, [r3]
	bl	getchar
	mov	r7, r0
	mov	r3, r7
	lsl	r3, r3, #1
	add	r3, r9, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L35
	cmp	r7, #45
	bne	.L36
.L35:
	cmp	r7, #45
	bne	.L37
	mov	r8, #1
	b	.L39
.L37:
	sub	r4, r7, #48
	b	.L39
.L40:
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r3, r4
	lsl	r3, r3, #1
	add	r3, r7, r3
	sub	r4, r3, #48
.L39:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r9, [r3]
	bl	getchar
	mov	r7, r0
	mov	r3, r7
	lsl	r3, r3, #1
	add	r3, r9, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L40
	cmp	r8, #0
	beq	.L41
	rsb	r4, r4, #0
.L41:
	sub	r3, r6, #1
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L27
.L43:
	.word	.L48
	.word	.L47
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L42
.L48:
	ldr	r3, .L87+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L87+4
	str	r2, [r1]
	ldr	r2, .L87+8
	str	r4, [r2, r3, lsl #2]
	ldr	r3, .L87+4
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L27
	ldr	r3, .L87+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L87+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L87+4
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r1, .L87+8
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L27
	ldr	r3, .L87+12
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L47:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L87+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L87+16
	mov	r2, #4
	ldr	r0, .L87+8
	bl	qsort
	ldr	r3, .L87+12
	mov	r2, #1
	str	r2, [r3]
.L50:
	mov	r0, r4
	bl	lb
	mov	r6, r0
	ldr	r3, .L87+8
	ldr	r3, [r3, r6, lsl #2]
	cmp	r4, r3
	bne	.L27
	mov	r3, r6
	lsl	r3, r3, #2
	ldr	r2, .L87+8
	add	r0, r3, r2
	mov	r3, r6
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, .L87+8
	add	r1, r3, r2
	ldr	r3, .L87+4
	ldr	r3, [r3]
	sub	r3, r3, r6
	lsl	r3, r3, #2
	mov	r2, r3
	bl	memmove
	ldr	r3, .L87+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L87+4
	str	r3, [r2]
	b	.L27
.L46:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L52
	ldr	r3, .L87+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L87+16
	mov	r2, #4
	ldr	r0, .L87+8
	bl	qsort
	ldr	r3, .L87+12
	mov	r2, #1
	str	r2, [r3]
.L52:
	mov	r0, r4
	bl	lb
	mov	r3, r0
	add	r4, r3, #1
	mov	r6, #0
	sub	r3, fp, #56
	str	r3, [fp, #-80]
	cmp	r4, #0
	bne	.L53
	ldr	r3, [fp, #-80]
	add	r2, r3, #1
	str	r2, [fp, #-80]
	mov	r2, #48
	strb	r2, [r3]
.L53:
	cmp	r4, #0
	bge	.L55
	mov	r6, #1
	rsb	r4, r4, #0
	b	.L55
.L56:
	sub	r3, fp, #64
	mov	r2, #10
	mov	r1, r4
	mov	r0, r3
	bl	div
	ldr	r3, [fp, #-60]
	and	r2, r3, #255
	ldr	r3, [fp, #-80]
	add	r1, r3, #1
	str	r1, [fp, #-80]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r4, [fp, #-64]
.L55:
	cmp	r4, #0
	bne	.L56
	cmp	r6, #0
	beq	.L58
	mov	r0, #45
	bl	putchar
	b	.L58
.L59:
	ldr	r3, [fp, #-80]
	sub	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L58:
	sub	r3, fp, #56
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bne	.L59
	mov	r0, #10
	bl	putchar
	b	.L27
.L45:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L60
	ldr	r3, .L87+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L87+16
	mov	r2, #4
	ldr	r0, .L87+8
	bl	qsort
	ldr	r3, .L87+12
	mov	r2, #1
	str	r2, [r3]
.L60:
	sub	r3, r4, #1
	ldr	r2, .L87+8
	ldr	r4, [r2, r3, lsl #2]
	mov	r6, #0
	sub	r3, fp, #56
	str	r3, [fp, #-76]
	cmp	r4, #0
	bne	.L61
	ldr	r3, [fp, #-76]
	add	r2, r3, #1
	str	r2, [fp, #-76]
	mov	r2, #48
	strb	r2, [r3]
.L61:
	cmp	r4, #0
	bge	.L63
	mov	r6, #1
	rsb	r4, r4, #0
	b	.L63
.L64:
	sub	r3, fp, #64
	mov	r2, #10
	mov	r1, r4
	mov	r0, r3
	bl	div
	ldr	r3, [fp, #-60]
	and	r2, r3, #255
	ldr	r3, [fp, #-76]
	add	r1, r3, #1
	str	r1, [fp, #-76]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r4, [fp, #-64]
.L63:
	cmp	r4, #0
	bne	.L64
	cmp	r6, #0
	beq	.L66
	mov	r0, #45
	bl	putchar
	b	.L66
.L67:
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L66:
	sub	r3, fp, #56
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bne	.L67
	mov	r0, #10
	bl	putchar
	b	.L27
.L44:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L87+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L87+16
	mov	r2, #4
	ldr	r0, .L87+8
	bl	qsort
	ldr	r3, .L87+12
	mov	r2, #1
	str	r2, [r3]
.L68:
	mov	r0, r4
	bl	lb
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, .L87+8
	ldr	r4, [r2, r3, lsl #2]
	mov	r6, #0
	sub	r3, fp, #56
	str	r3, [fp, #-72]
	cmp	r4, #0
	bne	.L69
	ldr	r3, [fp, #-72]
	add	r2, r3, #1
	str	r2, [fp, #-72]
	mov	r2, #48
	strb	r2, [r3]
.L69:
	cmp	r4, #0
	bge	.L71
	mov	r6, #1
	rsb	r4, r4, #0
	b	.L71
.L72:
	sub	r3, fp, #64
	mov	r2, #10
	mov	r1, r4
	mov	r0, r3
	bl	div
	ldr	r3, [fp, #-60]
	and	r2, r3, #255
	ldr	r3, [fp, #-72]
	add	r1, r3, #1
	str	r1, [fp, #-72]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r4, [fp, #-64]
.L71:
	cmp	r4, #0
	bne	.L72
	cmp	r6, #0
	beq	.L74
	mov	r0, #45
	bl	putchar
	b	.L74
.L75:
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L74:
	sub	r3, fp, #56
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	bne	.L75
	mov	r0, #10
	bl	putchar
	b	.L27
.L42:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L76
	ldr	r3, .L87+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, .L87+16
	mov	r2, #4
	ldr	r0, .L87+8
	bl	qsort
	ldr	r3, .L87+12
	mov	r2, #1
	str	r2, [r3]
.L76:
	mov	r0, r4
	bl	ub
	mov	r3, r0
	ldr	r2, .L87+8
	ldr	r4, [r2, r3, lsl #2]
	mov	r6, #0
	sub	r3, fp, #56
	str	r3, [fp, #-68]
	cmp	r4, #0
	bne	.L77
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	str	r2, [fp, #-68]
	mov	r2, #48
	strb	r2, [r3]
.L77:
	cmp	r4, #0
	bge	.L79
	mov	r6, #1
	rsb	r4, r4, #0
	b	.L79
.L80:
	sub	r3, fp, #64
	mov	r2, #10
	mov	r1, r4
	mov	r0, r3
	bl	div
	ldr	r3, [fp, #-60]
	and	r2, r3, #255
	ldr	r3, [fp, #-68]
	add	r1, r3, #1
	str	r1, [fp, #-68]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r4, [fp, #-64]
.L79:
	cmp	r4, #0
	bne	.L80
	cmp	r6, #0
	beq	.L82
	mov	r0, #45
	bl	putchar
	b	.L82
.L83:
	ldr	r3, [fp, #-68]
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L82:
	sub	r3, fp, #56
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	bne	.L83
	mov	r0, #10
	bl	putchar
	nop
.L27:
	mov	r3, r5
	sub	r5, r3, #1
	cmp	r3, #0
	bne	.L84
	mov	r3, #0
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC0
	.word	sz
	.word	val
	.word	sorted
	.word	cmp
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
