	.file	"256766.c"
	.intel_syntax noprefix
	.text
	.globl	socket_desc
	.bss
	.align 4
	.type	socket_desc, @object
	.size	socket_desc, 4
socket_desc:
	.zero	4
	.globl	sock1
	.align 4
	.type	sock1, @object
	.size	sock1, 4
sock1:
	.zero	4
	.globl	sock2
	.align 4
	.type	sock2, @object
	.size	sock2, 4
sock2:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Erro no Write!"
	.text
	.globl	envia
	.type	envia, @function
envia:
.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	envia, .-envia
	.section	.rodata
.LC1:
	.string	"Erro no Read!"
.LC2:
	.string	"Alguem saiu!"
	.text
	.globl	recebe
	.type	recebe, @function
recebe:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L5:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sock1[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR sock2[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR socket_desc[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	recebe, .-recebe
	.globl	Zerado
	.type	Zerado, @function
Zerado:
.LFB8:
	.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 -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L10
	mov	eax, 0
	jmp	.L11
.L10:
	add	DWORD PTR -4[rbp], 1
.L9:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L12
	mov	eax, 1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Zerado, .-Zerado
	.section	.rodata
	.align 8
.LC3:
	.string	"\n[Game Server] Erro! Inicie o programa com o argumento: [porta].\n"
.LC4:
	.string	"[Game Server] Iniciado!"
	.align 8
.LC5:
	.string	"\n[Game Server] Erro no Socket."
.LC6:
	.string	"\n[Game Server] Erro no Bind."
	.align 8
.LC7:
	.string	"\n[Game Server] Esperando pelos jogadores...\n"
.LC8:
	.string	"Jogador [1]: Conectado!"
.LC9:
	.string	"Jogador [2]: Conectado!"
	.align 8
.LC10:
	.string	"Jogador [1]: Aguardando pelo tabuleiro..."
	.align 8
.LC11:
	.string	"Jogador [1]: Tabuleiro recebido."
	.align 8
.LC12:
	.string	"Jogador [2]: Aguardando pelo tabuleiro..."
	.align 8
.LC13:
	.string	"Jogador [2]: Tabuleiro recebido."
	.align 8
.LC14:
	.string	"\n[Game Server] Inicio do Jogo!"
.LC15:
	.string	"[Game Server] Fim de Jogo!"
	.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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -256[rbp], 1
	mov	DWORD PTR -252[rbp], 2
	mov	DWORD PTR -248[rbp], 3
	mov	DWORD PTR -244[rbp], 5
	mov	DWORD PTR -240[rbp], 1
	mov	DWORD PTR -236[rbp], 2
	mov	DWORD PTR -232[rbp], 3
	mov	DWORD PTR -228[rbp], 5
	cmp	DWORD PTR -356[rbp], 2
	je	.L14
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR socket_desc[rip], eax
	mov	eax, DWORD PTR socket_desc[rip]
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	WORD PTR -304[rbp], 2
	mov	DWORD PTR -300[rbp], 0
	mov	rax, QWORD PTR -368[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 -302[rbp], ax
	mov	eax, DWORD PTR socket_desc[rip]
	lea	rcx, -304[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR socket_desc[rip]
	mov	esi, 2
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -344[rbp], 16
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, DWORD PTR socket_desc[rip]
	lea	rdx, -344[rbp]
	lea	rcx, -288[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR sock1[rip], eax
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -340[rbp], 1
	mov	eax, DWORD PTR sock1[rip]
	lea	rcx, -340[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR socket_desc[rip]
	lea	rdx, -344[rbp]
	lea	rcx, -272[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR sock2[rip], eax
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -340[rbp], 2
	mov	eax, DWORD PTR sock2[rip]
	lea	rcx, -340[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR socket_desc[rip]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -340[rbp], 3
	mov	eax, DWORD PTR sock1[rip]
	lea	rcx, -340[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sock1[rip]
	lea	rcx, -224[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	recebe
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -340[rbp], 3
	mov	eax, DWORD PTR sock2[rip]
	lea	rcx, -340[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sock2[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	recebe
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	DWORD PTR -340[rbp], 4
	mov	eax, DWORD PTR sock1[rip]
	lea	rcx, -340[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	DWORD PTR -340[rbp], 6
	mov	eax, DWORD PTR sock2[rip]
	lea	rcx, -340[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR sock1[rip]
	mov	DWORD PTR -332[rbp], eax
	mov	eax, DWORD PTR sock2[rip]
	mov	DWORD PTR -328[rbp], eax
	lea	rax, -112[rbp]
	mov	QWORD PTR -320[rbp], rax
	lea	rax, -240[rbp]
	mov	QWORD PTR -312[rbp], rax
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L31:
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	recebe
	mov	eax, DWORD PTR -340[rbp]
	mov	DWORD PTR -336[rbp], eax
	mov	DWORD PTR -340[rbp], 5
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR -336[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L17
	mov	eax, DWORD PTR -336[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	mov	DWORD PTR -340[rbp], 1
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -336[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	sal	rax, 2
	lea	rdx, -12[rax]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], 0
	jne	.L19
	mov	eax, DWORD PTR -336[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -340[rbp], eax
	jmp	.L20
.L19:
	mov	DWORD PTR -340[rbp], 2
.L20:
	mov	eax, DWORD PTR -336[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 2
.L18:
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	lea	rcx, -336[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	Zerado
	test	eax, eax
	je	.L21
	mov	DWORD PTR -340[rbp], 7
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	DWORD PTR -340[rbp], 8
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR sock1[rip]
	lea	rcx, -112[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR sock2[rip]
	lea	rcx, -224[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	nop
	mov	eax, DWORD PTR sock1[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR sock2[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L33
	jmp	.L34
.L21:
	mov	DWORD PTR -340[rbp], 6
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -332[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	DWORD PTR -340[rbp], 4
	lea	rcx, -340[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	envia
	mov	eax, DWORD PTR sock1[rip]
	cmp	DWORD PTR -332[rbp], eax
	jne	.L23
	mov	eax, DWORD PTR sock2[rip]
	jmp	.L24
.L23:
	mov	eax, DWORD PTR sock1[rip]
.L24:
	mov	DWORD PTR -332[rbp], eax
	mov	eax, DWORD PTR sock1[rip]
	cmp	DWORD PTR -328[rbp], eax
	jne	.L25
	mov	eax, DWORD PTR sock2[rip]
	jmp	.L26
.L25:
	mov	eax, DWORD PTR sock1[rip]
.L26:
	mov	DWORD PTR -328[rbp], eax
	lea	rax, -224[rbp]
	cmp	QWORD PTR -320[rbp], rax
	jne	.L27
	lea	rax, -112[rbp]
	jmp	.L28
.L27:
	lea	rax, -224[rbp]
.L28:
	mov	QWORD PTR -320[rbp], rax
	lea	rax, -256[rbp]
	cmp	QWORD PTR -312[rbp], rax
	jne	.L29
	lea	rax, -240[rbp]
	jmp	.L30
.L29:
	lea	rax, -256[rbp]
.L30:
	mov	QWORD PTR -312[rbp], rax
	jmp	.L31
.L34:
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"256766.c"
	.text
	.comm	socket_desc,4,4
	.comm	sock1,4,4
	.comm	sock2,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Erro no Write!\000"
	.text
	.align	2
	.global	envia
	.syntax unified
	.arm
	.fpu softvfp
	.type	envia, %function
envia:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L4
	bl	perror
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.size	envia, .-envia
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Erro no Read!\000"
	.align	2
.LC3:
	.ascii	"Alguem saiu!\000"
	.text
	.align	2
	.global	recebe
	.syntax unified
	.arm
	.fpu softvfp
	.type	recebe, %function
recebe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L10
	bl	perror
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L10+4
	bl	puts
	ldr	r3, .L10+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L10+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC3
	.word	sock1
	.word	sock2
	.word	socket_desc
	.size	recebe, .-recebe
	.align	2
	.global	Zerado
	.syntax unified
	.arm
	.fpu softvfp
	.type	Zerado, %function
Zerado:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L13
.L16:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L16
	mov	r3, #1
.L15:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	Zerado, .-Zerado
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012[Game Server] Erro! Inicie o programa com o arg"
	.ascii	"umento: [porta].\012\000"
	.align	2
.LC5:
	.ascii	"[Game Server] Iniciado!\000"
	.align	2
.LC6:
	.ascii	"\012[Game Server] Erro no Socket.\000"
	.align	2
.LC7:
	.ascii	"\012[Game Server] Erro no Bind.\000"
	.align	2
.LC8:
	.ascii	"\012[Game Server] Esperando pelos jogadores...\012\000"
	.align	2
.LC9:
	.ascii	"Jogador [1]: Conectado!\000"
	.align	2
.LC10:
	.ascii	"Jogador [2]: Conectado!\000"
	.align	2
.LC11:
	.ascii	"Jogador [1]: Aguardando pelo tabuleiro...\000"
	.align	2
.LC12:
	.ascii	"Jogador [1]: Tabuleiro recebido.\000"
	.align	2
.LC13:
	.ascii	"Jogador [2]: Aguardando pelo tabuleiro...\000"
	.align	2
.LC14:
	.ascii	"Jogador [2]: Tabuleiro recebido.\000"
	.align	2
.LC15:
	.ascii	"\012[Game Server] Inicio do Jogo!\000"
	.align	2
.LC16:
	.ascii	"[Game Server] Fim de Jogo!\000"
	.align	2
.LC0:
	.word	1
	.word	2
	.word	3
	.word	5
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L39+4
	sub	ip, fp, #240
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L39+4
	sub	ip, fp, #224
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-328]
	cmp	r3, #2
	beq	.L18
	ldr	r0, .L39+8
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	ldr	r0, .L39+12
	bl	printf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L39+16
	str	r3, [r2]
	ldr	r3, .L39+16
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L39+20
	bl	puts
	mov	r0, #1
	bl	exit
.L19:
	sub	r3, fp, #4
	sub	r3, r3, #284
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-332]
	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, #4
	sub	r3, r3, #284
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L39+16
	ldr	r3, [r3]
	sub	r1, fp, #288
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L39+24
	bl	puts
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, .L39+16
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-320]
	ldr	r0, .L39+28
	bl	puts
	ldr	r3, .L39+16
	ldr	r3, [r3]
	sub	r2, fp, #320
	sub	r1, fp, #272
	mov	r0, r3
	bl	accept
	mov	r3, r0
	ldr	r2, .L39+32
	str	r3, [r2]
	ldr	r0, .L39+36
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-316]
	ldr	r3, .L39+32
	ldr	r3, [r3]
	sub	r1, fp, #316
	mov	r2, #4
	mov	r0, r3
	bl	envia
	ldr	r3, .L39+16
	ldr	r3, [r3]
	sub	r2, fp, #320
	sub	r1, fp, #256
	mov	r0, r3
	bl	accept
	mov	r3, r0
	ldr	r2, .L39+40
	str	r3, [r2]
	ldr	r0, .L39+44
	bl	puts
	mov	r3, #2
	str	r3, [fp, #-316]
	ldr	r3, .L39+40
	ldr	r3, [r3]
	sub	r1, fp, #316
	mov	r2, #4
	mov	r0, r3
	bl	envia
	ldr	r3, .L39+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #3
	str	r3, [fp, #-316]
	ldr	r3, .L39+32
	ldr	r3, [r3]
	sub	r1, fp, #316
	mov	r2, #4
	mov	r0, r3
	bl	envia
	ldr	r0, .L39+48
	bl	puts
	ldr	r3, .L39+32
	ldr	r3, [r3]
	sub	r1, fp, #208
	mov	r2, #100
	mov	r0, r3
	bl	recebe
	ldr	r0, .L39+52
	bl	puts
	mov	r3, #3
	str	r3, [fp, #-316]
	ldr	r3, .L39+40
	ldr	r3, [r3]
	sub	r1, fp, #316
	mov	r2, #4
	mov	r0, r3
	bl	envia
	ldr	r0, .L39+56
	bl	puts
	ldr	r3, .L39+40
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	recebe
	ldr	r0, .L39+60
	bl	puts
	mov	r3, #4
	str	r3, [fp, #-316]
	ldr	r3, .L39+32
	ldr	r3, [r3]
	sub	r1, fp, #316
	mov	r2, #4
	mov	r0, r3
	bl	envia
	mov	r3, #6
	str	r3, [fp, #-316]
	ldr	r3, .L39+40
	ldr	r3, [r3]
	sub	r1, fp, #316
	mov	r2, #4
	mov	r0, r3
	bl	envia
	ldr	r3, .L39+32
	ldr	r3, [r3]
	str	r3, [fp, #-304]
	ldr	r3, .L39+40
	ldr	r3, [r3]
	str	r3, [fp, #-300]
	sub	r3, fp, #108
	str	r3, [fp, #-308]
	sub	r3, fp, #224
	str	r3, [fp, #-296]
	ldr	r0, .L39+64
	bl	puts
.L35:
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	recebe
	ldr	r3, [fp, #-316]
	str	r3, [fp, #-312]
	mov	r3, #5
	str	r3, [fp, #-316]
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	envia
	ldr	r3, [fp, #-312]
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-312]
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r3, r2
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-316]
	b	.L22
.L21:
	ldr	r3, [fp, #-312]
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #-1073741821
	lsl	r3, r3, #2
	ldr	r2, [fp, #-296]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-312]
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-316]
	b	.L24
.L23:
	mov	r3, #2
	str	r3, [fp, #-316]
.L24:
	ldr	r3, [fp, #-312]
	mov	r2, r3
	ldr	r3, [fp, #-308]
	add	r3, r3, r2
	mov	r2, #2
	strb	r2, [r3]
.L22:
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	envia
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	envia
	sub	r3, fp, #312
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	envia
	ldr	r0, [fp, #-296]
	bl	Zerado
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	mov	r3, #7
	str	r3, [fp, #-316]
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	envia
	mov	r3, #8
	str	r3, [fp, #-316]
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	envia
	ldr	r3, .L39+32
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #100
	mov	r0, r3
	bl	envia
	ldr	r3, .L39+40
	ldr	r3, [r3]
	sub	r1, fp, #208
	mov	r2, #100
	mov	r0, r3
	bl	envia
	nop
	ldr	r3, .L39+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L39+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L39+68
	bl	puts
	mov	r3, #0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	b	.L38
.L25:
	mov	r3, #6
	str	r3, [fp, #-316]
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	envia
	mov	r3, #4
	str	r3, [fp, #-316]
	sub	r3, fp, #316
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	envia
	ldr	r3, .L39+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-304]
	cmp	r2, r3
	bne	.L27
	ldr	r3, .L39+40
	ldr	r3, [r3]
	b	.L28
.L27:
	ldr	r3, .L39+32
	ldr	r3, [r3]
.L28:
	str	r3, [fp, #-304]
	ldr	r3, .L39+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-300]
	cmp	r2, r3
	bne	.L29
	ldr	r3, .L39+40
	ldr	r3, [r3]
	b	.L30
.L29:
	ldr	r3, .L39+32
	ldr	r3, [r3]
.L30:
	str	r3, [fp, #-300]
	sub	r3, fp, #208
	ldr	r2, [fp, #-308]
	cmp	r2, r3
	bne	.L31
	sub	r3, fp, #108
	b	.L32
.L31:
	sub	r3, fp, #208
.L32:
	str	r3, [fp, #-308]
	sub	r3, fp, #240
	ldr	r2, [fp, #-296]
	cmp	r2, r3
	bne	.L33
	sub	r3, fp, #224
	b	.L34
.L33:
	sub	r3, fp, #240
.L34:
	str	r3, [fp, #-296]
	b	.L35
.L38:
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC17
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	socket_desc
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	sock1
	.word	.LC9
	.word	sock2
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
