	.file	"233630.c"
	.intel_syntax noprefix
	.text
	.globl	adminHash
	.section	.rodata
	.align 8
.LC0:
	.string	"$6$saaaaalty$cjw9qyAKmchl7kQMJxE5c1mHN0cXxfQNjs4EhcyULLndQR1wXslGCaZrJj5xRRBeflfvmpoIVv6Vs7ZOQwhcx."
	.section	.data.rel.local,"aw"
	.align 8
	.type	adminHash, @object
	.size	adminHash, 8
adminHash:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"$6$saaaaalty"
	.text
	.globl	checkPassword
	.type	checkPassword, @function
checkPassword:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	crypt@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR adminHash[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checkPassword, .-checkPassword
	.section	.rodata
	.align 8
.LC2:
	.string	"You ARE admin!\nBe the force with you.\nisAdmin: 0x%x\n"
.LC3:
	.string	"You are not admin.\nLame."
	.text
	.globl	handleData
	.type	handleData, @function
handleData:
.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, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -276[rbp], 0
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	checkPassword
	mov	DWORD PTR -276[rbp], eax
	mov	rdx, QWORD PTR -296[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	cmp	DWORD PTR -276[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -276[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L5:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handleData, .-handleData
	.section	.rodata
.LC4:
	.string	"Client connected"
.LC5:
	.string	"Username: %s\n"
	.text
	.globl	doprocessing
	.type	doprocessing, @function
doprocessing:
.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, 2096
	mov	DWORD PTR -2084[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 128
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2084[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2068[rbp], eax
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -1040[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	handleData
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	doprocessing, .-doprocessing
	.section	.rodata
.LC6:
	.string	"ERROR opening socket"
.LC7:
	.string	"ERROR on binding"
.LC8:
	.string	"ERROR on accept"
.LC9:
	.string	"ERROR on fork"
	.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], 0
	jns	.L12
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -304[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR -316[rbp], 5001
	mov	WORD PTR -304[rbp], 2
	mov	DWORD PTR -300[rbp], 0
	mov	eax, DWORD PTR -316[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L13
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -320[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -324[rbp], 16
.L17:
	lea	rdx, -324[rbp]
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], 0
	jns	.L14
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	call	fork@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	jns	.L15
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	cmp	DWORD PTR -308[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	doprocessing
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR -312[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L17
	.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	"233630.c"
	.text
	.global	adminHash
	.section	.rodata
	.align	2
.LC0:
	.ascii	"$6$saaaaalty$cjw9qyAKmchl7kQMJxE5c1mHN0cXxfQNjs4Ehc"
	.ascii	"yULLndQR1wXslGCaZrJj5xRRBeflfvmpoIVv6Vs7ZOQwhcx.\000"
	.data
	.align	2
	.type	adminHash, %object
	.size	adminHash, 4
adminHash:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"$6$saaaaalty\000"
	.text
	.align	2
	.global	checkPassword
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkPassword, %function
checkPassword:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L4
	ldr	r0, [fp, #-16]
	bl	crypt
	str	r0, [fp, #-8]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	adminHash
	.size	checkPassword, .-checkPassword
	.section	.rodata
	.align	2
.LC2:
	.ascii	"You ARE admin!\012Be the force with you.\012isAdmin"
	.ascii	": 0x%x\012\000"
	.align	2
.LC3:
	.ascii	"You are not admin.\012Lame.\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handleData
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleData, %function
handleData:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-268]
	ldr	r0, [fp, #-276]
	bl	checkPassword
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	ldr	r1, [fp, #-272]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	ble	.L7
	ldr	r1, [fp, #-268]
	ldr	r0, .L11+4
	bl	printf
	b	.L10
.L7:
	ldr	r0, .L11+8
	bl	puts
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.size	handleData, .-handleData
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Client connected\000"
	.align	2
.LC6:
	.ascii	"Username: %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doprocessing
	.syntax unified
	.arm
	.fpu softvfp
	.type	doprocessing, %function
doprocessing:
	@ args = 0, pretend = 0, frame = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	str	r0, [fp, #-2064]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L15+4
	bl	puts
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #1024
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L15+8
	mov	r1, r3
	ldr	r0, [fp, #-2064]
	bl	read
	str	r0, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	handleData
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC5
	.word	1023
	.word	.LC6
	.size	doprocessing, .-doprocessing
	.section	.rodata
	.align	2
.LC8:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC9:
	.ascii	"ERROR on binding\000"
	.align	2
.LC10:
	.ascii	"ERROR on accept\000"
	.align	2
.LC11:
	.ascii	"ERROR on fork\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L25+4
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #296
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r3, .L25+8
	str	r3, [fp, #-308]
	sub	r3, fp, #4
	sub	r3, r3, #292
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-308]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #292
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #296
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L25+12
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	mov	r1, #5
	ldr	r0, [fp, #-312]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-316]
.L23:
	sub	r2, fp, #316
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, [fp, #-312]
	bl	accept
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L25+16
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L25+20
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L22
	ldr	r0, [fp, #-312]
	bl	close
	ldr	r0, [fp, #-304]
	bl	doprocessing
	mov	r0, #0
	bl	exit
.L22:
	ldr	r0, [fp, #-304]
	bl	close
	b	.L23
.L26:
	.align	2
.L25:
	.word	.LC12
	.word	.LC8
	.word	5001
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
