	.file	"259193.c"
	.intel_syntax noprefix
	.text
	.globl	logexit
	.type	logexit, @function
logexit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	logexit, .-logexit
	.section	.rodata
.LC0:
	.string	"conexao de %s %d\n"
.LC1:
	.string	"thread %x esperando receber\n"
.LC2:
	.string	"recebemos %d bytes\n"
.LC3:
	.string	"seu IP eh %s %d\n"
.LC4:
	.string	"enviando %s\n"
.LC5:
	.string	"enviou"
	.text
	.globl	client_thread
	.type	client_thread, @function
client_thread:
.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, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1080[rbp]
	mov	QWORD PTR -1056[rbp], rax
	mov	rax, QWORD PTR -1056[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -1068[rbp], eax
	mov	rax, QWORD PTR -1056[rbp]
	lea	rsi, 8[rax]
	lea	rax, -1040[rbp]
	mov	ecx, 512
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ecx, ax
	lea	rdx, -1040[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1068[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	client_thread, .-client_thread
	.section	.rodata
.LC6:
	.string	"socket"
.LC7:
	.string	"127.0.0.1"
.LC8:
	.string	"bind"
.LC9:
	.string	"listen"
.LC10:
	.string	"esperando conexao"
.LC11:
	.string	"accept"
.LC12:
	.string	"malloc"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	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 -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L5
	lea	rdi, .LC6[rip]
	call	logexit
.L5:
	lea	rax, -96[rbp]
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	mov	edi, 2
	call	inet_pton@PLT
	lea	rax, -48[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	WORD PTR -48[rbp], 2
	mov	edi, 5152
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L6
	lea	rdi, .LC8[rip]
	call	logexit
.L6:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC9[rip]
	call	logexit
.L7:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L10:
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -92[rbp], 16
	lea	rdx, -92[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	jne	.L8
	lea	rdi, .LC11[rip]
	call	logexit
.L8:
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L9
	lea	rdi, .LC12[rip]
	call	logexit
.L9:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	DWORD PTR [rax], edx
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 4[rcx], rax
	mov	QWORD PTR 12[rcx], rdx
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -80[rbp]
	mov	rcx, rdx
	lea	rdx, client_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	jmp	.L10
	.cfi_endproc
.LFE8:
	.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	"259193.c"
	.text
	.align	2
	.global	logexit
	.syntax unified
	.arm
	.fpu softvfp
	.type	logexit, %function
logexit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	logexit, .-logexit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"conexao de %s %d\012\000"
	.align	2
.LC1:
	.ascii	"thread %x esperando receber\012\000"
	.align	2
.LC2:
	.ascii	"recebemos %d bytes\012\000"
	.align	2
.LC3:
	.ascii	"seu IP eh %s %d\012\000"
	.align	2
.LC4:
	.ascii	"enviando %s\012\000"
	.align	2
.LC5:
	.ascii	"enviou\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	client_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_thread, %function
client_thread:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	str	r0, [fp, #-1048]
	ldr	r3, [fp, #-1056]
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	ldr	r3, [r3]
	str	r3, [fp, #-1040]
	ldr	r3, [fp, #-1044]
	add	r1, r3, #8
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	mov	r3, #512
	mov	r0, #2
	bl	inet_ntop
	ldr	r3, [fp, #-1044]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	ldr	r1, [fp, #-1048]
	ldr	r0, .L4+8
	bl	printf
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-1040]
	bl	recv
	mov	r3, r0
	str	r3, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	mov	r1, r3
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #520
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-1044]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r0, fp, #520
	ldr	r1, .L4+16
	bl	sprintf
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L4+20
	bl	printf
	sub	r3, fp, #520
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #520
	mov	r3, #0
	ldr	r0, [fp, #-1040]
	bl	send
	ldr	r0, .L4+24
	bl	puts
	ldr	r0, [fp, #-1040]
	bl	close
	mov	r0, #0
	bl	pthread_exit
.L5:
	.align	2
.L4:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	client_thread, .-client_thread
	.section	.rodata
	.align	2
.LC7:
	.ascii	"socket\000"
	.align	2
.LC8:
	.ascii	"127.0.0.1\000"
	.align	2
.LC9:
	.ascii	"bind\000"
	.align	2
.LC10:
	.ascii	"listen\000"
	.align	2
.LC11:
	.ascii	"esperando conexao\000"
	.align	2
.LC12:
	.ascii	"accept\000"
	.align	2
.LC13:
	.ascii	"malloc\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L14+4
	bl	logexit
.L7:
	sub	r3, fp, #72
	mov	r2, r3
	ldr	r1, .L14+8
	mov	r0, #2
	bl	inet_pton
	sub	r3, fp, #40
	str	r3, [fp, #-56]
	mov	r3, #2
	strh	r3, [fp, #-40]	@ movhi
	ldr	r0, .L14+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-36]
	mov	r2, #16
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-60]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L14+16
	bl	logexit
.L8:
	mov	r1, #10
	ldr	r0, [fp, #-60]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L14+20
	bl	logexit
.L9:
	ldr	r0, .L14+24
	bl	puts
.L12:
	sub	r3, fp, #24
	str	r3, [fp, #-52]
	mov	r3, #16
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	accept
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L14+28
	bl	logexit
.L10:
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L14+32
	bl	logexit
.L11:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	ip, r3, #4
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r0, fp, #64
	ldr	r3, [fp, #-44]
	ldr	r2, .L14+36
	mov	r1, #0
	bl	pthread_create
	b	.L12
.L15:
	.align	2
.L14:
	.word	.LC14
	.word	.LC7
	.word	.LC8
	.word	5152
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	client_thread
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
