	.file	"141948.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nSocket craido"
.LC1:
	.string	"192.168.0.38"
.LC2:
	.string	"\nLicacao nao estabelecida."
	.align 8
.LC3:
	.string	"\nLigacao realizada com sucesso."
	.align 8
.LC4:
	.string	"\nEsperando por novos clientes."
	.align 8
.LC5:
	.string	"\nConecao com o cliente nao foi aceita."
	.align 8
.LC6:
	.string	"\nConecao com o cliente estabelecida."
	.align 8
.LC7:
	.string	"Digite o comando para a Raspberry:"
.LC8:
	.string	"%s"
	.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, 560
	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 -552[rbp], eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	WORD PTR -544[rbp], 2
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -540[rbp], eax
	mov	edi, 5560
	call	htons@PLT
	mov	WORD PTR -542[rbp], ax
	mov	DWORD PTR -556[rbp], 16
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L7
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -552[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L4:
	lea	rdx, -556[rbp]
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -552[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -548[rbp], eax
	cmp	DWORD PTR -548[rbp], 0
	jns	.L5
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L7
.L5:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -512[rbp]
	mov	edx, 500
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L6:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -512[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -512[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -512[rbp]
	mov	edx, 500
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L6
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"141948.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Socket craido\000"
	.align	2
.LC1:
	.ascii	"192.168.0.38\000"
	.align	2
.LC2:
	.ascii	"\012Licacao nao estabelecida.\000"
	.align	2
.LC3:
	.ascii	"\012Ligacao realizada com sucesso.\000"
	.align	2
.LC4:
	.ascii	"\012Esperando por novos clientes.\000"
	.align	2
.LC5:
	.ascii	"\012Conecao com o cliente nao foi aceita.\000"
	.align	2
.LC6:
	.ascii	"\012Conecao com o cliente estabelecida.\000"
	.align	2
.LC7:
	.ascii	"Digite o comando para a Raspberry:\000"
	.align	2
.LC8:
	.ascii	"%s\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-548]
	ldr	r0, .L9+4
	bl	puts
	sub	r3, fp, #4
	sub	r3, r3, #536
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L9+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-536]
	ldr	r0, .L9+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #536
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #16
	str	r3, [fp, #-552]
	sub	r3, fp, #540
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-548]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9+16
	bl	puts
	mov	r3, #1
	b	.L7
.L2:
	ldr	r0, .L9+20
	bl	puts
	mov	r1, #3
	ldr	r0, [fp, #-548]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L9+24
	bl	puts
.L4:
	sub	r2, fp, #552
	sub	r3, fp, #524
	mov	r1, r3
	ldr	r0, [fp, #-548]
	bl	accept
	str	r0, [fp, #-544]
	ldr	r3, [fp, #-544]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L9+28
	bl	puts
	mov	r3, #1
	b	.L7
.L5:
	ldr	r0, .L9+32
	bl	puts
	sub	r3, fp, #508
	mov	r2, #500
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L6:
	ldr	r0, .L9+36
	bl	puts
	sub	r3, fp, #508
	mov	r1, r3
	ldr	r0, .L9+40
	bl	__isoc99_scanf
	sub	r3, fp, #508
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #508
	mov	r3, #0
	ldr	r0, [fp, #-544]
	bl	send
	sub	r3, fp, #508
	mov	r2, #500
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L6
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	5560
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
