	.file	"852475.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC3:
	.string	"%s=%d"
.LC4:
	.string	"-1"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4128[rbp], 0
	mov	DWORD PTR -4152[rbp], 0
	mov	DWORD PTR -4124[rbp], 0
	mov	DWORD PTR -4144[rbp], 0
	mov	DWORD PTR -4160[rbp], 0
	mov	DWORD PTR -4140[rbp], 0
	mov	DWORD PTR -4136[rbp], 0
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -4160[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -19[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4128[rbp], eax
	mov	DWORD PTR -4156[rbp], 0
	jmp	.L2
.L3:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4156[rbp]
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4152[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4152[rbp], eax
	add	DWORD PTR -4156[rbp], 1
.L2:
	mov	eax, DWORD PTR -4128[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4156[rbp], eax
	jl	.L3
	mov	DWORD PTR -4148[rbp], 0
	jmp	.L4
.L10:
	mov	DWORD PTR -4140[rbp], 0
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4120[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -19[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4140[rbp], 1
	movzx	eax, BYTE PTR -19[rbp]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -4144[rbp], eax
	mov	DWORD PTR -4156[rbp], 1
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -4156[rbp]
	sub	eax, 1
	mov	edx, DWORD PTR -4148[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	DWORD PTR -4124[rbp], eax
	mov	DWORD PTR -4132[rbp], 1
	cmp	DWORD PTR -4124[rbp], 0
	jne	.L6
	mov	DWORD PTR -4132[rbp], -1
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4120[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
	jmp	.L7
.L6:
	mov	DWORD PTR -4132[rbp], 1
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4120[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 43
.L7:
	add	DWORD PTR -4140[rbp], 1
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4140[rbp], 1
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	imul	eax, DWORD PTR -4132[rbp]
	add	DWORD PTR -4144[rbp], eax
	add	DWORD PTR -4156[rbp], 1
.L5:
	mov	eax, DWORD PTR -4156[rbp]
	cmp	eax, DWORD PTR -4128[rbp]
	jl	.L8
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4120[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -4160[rbp]
	cmp	DWORD PTR -4144[rbp], eax
	jne	.L9
	mov	ecx, DWORD PTR -4144[rbp]
	mov	rdx, QWORD PTR -4120[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -4136[rbp]
	cdqe
	mov	rdx, QWORD PTR -4120[rbp]
	mov	QWORD PTR -4112[rbp+rax*8], rdx
	add	DWORD PTR -4136[rbp], 1
.L9:
	add	DWORD PTR -4148[rbp], 1
.L4:
	mov	eax, DWORD PTR -4148[rbp]
	cmp	eax, DWORD PTR -4152[rbp]
	jle	.L10
	cmp	DWORD PTR -4136[rbp], 0
	jne	.L11
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L15
.L11:
	mov	edx, DWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort
	mov	DWORD PTR -4156[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	mov	rax, QWORD PTR -4112[rbp+rax*8]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -4156[rbp], 1
.L13:
	mov	eax, DWORD PTR -4156[rbp]
	cmp	eax, DWORD PTR -4136[rbp]
	jl	.L14
	mov	eax, 0
.L15:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	sort
	.type	sort, @function
sort:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L18
.L22:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 1
	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
	jns	.L20
	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 -16[rbp]
	cdqe
	add	rax, 1
	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 -16[rbp]
	cdqe
	add	rax, 1
	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
.L20:
	add	DWORD PTR -16[rbp], 1
.L19:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cmp	DWORD PTR -16[rbp], eax
	jl	.L21
	add	DWORD PTR -12[rbp], 1
.L18:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jl	.L22
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sort, .-sort
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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	"852475.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.ascii	"%s=%d\000"
	.align	2
.LC3:
	.ascii	"-1\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2096
	sub	sp, sp, #8
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2084]
	mov	r3, #0
	str	r3, [fp, #-2108]
	mov	r3, #0
	str	r3, [fp, #-2080]
	mov	r3, #0
	str	r3, [fp, #-2100]
	mov	r3, #0
	str	r3, [fp, #-2116]
	mov	r3, #0
	str	r3, [fp, #-2096]
	mov	r3, #0
	str	r3, [fp, #-2092]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L17+4
	bl	__isoc99_scanf
	sub	r3, fp, #2096
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	sub	r3, fp, #28
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-2084]
	mov	r3, #0
	str	r3, [fp, #-2112]
	b	.L2
.L3:
	ldr	r0, [fp, #-2112]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-2108]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-2108]
	ldr	r3, [fp, #-2112]
	add	r3, r3, #1
	str	r3, [fp, #-2112]
.L2:
	ldr	r3, [fp, #-2084]
	sub	r3, r3, #1
	ldr	r2, [fp, #-2112]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-2104]
	b	.L4
.L10:
	mov	r3, #0
	str	r3, [fp, #-2096]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2096]
	ldr	r2, [fp, #-2076]
	add	r3, r2, r3
	ldrb	r2, [fp, #-28]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	str	r3, [fp, #-2096]
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-2100]
	mov	r3, #1
	str	r3, [fp, #-2112]
	b	.L5
.L8:
	ldr	r3, [fp, #-2112]
	sub	r3, r3, #1
	ldr	r2, [fp, #-2104]
	asr	r3, r2, r3
	and	r3, r3, #1
	str	r3, [fp, #-2080]
	mov	r3, #1
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2080]
	cmp	r3, #0
	bne	.L6
	mvn	r3, #0
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2096]
	ldr	r2, [fp, #-2076]
	add	r3, r2, r3
	mov	r2, #45
	strb	r2, [r3]
	b	.L7
.L6:
	mov	r3, #1
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2096]
	ldr	r2, [fp, #-2076]
	add	r3, r2, r3
	mov	r2, #43
	strb	r2, [r3]
.L7:
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	ldr	r2, [fp, #-2076]
	add	r3, r2, r3
	sub	r1, fp, #28
	ldr	r2, [fp, #-2112]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-2096]
	add	r3, r3, #1
	str	r3, [fp, #-2096]
	sub	r2, fp, #28
	ldr	r3, [fp, #-2112]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-2088]
	mul	r3, r2, r3
	ldr	r2, [fp, #-2100]
	add	r3, r2, r3
	str	r3, [fp, #-2100]
	ldr	r3, [fp, #-2112]
	add	r3, r3, #1
	str	r3, [fp, #-2112]
.L5:
	ldr	r2, [fp, #-2112]
	ldr	r3, [fp, #-2084]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-2096]
	ldr	r2, [fp, #-2076]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-2116]
	ldr	r2, [fp, #-2100]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-2100]
	ldr	r2, [fp, #-2076]
	ldr	r1, .L17+12
	ldr	r0, [fp, #-2076]
	bl	sprintf
	ldr	r3, [fp, #-2092]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-2076]
	str	r2, [r3, #-2060]
	ldr	r3, [fp, #-2092]
	add	r3, r3, #1
	str	r3, [fp, #-2092]
.L9:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	str	r3, [fp, #-2104]
.L4:
	ldr	r2, [fp, #-2104]
	ldr	r3, [fp, #-2108]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L17+16
	bl	printf
	mov	r3, #0
	b	.L15
.L11:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, [fp, #-2092]
	mov	r0, r3
	bl	sort
	mov	r3, #0
	str	r3, [fp, #-2112]
	b	.L13
.L14:
	ldr	r3, [fp, #-2112]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-2060]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-2112]
	add	r3, r3, #1
	str	r3, [fp, #-2112]
.L13:
	ldr	r2, [fp, #-2112]
	ldr	r3, [fp, #-2092]
	cmp	r2, r3
	blt	.L14
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.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]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L24:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L21
.L23:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	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
	bge	.L22
	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, #-16]
	add	r3, r3, #1
	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, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L24
	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
