	.file	"417903.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"F"
.LC1:
	.string	"B"
.LC2:
	.string	"L"
.LC3:
	.string	"R"
.LC4:
	.string	"exit"
.LC5:
	.string	"Server Exit..."
	.text
	.globl	func
	.type	func, @function
func:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L17:
	lea	rax, -23[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	WORD PTR 12[rax], 0
	mov	BYTE PTR 14[rax], 0
	mov	DWORD PTR -28[rbp], 0
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR .LC0[rip]
	movzx	edx, BYTE PTR -23[rbp]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L2
	mov	DWORD PTR -28[rbp], 1
	jmp	.L3
.L2:
	movzx	eax, BYTE PTR .LC1[rip]
	movzx	edx, BYTE PTR -23[rbp]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L4
	mov	DWORD PTR -28[rbp], 2
	jmp	.L3
.L4:
	movzx	eax, BYTE PTR .LC2[rip]
	movzx	edx, BYTE PTR -23[rbp]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L5
	mov	DWORD PTR -28[rbp], 3
	jmp	.L3
.L5:
	movzx	eax, BYTE PTR .LC3[rip]
	movzx	edx, BYTE PTR -23[rbp]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L6
	mov	DWORD PTR -28[rbp], 4
	jmp	.L3
.L6:
	lea	rax, -23[rbp]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L3
	mov	DWORD PTR -28[rbp], 5
.L3:
	cmp	DWORD PTR -28[rbp], 5
	ja	.L7
	mov	eax, DWORD PTR -28[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L9[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L9[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L7-.L9
	.long	.L13-.L9
	.long	.L12-.L9
	.long	.L11-.L9
	.long	.L10-.L9
	.long	.L8-.L9
	.text
.L13:
	lea	rax, -23[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	WORD PTR 12[rax], 0
	mov	BYTE PTR 14[rax], 0
	lea	rax, -23[rbp]
	movabs	rsi, 8007511688207495750
	mov	QWORD PTR [rax], rsi
	mov	WORD PTR 8[rax], 2667
	mov	BYTE PTR 10[rax], 0
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	jmp	.L14
.L12:
	lea	rax, -23[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	WORD PTR 12[rax], 0
	mov	BYTE PTR 14[rax], 0
	lea	rax, -23[rbp]
	movabs	rsi, 750815948052722260
	mov	QWORD PTR [rax], rsi
	mov	BYTE PTR 8[rax], 0
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	jmp	.L14
.L11:
	lea	rax, -23[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	WORD PTR 12[rax], 0
	mov	BYTE PTR 14[rax], 0
	lea	rax, -23[rbp]
	movabs	rdi, 7017859899437708101
	mov	QWORD PTR [rax], rdi
	mov	DWORD PTR 8[rax], 174812960
	mov	BYTE PTR 12[rax], 0
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	jmp	.L14
.L10:
	lea	rax, -23[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	WORD PTR 12[rax], 0
	mov	BYTE PTR 14[rax], 0
	lea	rax, -23[rbp]
	movabs	rsi, 2333274077977012548
	mov	QWORD PTR [rax], rsi
	mov	DWORD PTR 8[rax], 682863
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	jmp	.L14
.L8:
	lea	rax, -23[rbp]
	mov	DWORD PTR [rax], 1953069157
	mov	WORD PTR 4[rax], 10
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	lea	rax, -23[rbp]
	mov	DWORD PTR [rax], 1953069157
	mov	BYTE PTR 4[rax], 0
	jmp	.L14
.L7:
	lea	rax, -23[rbp]
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	WORD PTR 12[rax], 0
	mov	BYTE PTR 14[rax], 0
	lea	rax, -23[rbp]
	mov	DWORD PTR [rax], 174813038
	mov	BYTE PTR 4[rax], 0
	lea	rcx, -23[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	nop
.L14:
	lea	rax, -23[rbp]
	mov	edx, 4
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L17
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	func, .-func
	.section	.rodata
.LC6:
	.string	"socket creation failed..."
.LC7:
	.string	"Socket successfully created.."
.LC8:
	.string	"socket bind failed..."
.LC9:
	.string	"Socket successfully binded.."
.LC10:
	.string	"Listen failed..."
.LC11:
	.string	"Server listening.."
.LC12:
	.string	"server acccept failed..."
.LC13:
	.string	"server acccept the client..."
	.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, 64
	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 -56[rbp], eax
	cmp	DWORD PTR -56[rbp], -1
	jne	.L21
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L21:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -48[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	edi, 65432
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L22
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L22:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L23
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L23:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -60[rbp], 16
	lea	rdx, -60[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L24
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L24:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	func
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"417903.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"F\000"
	.align	2
.LC1:
	.ascii	"B\000"
	.align	2
.LC2:
	.ascii	"L\000"
	.align	2
.LC3:
	.ascii	"R\000"
	.align	2
.LC4:
	.ascii	"exit\000"
	.align	2
.LC5:
	.ascii	"Frente ok\012\000"
	.align	2
.LC6:
	.ascii	"Tras ok\012\000"
	.align	2
.LC7:
	.ascii	"Esquerda ok\012\000"
	.align	2
.LC8:
	.ascii	"Direita ok\012\000"
	.align	2
.LC9:
	.ascii	"exit\012\000"
	.align	2
.LC10:
	.ascii	"nok\012\000"
	.align	2
.LC11:
	.ascii	"Server Exit...\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	func
	.syntax unified
	.arm
	.fpu softvfp
	.type	func, %function
func:
	@ 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, #-32]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L17:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strh	r2, [r3, #12]	@ movhi
	strb	r2, [r3, #14]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	ldr	r3, .L20+4
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L3
.L2:
	ldr	r3, .L20+8
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L4
	mov	r3, #2
	str	r3, [fp, #-28]
	b	.L3
.L4:
	ldr	r3, .L20+12
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L5
	mov	r3, #3
	str	r3, [fp, #-28]
	b	.L3
.L5:
	ldr	r3, .L20+16
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L6
	mov	r3, #4
	str	r3, [fp, #-28]
	b	.L3
.L6:
	sub	r3, fp, #24
	mov	r2, #4
	mov	r1, r3
	ldr	r0, .L20+20
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #5
	str	r3, [fp, #-28]
.L3:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L13:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strh	r2, [r3, #12]	@ movhi
	strb	r2, [r3, #14]
	sub	r3, fp, #24
	ldr	r2, .L20+24
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	b	.L14
.L12:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strh	r2, [r3, #12]	@ movhi
	strb	r2, [r3, #14]
	sub	r3, fp, #24
	ldr	r2, .L20+28
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	b	.L14
.L11:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strh	r2, [r3, #12]	@ movhi
	strb	r2, [r3, #14]
	sub	r3, fp, #24
	ldr	r2, .L20+32
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	b	.L14
.L10:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strh	r2, [r3, #12]	@ movhi
	strb	r2, [r3, #14]
	sub	r3, fp, #24
	ldr	r2, .L20+36
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	b	.L14
.L8:
	sub	r3, fp, #24
	ldr	r2, .L20+40
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	sub	r3, fp, #24
	ldr	r2, .L20+20
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	b	.L14
.L7:
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	strh	r2, [r3, #12]	@ movhi
	strb	r2, [r3, #14]
	sub	r3, fp, #24
	ldr	r2, .L20+44
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r3, fp, #24
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	nop
.L14:
	sub	r3, fp, #24
	mov	r2, #4
	mov	r1, r3
	ldr	r0, .L20+20
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L20+48
	bl	puts
	nop
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	func, .-func
	.section	.rodata
	.align	2
.LC13:
	.ascii	"socket creation failed...\000"
	.align	2
.LC14:
	.ascii	"Socket successfully created..\000"
	.align	2
.LC15:
	.ascii	"socket bind failed...\000"
	.align	2
.LC16:
	.ascii	"Socket successfully binded..\000"
	.align	2
.LC17:
	.ascii	"Listen failed...\000"
	.align	2
.LC18:
	.ascii	"Server listening..\000"
	.align	2
.LC19:
	.ascii	"server acccept failed...\000"
	.align	2
.LC20:
	.ascii	"server acccept the client...\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L29+4
	bl	puts
	mov	r0, #0
	bl	exit
.L23:
	ldr	r0, .L29+8
	bl	puts
	sub	r3, fp, #40
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-40]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r0, .L29+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L29+16
	bl	puts
	mov	r0, #0
	bl	exit
.L24:
	ldr	r0, .L29+20
	bl	puts
	mov	r1, #5
	ldr	r0, [fp, #-48]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L29+24
	bl	puts
	mov	r0, #0
	bl	exit
.L25:
	ldr	r0, .L29+28
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-52]
	sub	r2, fp, #52
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	accept
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L26
	ldr	r0, .L29+32
	bl	puts
	mov	r0, #0
	bl	exit
.L26:
	ldr	r0, .L29+36
	bl	puts
	ldr	r0, [fp, #-44]
	bl	func
	ldr	r0, [fp, #-48]
	bl	close
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC21
	.word	.LC13
	.word	.LC14
	.word	65432
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
