	.file	"885455.c"
	.intel_syntax noprefix
	.text
	.globl	si_me
	.bss
	.align 16
	.type	si_me, @object
	.size	si_me, 16
si_me:
	.zero	16
	.globl	si_other
	.align 16
	.type	si_other, @object
	.size	si_other, 16
si_other:
	.zero	16
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	slen
	.data
	.align 4
	.type	slen, @object
	.size	slen, 4
slen:
	.long	16
	.globl	recv_len
	.bss
	.align 4
	.type	recv_len, @object
	.size	recv_len, 4
recv_len:
	.zero	4
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 100
buffer:
	.zero	100
	.section	.rodata
	.align 8
.LC0:
	.string	"Esperando a que el segundo jugador se una..."
.LC1:
	.string	"Invalid data."
	.align 8
.LC2:
	.string	"\nEl usuario [%s] se ha unido\n\n"
	.align 8
.LC3:
	.string	"Ingresa tu nombre de usuario: "
.LC4:
	.string	"%s"
.LC5:
	.string	"0"
	.align 8
.LC6:
	.string	"\nEsperando a que [%s] tire sus dados\n\n"
.LC7:
	.string	"Tus dados:"
.LC8:
	.string	"\nDados de [%s]:\n"
.LC9:
	.string	"Puntaje de la ronda:"
.LC10:
	.string	"\tPuntaje de [%s]: %d\n"
	.align 8
.LC11:
	.string	"%s es un ganador, %s es un perdedor\n"
.LC12:
	.string	"Empate"
	.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, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 0
	call	set_server
	mov	DWORD PTR -296[rbp], 1
	mov	DWORD PTR -320[rbp], 1
	mov	DWORD PTR -316[rbp], 0
	mov	DWORD PTR -312[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edx, 100
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	mov	eax, DWORD PTR s[rip]
	lea	r9, slen[rip]
	lea	r8, si_other[rip]
	mov	ecx, 0
	mov	edx, 100
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	movzx	eax, BYTE PTR buffer[rip]
	cmp	al, 48
	je	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L18
.L2:
	mov	edx, 100
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	mov	eax, DWORD PTR s[rip]
	lea	r9, slen[rip]
	lea	r8, si_other[rip]
	mov	ecx, 0
	mov	edx, 100
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	lea	rax, -112[rbp]
	lea	rsi, buffer[rip]
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC5[rip]
	call	send_data
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	send_data
	mov	eax, 0
	call	menu
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 1
	jne	.L4
	mov	DWORD PTR -308[rbp], 0
	jmp	.L5
.L15:
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR s[rip]
	lea	r9, slen[rip]
	lea	r8, si_other[rip]
	mov	ecx, 0
	mov	edx, 100
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, buffer[rip]
	call	char_to_dados
	mov	edx, 100
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	calcular_puntaje
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	je	.L6
	cmp	DWORD PTR -308[rbp], 4
	je	.L6
	mov	eax, 0
	call	menu_juego
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -320[rbp], eax
.L6:
	cmp	DWORD PTR -320[rbp], 0
	je	.L7
	cmp	DWORD PTR -308[rbp], 0
	je	.L8
	mov	DWORD PTR -304[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	preguntar_respuesta
	test	eax, eax
	je	.L10
	mov	eax, 0
	call	dado
	movsx	edx, al
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	mov	DWORD PTR -256[rbp+rax*4], edx
.L10:
	add	DWORD PTR -304[rbp], 1
.L9:
	cmp	DWORD PTR -304[rbp], 4
	jle	.L11
	jmp	.L12
.L8:
	mov	DWORD PTR -300[rbp], 0
	jmp	.L13
.L14:
	mov	eax, 0
	call	dado
	movsx	edx, al
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	mov	DWORD PTR -256[rbp+rax*4], edx
	add	DWORD PTR -300[rbp], 1
.L13:
	cmp	DWORD PTR -300[rbp], 4
	jle	.L14
.L12:
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	calcular_puntaje
	mov	DWORD PTR -312[rbp], eax
.L7:
	lea	rdx, -230[rbp]
	lea	rax, -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dados_to_char
	lea	rax, -230[rbp]
	mov	rdi, rax
	call	send_data
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	imprimir_dados
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	imprimir_dados
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -312[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -316[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -308[rbp], 1
.L5:
	cmp	DWORD PTR -308[rbp], 4
	jle	.L15
	mov	eax, DWORD PTR -312[rbp]
	cmp	eax, DWORD PTR -316[rbp]
	jle	.L16
	lea	rdx, -112[rbp]
	lea	rax, -224[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L16:
	mov	eax, DWORD PTR -312[rbp]
	cmp	eax, DWORD PTR -316[rbp]
	jge	.L17
	lea	rdx, -224[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L17:
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L4:
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC13:
	.string	"[1] Iniciar juego"
.LC14:
	.string	"[2] Salir"
.LC15:
	.string	"Opcion: "
.LC16:
	.string	"%d"
	.text
	.globl	menu
	.type	menu, @function
menu:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L21:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L21
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jg	.L21
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	menu, .-menu
	.section	.rodata
.LC17:
	.string	"\n[0] Tirar"
.LC18:
	.string	"[1] No tirar"
	.text
	.globl	menu_juego
	.type	menu_juego, @function
menu_juego:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
.L25:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	js	.L25
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jg	.L25
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	menu_juego, .-menu_juego
	.globl	dado
	.type	dado, @function
dado:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	mov	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dado, .-dado
	.globl	comparar
	.type	comparar, @function
comparar:
.LFB10:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 1
	jmp	.L31
.L35:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L32
	add	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L33
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
.L33:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L34
.L32:
	add	DWORD PTR -12[rbp], 1
.L34:
	add	DWORD PTR -8[rbp], 1
.L31:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L35
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L36
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
.L36:
	cmp	DWORD PTR -20[rbp], 3
	je	.L37
	cmp	DWORD PTR -20[rbp], 3
	jg	.L38
	cmp	DWORD PTR -20[rbp], 2
	je	.L39
	cmp	DWORD PTR -20[rbp], 2
	jg	.L38
	cmp	DWORD PTR -20[rbp], 0
	je	.L40
	cmp	DWORD PTR -20[rbp], 1
	je	.L41
	jmp	.L38
.L40:
	mov	eax, 6
	jmp	.L30
.L41:
	cmp	DWORD PTR -16[rbp], 4
	jne	.L43
	mov	eax, 5
	jmp	.L30
.L43:
	cmp	DWORD PTR -16[rbp], 3
	jne	.L48
	mov	eax, 4
	jmp	.L30
.L39:
	cmp	DWORD PTR -16[rbp], 3
	jne	.L46
	mov	eax, 3
	jmp	.L30
.L46:
	cmp	DWORD PTR -16[rbp], 2
	jne	.L49
	mov	eax, 2
	jmp	.L30
.L37:
	mov	eax, 1
	jmp	.L30
.L38:
	mov	eax, 0
	jmp	.L30
.L48:
	nop
	jmp	.L45
.L49:
	nop
.L45:
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	comparar, .-comparar
	.globl	selection_sort
	.type	selection_sort, @function
selection_sort:
.LFB11:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 1
	jmp	.L51
.L55:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L52
.L54:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	sub	DWORD PTR -12[rbp], 1
.L52:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L53
	cmp	DWORD PTR -12[rbp], 0
	jns	.L54
.L53:
	add	DWORD PTR -8[rbp], 1
.L51:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L55
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	selection_sort, .-selection_sort
	.globl	swap
	.type	swap, @function
swap:
.LFB12:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	swap, .-swap
	.section	.rodata
.LC19:
	.string	"----- ----- ----- ----- -----"
	.align 8
.LC20:
	.string	"| %c | | %c | | %c | | %c | | %c |\n"
.LC21:
	.string	"  0     1     2     3     4"
	.text
	.globl	imprimir_dados
	.type	imprimir_dados, @function
imprimir_dados:
.LFB13:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -14[rbp], 1363816761
	mov	WORD PTR -10[rbp], 16715
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	mov	BYTE PTR -19[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	mov	BYTE PTR -18[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	mov	BYTE PTR -17[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	mov	BYTE PTR -16[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 16
	mov	eax, DWORD PTR [rax]
	cdqe
	movzx	eax, BYTE PTR -14[rbp+rax]
	mov	BYTE PTR -15[rbp], al
	lea	rdi, .LC19[rip]
	call	puts@PLT
	movsx	edi, BYTE PTR -15[rbp]
	movsx	esi, BYTE PTR -16[rbp]
	movsx	ecx, BYTE PTR -17[rbp]
	movsx	edx, BYTE PTR -18[rbp]
	movsx	eax, BYTE PTR -19[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	imprimir_dados, .-imprimir_dados
	.globl	dados_to_char
	.type	dados_to_char, @function
dados_to_char:
.LFB14:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L60
.L61:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR [rax]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L60:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L61
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	dados_to_char, .-dados_to_char
	.globl	char_to_dados
	.type	char_to_dados, @function
char_to_dados:
.LFB15:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
.L63:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -16[rbp], rdx
	lea	edx, -48[rcx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L63
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	char_to_dados, .-char_to_dados
	.section	.rodata
	.align 8
.LC22:
	.string	"Quieres cambiar el dado %d [s, n]? "
.LC23:
	.string	" %c"
	.text
	.globl	preguntar_respuesta
	.type	preguntar_respuesta, @function
preguntar_respuesta:
.LFB16:
	.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L66:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -9[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 115
	je	.L65
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 110
	jne	.L66
.L65:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 115
	jne	.L67
	mov	eax, 1
	jmp	.L69
.L67:
	mov	eax, 0
.L69:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	preguntar_respuesta, .-preguntar_respuesta
	.globl	calcular_puntaje
	.type	calcular_puntaje, @function
calcular_puntaje:
.LFB17:
	.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]
	mov	esi, 5
	mov	rdi, rax
	call	selection_sort
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	comparar
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	calcular_puntaje, .-calcular_puntaje
	.globl	set_server
	.type	set_server, @function
set_server:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR s[rip], eax
	mov	edx, 16
	mov	esi, 0
	lea	rdi, si_me[rip]
	call	memset@PLT
	mov	WORD PTR si_me[rip], 2
	mov	edi, 8888
	call	htons@PLT
	mov	WORD PTR si_me[rip+2], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR si_me[rip+4], eax
	mov	eax, DWORD PTR s[rip]
	mov	edx, 16
	lea	rsi, si_me[rip]
	mov	edi, eax
	call	bind@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	set_server, .-set_server
	.globl	send_data
	.type	send_data, @function
send_data:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR slen[rip]
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR s[rip]
	mov	rsi, QWORD PTR -24[rbp]
	mov	r9d, ebx
	lea	r8, si_other[rip]
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	send_data, .-send_data
	.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	"885455.c"
	.text
	.comm	si_me,16,4
	.comm	si_other,16,4
	.comm	s,4,4
	.comm	i,4,4
	.global	slen
	.data
	.align	2
	.type	slen, %object
	.size	slen, 4
slen:
	.word	16
	.comm	recv_len,4,4
	.comm	buffer,100,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Esperando a que el segundo jugador se una...\000"
	.align	2
.LC1:
	.ascii	"Invalid data.\000"
	.align	2
.LC2:
	.ascii	"\012El usuario [%s] se ha unido\012\012\000"
	.align	2
.LC3:
	.ascii	"Ingresa tu nombre de usuario: \000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"0\000"
	.align	2
.LC6:
	.ascii	"\012Esperando a que [%s] tire sus dados\012\012\000"
	.align	2
.LC7:
	.ascii	"Tus dados:\000"
	.align	2
.LC8:
	.ascii	"\012Dados de [%s]:\012\000"
	.align	2
.LC9:
	.ascii	"Puntaje de la ronda:\000"
	.align	2
.LC10:
	.ascii	"\011Puntaje de [%s]: %d\012\000"
	.align	2
.LC11:
	.ascii	"%s es un ganador, %s es un perdedor\012\000"
	.align	2
.LC12:
	.ascii	"Empate\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	set_server
	mov	r3, #1
	str	r3, [fp, #-264]
	mov	r3, #1
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-280]
	ldr	r0, .L20+4
	bl	puts
	mov	r2, #100
	mov	r1, #0
	ldr	r0, .L20+8
	bl	memset
	ldr	r3, .L20+12
	ldr	r0, [r3]
	ldr	r3, .L20+16
	str	r3, [sp, #4]
	ldr	r3, .L20+20
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #100
	ldr	r1, .L20+8
	bl	recvfrom
	ldr	r3, .L20+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L2
	ldr	r0, .L20+24
	bl	puts
	mov	r3, #1
	b	.L18
.L2:
	mov	r2, #100
	mov	r1, #0
	ldr	r0, .L20+8
	bl	memset
	ldr	r3, .L20+12
	ldr	r0, [r3]
	ldr	r3, .L20+16
	str	r3, [sp, #4]
	ldr	r3, .L20+20
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #100
	ldr	r1, .L20+8
	bl	recvfrom
	sub	r3, fp, #108
	ldr	r1, .L20+8
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L20+28
	bl	printf
	ldr	r0, .L20+32
	bl	printf
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L20+36
	bl	__isoc99_scanf
	ldr	r0, .L20+40
	bl	send_data
	sub	r3, fp, #208
	mov	r0, r3
	bl	send_data
	bl	menu
	str	r0, [fp, #-260]
	ldr	r3, [fp, #-260]
	cmp	r3, #1
	bne	.L4
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L5
.L15:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L20+44
	bl	printf
	ldr	r3, .L20+12
	ldr	r0, [r3]
	ldr	r3, .L20+16
	str	r3, [sp, #4]
	ldr	r3, .L20+20
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #100
	ldr	r1, .L20+8
	bl	recvfrom
	sub	r3, fp, #256
	mov	r1, r3
	ldr	r0, .L20+8
	bl	char_to_dados
	mov	r2, #100
	mov	r1, #0
	ldr	r0, .L20+8
	bl	memset
	sub	r3, fp, #256
	mov	r0, r3
	bl	calcular_puntaje
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-276]
	cmp	r3, #4
	beq	.L6
	bl	menu_juego
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-288]
.L6:
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	str	r3, [fp, #-272]
	b	.L9
.L11:
	ldr	r0, [fp, #-272]
	bl	preguntar_respuesta
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	bl	dado
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-272]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-232]
.L10:
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L9:
	ldr	r3, [fp, #-272]
	cmp	r3, #4
	ble	.L11
	b	.L12
.L8:
	mov	r3, #0
	str	r3, [fp, #-268]
	b	.L13
.L14:
	bl	dado
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-268]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-232]
	ldr	r3, [fp, #-268]
	add	r3, r3, #1
	str	r3, [fp, #-268]
.L13:
	ldr	r3, [fp, #-268]
	cmp	r3, #4
	ble	.L14
.L12:
	sub	r3, fp, #236
	mov	r0, r3
	bl	calcular_puntaje
	str	r0, [fp, #-280]
.L7:
	sub	r2, fp, #216
	sub	r3, fp, #236
	mov	r1, r2
	mov	r0, r3
	bl	dados_to_char
	sub	r3, fp, #216
	mov	r0, r3
	bl	send_data
	ldr	r0, .L20+48
	bl	puts
	sub	r3, fp, #236
	mov	r0, r3
	bl	imprimir_dados
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L20+52
	bl	printf
	sub	r3, fp, #256
	mov	r0, r3
	bl	imprimir_dados
	ldr	r0, .L20+56
	bl	puts
	sub	r3, fp, #208
	ldr	r2, [fp, #-280]
	mov	r1, r3
	ldr	r0, .L20+60
	bl	printf
	sub	r3, fp, #108
	ldr	r2, [fp, #-284]
	mov	r1, r3
	ldr	r0, .L20+60
	bl	printf
	ldr	r3, [fp, #-276]
	add	r3, r3, #1
	str	r3, [fp, #-276]
.L5:
	ldr	r3, [fp, #-276]
	cmp	r3, #4
	ble	.L15
	ldr	r2, [fp, #-280]
	ldr	r3, [fp, #-284]
	cmp	r2, r3
	ble	.L16
	sub	r2, fp, #108
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, .L20+64
	bl	printf
	b	.L4
.L16:
	ldr	r2, [fp, #-280]
	ldr	r3, [fp, #-284]
	cmp	r2, r3
	bge	.L17
	sub	r2, fp, #208
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L20+64
	bl	printf
	b	.L4
.L17:
	ldr	r0, .L20+68
	bl	puts
.L4:
	mov	r3, #0
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC13
	.word	.LC0
	.word	buffer
	.word	s
	.word	slen
	.word	si_other
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
.LC14:
	.ascii	"[1] Iniciar juego\000"
	.align	2
.LC15:
	.ascii	"[2] Salir\000"
	.align	2
.LC16:
	.ascii	"Opcion: \000"
	.align	2
.LC17:
	.ascii	"%d\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L26+4
	bl	puts
	ldr	r0, .L26+8
	bl	puts
.L23:
	ldr	r0, .L26+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L26+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L23
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bgt	.L23
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC18
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC19:
	.ascii	"\012[0] Tirar\000"
	.align	2
.LC20:
	.ascii	"[1] No tirar\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menu_juego
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu_juego, %function
menu_juego:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L32+4
	bl	puts
	ldr	r0, .L32+8
	bl	puts
.L29:
	ldr	r0, .L32+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L32+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L29
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bgt	.L29
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC21
	.word	.LC19
	.word	.LC20
	.word	.LC16
	.word	.LC17
	.size	menu_juego, .-menu_juego
	.align	2
	.global	dado
	.syntax unified
	.arm
	.fpu softvfp
	.type	dado, %function
dado:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r1, r0
	ldr	r3, .L36
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	mov	r0, r3
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	715827883
	.size	dado, .-dado
	.align	2
	.global	comparar
	.syntax unified
	.arm
	.fpu softvfp
	.type	comparar, %function
comparar:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L39
.L43:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L40
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L41
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
.L41:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L42
.L40:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L42:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L39:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L43
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L44
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
.L44:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L45
.L47:
	.word	.L50
	.word	.L49
	.word	.L48
	.word	.L46
.L50:
	mov	r3, #6
	b	.L38
.L49:
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bne	.L52
	mov	r3, #5
	b	.L38
.L52:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bne	.L57
	mov	r3, #4
	b	.L38
.L48:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bne	.L55
	mov	r3, #3
	b	.L38
.L55:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L58
	mov	r3, #2
	b	.L38
.L46:
	mov	r3, #1
	b	.L38
.L45:
	mov	r3, #0
	b	.L38
.L57:
	nop
	b	.L54
.L58:
	nop
.L54:
.L38:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	comparar, .-comparar
	.align	2
	.global	selection_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	selection_sort, %function
selection_sort:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L60
.L64:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L61
.L63:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L61:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L62
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L63
.L62:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L60:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L64
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	selection_sort, .-selection_sort
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.section	.rodata
	.align	2
.LC23:
	.ascii	"----- ----- ----- ----- -----\000"
	.align	2
.LC24:
	.ascii	"| %c | | %c | | %c | | %c | | %c |\012\000"
	.align	2
.LC25:
	.ascii	"  0     1     2     3     4\000"
	.align	2
.LC22:
	.ascii	"91JQKA"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	imprimir_dados
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimir_dados, %function
imprimir_dados:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L68+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]
	strb	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #-32]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]
	strb	r3, [fp, #-18]
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	ldr	r3, [r3]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]
	strb	r3, [fp, #-17]
	ldr	r0, .L68+8
	bl	puts
	ldrb	r1, [fp, #-21]	@ zero_extendqisi2
	ldrb	r0, [fp, #-20]	@ zero_extendqisi2
	ldrb	ip, [fp, #-19]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L68+12
	bl	printf
	ldr	r0, .L68+8
	bl	puts
	ldr	r0, .L68+16
	bl	puts
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC26
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	imprimir_dados, .-imprimir_dados
	.align	2
	.global	dados_to_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	dados_to_char, %function
dados_to_char:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L71
.L72:
	ldr	r3, [fp, #-16]
	add	r2, r3, #4
	str	r2, [fp, #-16]
	ldr	r3, [r3]
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L71:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L72
	ldr	r3, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	dados_to_char, .-dados_to_char
	.align	2
	.global	char_to_dados
	.syntax unified
	.arm
	.fpu softvfp
	.type	char_to_dados, %function
char_to_dados:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
.L74:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r2, r3, #4
	str	r2, [fp, #-12]
	sub	r2, r1, #48
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L74
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	char_to_dados, .-char_to_dados
	.section	.rodata
	.align	2
.LC27:
	.ascii	"Quieres cambiar el dado %d [s, n]? \000"
	.align	2
.LC28:
	.ascii	" %c\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	preguntar_respuesta
	.syntax unified
	.arm
	.fpu softvfp
	.type	preguntar_respuesta, %function
preguntar_respuesta:
	@ 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	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L77:
	ldr	r1, [fp, #-16]
	ldr	r0, .L82+4
	bl	printf
	sub	r3, fp, #9
	mov	r1, r3
	ldr	r0, .L82+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #115
	beq	.L76
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L77
.L76:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L78
	mov	r3, #1
	b	.L80
.L78:
	mov	r3, #0
.L80:
	ldr	r2, .L82
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC29
	.word	.LC27
	.word	.LC28
	.size	preguntar_respuesta, .-preguntar_respuesta
	.align	2
	.global	calcular_puntaje
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcular_puntaje, %function
calcular_puntaje:
	@ 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]
	mov	r1, #5
	ldr	r0, [fp, #-16]
	bl	selection_sort
	mov	r1, #5
	ldr	r0, [fp, #-16]
	bl	comparar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	calcular_puntaje, .-calcular_puntaje
	.align	2
	.global	set_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_server, %function
set_server:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L87
	str	r3, [r2]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, .L87+4
	bl	memset
	ldr	r3, .L87+4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L87+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L87+4
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	ldr	r2, .L87+4
	str	r3, [r2, #4]
	ldr	r3, .L87
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r1, .L87+4
	mov	r0, r3
	bl	bind
	nop
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	s
	.word	si_me
	.word	8888
	.size	set_server, .-set_server
	.align	2
	.global	send_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_data, %function
send_data:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L90
	ldr	r4, [r3]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, .L90+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	ldr	r3, .L90+8
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-16]
	mov	r0, r4
	bl	sendto
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L91:
	.align	2
.L90:
	.word	s
	.word	slen
	.word	si_other
	.size	send_data, .-send_data
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
