	.file	"639460.c"
	.intel_syntax noprefix
	.text
	.globl	cmpChars
	.type	cmpChars, @function
cmpChars:
.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 -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpChars, .-cmpChars
	.section	.rodata
.LC0:
	.string	"Error"
.LC1:
	.string	"OFF"
	.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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -8260[rbp], edi
	mov	QWORD PTR -8272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -8260[rbp], 2
	je	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8240[rbp], eax
	cmp	DWORD PTR -8240[rbp], 0
	js	.L5
	lea	rdx, -8244[rbp]
	mov	eax, DWORD PTR -8240[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	WORD PTR -8224[rbp], 2
	mov	rax, QWORD PTR -8272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -8222[rbp], ax
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -8220[rbp], eax
	lea	rcx, -8224[rbp]
	mov	eax, DWORD PTR -8240[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -8240[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -8240[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8236[rbp], eax
	cmp	DWORD PTR -8236[rbp], 0
	js	.L6
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -8232[rbp]
	sub	rax, 1
	mov	rsi, rax
	lea	rax, -8208[rbp]
	lea	rcx, cmpChars[rip]
	mov	edx, 1
	mov	rdi, rax
	call	qsort@PLT
	mov	rdx, QWORD PTR -8232[rbp]
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8236[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
.L7:
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8236[rbp]
	mov	ecx, 0
	mov	edx, 8192
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -8232[rbp], rax
	cmp	QWORD PTR -8232[rbp], 0
	jle	.L8
	lea	rax, -8208[rbp]
	mov	edx, 3
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
.L8:
	mov	eax, DWORD PTR -8236[rbp]
	mov	edi, eax
	call	close@PLT
.L6:
	mov	eax, DWORD PTR -8240[rbp]
	mov	edi, eax
	call	close@PLT
.L5:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, 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	"639460.c"
	.text
	.align	2
	.global	cmpChars
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmpChars, %function
cmpChars:
	@ 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, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmpChars, .-cmpChars
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error\000"
	.align	2
.LC1:
	.ascii	"OFF\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 = 8240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #60
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-48]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #2
	beq	.L4
	ldr	r0, .L12+4
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	blt	.L5
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [r0, #-32]
	bl	setsockopt
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-20]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	strh	r2, [r3, #-18]	@ movhi
	ldr	r0, .L12+8
	bl	htonl
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-32]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #1
	ldr	r0, [r3, #-32]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-32]
	bl	accept
	str	r0, [r4, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	blt	.L6
	b	.L7
.L9:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r3, r3, #1
	mov	r1, r3
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L12+12
	mov	r2, #1
	bl	qsort
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r3, #-24]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r0, [r0, #-28]
	bl	send
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	mov	r2, #8192
	ldr	r0, [r0, #-28]
	bl	recv
	str	r0, [r4, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	ble	.L8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #3
	ldr	r1, .L12+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	close
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	close
.L5:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	2130706433
	.word	cmpChars
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
