	.file	"670029.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
	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	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"w"
	.text
	.globl	inter
	.type	inter, @function
inter:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	jmp	.L4
.L7:
	lea	rdx, -40[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp
	test	eax, eax
	jns	.L5
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	jmp	.L4
.L5:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
.L4:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L7
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L9
	jmp	.L10
.L11:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inter, .-inter
	.globl	cala
	.type	cala, @function
cala:
.LFB8:
	.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, cmp[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L14
.L15:
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 2
	mov	DWORD PTR -4[rbp], 17
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	mov	rsi, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rsi+rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 4
	sub	rax, rsi
	mov	rdi, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdi
	mov	rsi, rcx
	mov	rdi, rax
	call	inter
	add	DWORD PTR -12[rbp], 2
	add	DWORD PTR -8[rbp], 2
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L14:
	cmp	DWORD PTR -16[rbp], 16
	jle	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cala, .-cala
	.section	.rodata
.LC2:
	.string	"cep.dat"
.LC3:
	.string	"%d.dat"
	.text
	.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
	sub	rsp, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	shr	rax, 3
	mov	QWORD PTR -528[rbp], rax
	mov	DWORD PTR -548[rbp], 16
	mov	eax, DWORD PTR -548[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -528[rbp]
	cqo
	idiv	rsi
	mov	QWORD PTR -520[rbp], rax
	mov	rax, QWORD PTR -520[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -512[rbp], rax
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -552[rbp], 0
	jmp	.L17
.L18:
	mov	edx, DWORD PTR -552[rbp]
	lea	rax, -23[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -23[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -504[rbp], rax
	mov	eax, DWORD PTR -552[rbp]
	cdqe
	movzx	edx, BYTE PTR -23[rbp+rax]
	mov	eax, DWORD PTR -552[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	add	rax, rbp
	sub	rax, 496
	mov	BYTE PTR [rax], dl
	mov	rdx, QWORD PTR -520[rbp]
	mov	rcx, QWORD PTR -504[rbp]
	mov	rax, QWORD PTR -512[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -504[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -552[rbp], 1
.L17:
	cmp	DWORD PTR -552[rbp], 15
	jle	.L18
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -512[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -512[rbp]
	mov	rcx, QWORD PTR [rax]
	lea	rax, -496[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	cala
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.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	"670029.c"
	.text
	.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]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmp, .-cmp
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	inter
	.syntax unified
	.arm
	.fpu softvfp
	.type	inter, %function
inter:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L13+4
	ldr	r0, [fp, #-32]
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r1, .L13+4
	ldr	r0, [fp, #-36]
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, .L13+8
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	sub	r0, fp, #20
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-24]
	sub	r0, fp, #16
	mov	r2, #1
	mov	r1, #4
	bl	fread
	b	.L4
.L7:
	sub	r2, fp, #24
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	cmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	sub	r0, fp, #28
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-28]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fread
	b	.L4
.L5:
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-24]
	sub	r0, fp, #24
	mov	r2, #1
	mov	r1, #4
	bl	fread
.L4:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	b	.L8
.L9:
	sub	r0, fp, #28
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-28]
	sub	r0, fp, #28
	mov	r2, #1
	mov	r1, #4
	bl	fread
.L8:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	b	.L10
.L11:
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-24]
	sub	r0, fp, #24
	mov	r2, #1
	mov	r1, #4
	bl	fread
.L10:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	fclose
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	inter, .-inter
	.align	2
	.global	cala
	.syntax unified
	.arm
	.fpu softvfp
	.type	cala, %function
cala:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r3, .L18
	mov	r2, #4
	ldr	r0, [fp, #-28]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L16
.L17:
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-12]
	mov	r3, #17
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r1, r2, r3
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	bl	inter
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L16:
	ldr	r3, [fp, #-20]
	cmp	r3, #16
	ble	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	cmp
	.size	cala, .-cala
	.section	.rodata
	.align	2
.LC3:
	.ascii	"cep.dat\000"
	.global	__aeabi_idiv
	.align	2
.LC4:
	.ascii	"%d.dat\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L25+4
	ldr	r0, .L25+8
	bl	fopen
	str	r0, [fp, #-520]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-520]
	bl	fseek
	ldr	r0, [fp, #-520]
	bl	ftell
	str	r0, [fp, #-516]
	ldr	r3, [fp, #-516]
	lsr	r3, r3, #2
	str	r3, [fp, #-512]
	mov	r3, #16
	str	r3, [fp, #-508]
	ldr	r1, [fp, #-508]
	ldr	r0, [fp, #-512]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-504]
	ldr	r3, [fp, #-504]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-500]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-520]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L21
.L22:
	sub	r3, fp, #24
	ldr	r2, [fp, #-524]
	ldr	r1, .L25+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #24
	ldr	r1, .L25+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-496]
	sub	r2, fp, #24
	ldr	r3, [fp, #-524]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-524]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #488
	mov	r2, r1
	strb	r2, [r3]
	ldr	r2, [fp, #-504]
	ldr	r3, [fp, #-496]
	mov	r1, #4
	ldr	r0, [fp, #-500]
	bl	fwrite
	ldr	r0, [fp, #-496]
	bl	fclose
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L21:
	ldr	r3, [fp, #-524]
	cmp	r3, #15
	ble	.L22
	ldr	r0, [fp, #-520]
	bl	fclose
	ldr	r0, [fp, #-500]
	bl	free
	ldr	r3, [fp, #-500]
	ldr	r1, [r3]
	sub	r3, fp, #492
	ldr	r2, [fp, #-504]
	mov	r0, r3
	bl	cala
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC5
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
