	.file	"92327062.c"
	.intel_syntax noprefix
	.text
	.globl	chosencardseq
	.bss
	.align 4
	.type	chosencardseq, @object
	.size	chosencardseq, 4
chosencardseq:
	.zero	4
	.globl	chosentypeseq
	.align 4
	.type	chosentypeseq, @object
	.size	chosentypeseq, 4
chosentypeseq:
	.zero	4
	.globl	STORAGE
	.align 32
	.type	STORAGE, @object
	.size	STORAGE, 32
STORAGE:
	.zero	32
	.text
	.globl	throw
	.type	throw, @function
throw:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	rand@PLT
	cdq
	idiv	DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	throw, .-throw
	.section	.rodata
.LC0:
	.string	"+--------------------+"
.LC1:
	.string	"| "
.LC2:
	.string	"User #%d            "
.LC3:
	.string	"|"
.LC4:
	.string	"\033[32mType %c             \033[0m"
.LC5:
	.string	"\033[34mCard %2s            \033[0m"
	.text
	.globl	getcard
	.type	getcard, @function
getcard:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getcard, .-getcard
	.section	.rodata
.LC6:
	.string	"\t"
.LC7:
	.string	"\n"
	.text
	.globl	delegation
	.type	delegation, @function
delegation:
.LFB8:
	.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, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L5
.L19:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L6
.L18:
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	throw
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -68[rbp], 4
	jne	.L7
	cmp	DWORD PTR -32[rbp], 1
	jne	.L8
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -56[rbp], eax
	je	.L8
	add	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L8:
	cmp	DWORD PTR -32[rbp], 2
	jne	.L10
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -52[rbp], eax
	je	.L10
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip+8]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip+8]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip+8]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip+8]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L10:
	cmp	DWORD PTR -32[rbp], 3
	jne	.L11
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -48[rbp], eax
	je	.L11
	add	DWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip+16]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip+16]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip+16]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip+16]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L11:
	cmp	DWORD PTR -32[rbp], 4
	jne	.L12
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -44[rbp], eax
	je	.L12
	add	DWORD PTR -44[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip+24]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip+24]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip+24]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip+24]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L12:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	cmp	eax, 52
	jne	.L18
	jmp	.L9
.L7:
	mov	eax, DWORD PTR chosencardseq[rip]
	cmp	DWORD PTR -40[rbp], eax
	jne	.L14
	mov	eax, DWORD PTR chosentypeseq[rip]
	cmp	DWORD PTR -36[rbp], eax
	je	.L9
.L14:
	cmp	DWORD PTR -32[rbp], 1
	jne	.L15
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -56[rbp], eax
	je	.L15
	add	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L15:
	cmp	DWORD PTR -32[rbp], 2
	jne	.L16
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -52[rbp], eax
	je	.L16
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip+8]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip+8]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip+8]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip+8]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L16:
	cmp	DWORD PTR -32[rbp], 3
	jne	.L17
	mov	eax, 52
	cdq
	idiv	DWORD PTR -68[rbp]
	cmp	DWORD PTR -48[rbp], eax
	je	.L17
	add	DWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip+16]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	lea	rax, -28[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip+16]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip+16]
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -28[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getcard
	mov	rax, QWORD PTR STORAGE[rip+16]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L9
.L17:
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cmp	eax, 51
	je	.L21
	jmp	.L18
.L21:
	nop
.L9:
	add	DWORD PTR -40[rbp], 1
.L6:
	cmp	DWORD PTR -40[rbp], 12
	jle	.L18
	add	DWORD PTR -36[rbp], 1
.L5:
	cmp	DWORD PTR -36[rbp], 3
	jle	.L19
	nop
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delegation, .-delegation
	.section	.rodata
.LC8:
	.string	"w+"
.LC9:
	.string	"cardset1.ods"
.LC10:
	.string	"cardset2.ods"
.LC11:
	.string	"cardset3.ods"
.LC12:
	.string	"cardset4.ods"
.LC13:
	.string	"\033[31mcardset1"
.LC14:
	.string	"fopen: \033[0m"
.LC15:
	.string	"\033[31mcardset2"
.LC16:
	.string	"\033[31mcardset3"
.LC17:
	.string	"\033[31mcardset4"
	.text
	.globl	storage
	.type	storage, @function
storage:
.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, 32
	lea	rsi, .LC8[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC8[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rsi, .LC8[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC8[rip]
	lea	rdi, .LC12[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L23
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L23:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L24
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L24:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L25
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L25:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L26
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR STORAGE[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR STORAGE[rip+8], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR STORAGE[rip+16], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR STORAGE[rip+24], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	storage, .-storage
	.section	.rodata
.LC18:
	.string	"===================="
.LC19:
	.string	"\033[34mS : Spade\n\033[0m"
.LC20:
	.string	"\033[34mH : Heart\n\033[0m"
.LC21:
	.string	"\033[34mD : Diamond\n\033[0m"
.LC22:
	.string	"\033[34mC : clubs\n\033[0m"
.LC23:
	.string	"====================\n"
	.text
	.globl	ps
	.type	ps, @function
ps:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ps, .-ps
	.section	.rodata
.LC24:
	.string	"1"
.LC25:
	.string	"2"
.LC26:
	.string	"3"
.LC27:
	.string	"4"
.LC28:
	.string	"5"
.LC29:
	.string	"6"
.LC30:
	.string	"7"
.LC31:
	.string	"8"
.LC32:
	.string	"9"
.LC33:
	.string	"10"
.LC34:
	.string	"J"
.LC35:
	.string	"Q"
.LC36:
	.string	"K"
.LC37:
	.string	"S"
.LC38:
	.string	"H"
.LC39:
	.string	"D"
.LC40:
	.string	"C"
	.align 8
.LC41:
	.string	"\033[31mUsage : ./deal <user numbers>\n\033[0m"
.LC42:
	.string	"\n+--------------------+"
.LC43:
	.string	"+--------------------+\n"
	.align 8
.LC44:
	.string	"\033[31mInvalid user number. Should be 3 or 4 members.\n\033[0m"
.LC45:
	.string	"127.0.0.1"
.LC46:
	.string	"connect failed"
.LC47:
	.string	"connect success"
.LC48:
	.string	"send error"
.LC49:
	.string	"\033[32mDone!\n\033[0m"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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, 216
	.cfi_offset 3, -24
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC24[rip]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, .LC25[rip]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, .LC26[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rax, .LC27[rip]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, .LC28[rip]
	mov	QWORD PTR -112[rbp], rax
	lea	rax, .LC29[rip]
	mov	QWORD PTR -104[rbp], rax
	lea	rax, .LC30[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC32[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC33[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC34[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC35[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC36[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC37[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, .LC38[rip]
	mov	QWORD PTR -168[rbp], rax
	lea	rax, .LC39[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, .LC40[rip]
	mov	QWORD PTR -152[rbp], rax
	mov	eax, 0
	call	storage
	cmp	DWORD PTR -212[rbp], 2
	je	.L29
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L29:
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 4
	jne	.L30
	lea	rdx, -176[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	delegation
	jmp	.L31
.L30:
	cmp	DWORD PTR -204[rbp], 3
	jne	.L32
	mov	edi, 13
	call	throw
	mov	DWORD PTR -200[rbp], eax
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR chosencardseq[rip], eax
	mov	edi, 3
	call	throw
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR chosentypeseq[rip], eax
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, .LC42[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR chosentypeseq[rip]
	cdqe
	mov	rax, QWORD PTR -176[rbp+rax*8]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR chosencardseq[rip]
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	eax, DWORD PTR chosencardseq[rip]
	cdqe
	mov	rcx, QWORD PTR -144[rbp+rax*8]
	lea	rax, -30[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rbx, QWORD PTR STORAGE[rip+24]
	lea	rax, -30[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -30[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR chosentypeseq[rip]
	cdqe
	mov	rcx, QWORD PTR -176[rbp+rax*8]
	lea	rax, -30[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR STORAGE[rip+24]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rbx, QWORD PTR STORAGE[rip+24]
	lea	rax, -30[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -30[rbp]
	mov	rcx, rbx
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	lea	rdx, -176[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	delegation
	jmp	.L31
.L32:
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L31:
	mov	eax, 0
	call	ps
	mov	rax, QWORD PTR STORAGE[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR STORAGE[rip+8]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR STORAGE[rip+16]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR STORAGE[rip+24]
	mov	rdi, rax
	call	fclose@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -196[rbp], eax
	mov	WORD PTR -192[rbp], 2
	mov	edi, 1234
	call	htons@PLT
	mov	WORD PTR -190[rbp], ax
	lea	rax, -192[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC45[rip]
	mov	edi, 2
	call	inet_pton@PLT
	lea	rcx, -192[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L33
	lea	rdi, .LC46[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L33:
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	DWORD PTR -30[rbp], 6581861
	mov	WORD PTR -26[rbp], 0
	lea	rax, -30[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -30[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L34
	lea	rdi, .LC48[rip]
	call	puts@PLT
.L34:
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 3
	call	sleep@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"92327062.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1\000"
	.align	2
.LC1:
	.ascii	"2\000"
	.align	2
.LC2:
	.ascii	"3\000"
	.align	2
.LC3:
	.ascii	"4\000"
	.align	2
.LC4:
	.ascii	"5\000"
	.align	2
.LC5:
	.ascii	"6\000"
	.align	2
.LC6:
	.ascii	"7\000"
	.align	2
.LC7:
	.ascii	"8\000"
	.align	2
.LC8:
	.ascii	"9\000"
	.align	2
.LC9:
	.ascii	"10\000"
	.align	2
.LC10:
	.ascii	"J\000"
	.align	2
.LC11:
	.ascii	"Q\000"
	.align	2
.LC12:
	.ascii	"K\000"
	.align	2
.LC14:
	.ascii	"S\000"
	.align	2
.LC15:
	.ascii	"H\000"
	.align	2
.LC16:
	.ascii	"D\000"
	.align	2
.LC17:
	.ascii	"C\000"
	.text
	.comm	chosencardseq,4,4
	.comm	chosentypeseq,4,4
	.comm	STORAGE,16,4
	.global	__aeabi_idivmod
	.align	2
	.global	throw
	.syntax unified
	.arm
	.fpu softvfp
	.type	throw, %function
throw:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	throw, .-throw
	.section	.rodata
	.align	2
.LC19:
	.ascii	"+--------------------+\000"
	.align	2
.LC20:
	.ascii	"| \000"
	.align	2
.LC21:
	.ascii	"User #%d            \000"
	.align	2
.LC22:
	.ascii	"|\000"
	.align	2
.LC23:
	.ascii	"\033[32mType %c             \033[0m\000"
	.align	2
.LC24:
	.ascii	"\033[34mCard %2s            \033[0m\000"
	.text
	.align	2
	.global	getcard
	.syntax unified
	.arm
	.fpu softvfp
	.type	getcard, %function
getcard:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, .L4
	bl	puts
	ldr	r0, .L4+4
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+8
	bl	printf
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L4+16
	bl	printf
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4+4
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L4+20
	bl	printf
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4
	bl	puts
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	getcard, .-getcard
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC25:
	.ascii	"\011\000"
	.align	2
.LC26:
	.ascii	"\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	delegation
	.syntax unified
	.arm
	.fpu softvfp
	.type	delegation, %function
delegation:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L7
.L21:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L8
.L20:
	mov	r0, #1
	bl	sleep
	ldr	r0, [fp, #-48]
	bl	throw
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	bne	.L9
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L10
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	beq	.L10
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L12
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	beq	.L12
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L13
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	beq	.L13
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bne	.L14
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L14
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #12]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3, #12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #12]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3, #12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L14:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	cmp	r3, #52
	bne	.L20
	b	.L11
.L9:
	ldr	r3, .L24+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L16
	ldr	r3, .L24+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L11
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L17
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	beq	.L17
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L18
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	beq	.L18
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3, #4]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L19
	ldr	r1, [fp, #-48]
	mov	r0, #52
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	beq	.L19
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+8
	bl	fwrite
	sub	r3, fp, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	sub	r0, fp, #12
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	getcard
	ldr	r3, .L24+4
	ldr	r3, [r3, #8]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L24+12
	bl	fwrite
	b	.L11
.L19:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	cmp	r3, #51
	beq	.L23
	b	.L20
.L23:
	nop
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r3, [fp, #-24]
	cmp	r3, #12
	ble	.L20
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L21
	nop
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC27
	.word	STORAGE
	.word	.LC25
	.word	.LC26
	.word	chosencardseq
	.word	chosentypeseq
	.size	delegation, .-delegation
	.section	.rodata
	.align	2
.LC28:
	.ascii	"w+\000"
	.align	2
.LC29:
	.ascii	"cardset1.ods\000"
	.align	2
.LC30:
	.ascii	"cardset2.ods\000"
	.align	2
.LC31:
	.ascii	"cardset3.ods\000"
	.align	2
.LC32:
	.ascii	"cardset4.ods\000"
	.align	2
.LC33:
	.ascii	"\033[31mcardset1\000"
	.align	2
.LC34:
	.ascii	"fopen: \033[0m\000"
	.align	2
.LC35:
	.ascii	"\033[31mcardset2\000"
	.align	2
.LC36:
	.ascii	"\033[31mcardset3\000"
	.align	2
.LC37:
	.ascii	"\033[31mcardset4\000"
	.text
	.align	2
	.global	storage
	.syntax unified
	.arm
	.fpu softvfp
	.type	storage, %function
storage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L31
	ldr	r0, .L31+4
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r1, .L31
	ldr	r0, .L31+8
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r1, .L31
	ldr	r0, .L31+12
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r1, .L31
	ldr	r0, .L31+16
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L27
	ldr	r0, .L31+20
	bl	printf
	ldr	r0, .L31+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L27:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L31+28
	bl	printf
	ldr	r0, .L31+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L31+32
	bl	printf
	ldr	r0, .L31+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L31+36
	bl	printf
	ldr	r0, .L31+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L30:
	ldr	r2, .L31+40
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r2, .L31+40
	ldr	r3, [fp, #-16]
	str	r3, [r2, #4]
	ldr	r2, .L31+40
	ldr	r3, [fp, #-12]
	str	r3, [r2, #8]
	ldr	r2, .L31+40
	ldr	r3, [fp, #-8]
	str	r3, [r2, #12]
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	STORAGE
	.size	storage, .-storage
	.section	.rodata
	.align	2
.LC38:
	.ascii	"====================\000"
	.align	2
.LC39:
	.ascii	"\033[34mS : Spade\012\033[0m\000"
	.align	2
.LC40:
	.ascii	"\033[34mH : Heart\012\033[0m\000"
	.align	2
.LC41:
	.ascii	"\033[34mD : Diamond\012\033[0m\000"
	.align	2
.LC42:
	.ascii	"\033[34mC : clubs\012\033[0m\000"
	.align	2
.LC43:
	.ascii	"====================\012\000"
	.text
	.align	2
	.global	ps
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps, %function
ps:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L34
	bl	puts
	ldr	r0, .L34+4
	bl	printf
	ldr	r0, .L34+8
	bl	printf
	ldr	r0, .L34+12
	bl	printf
	ldr	r0, .L34+16
	bl	printf
	ldr	r0, .L34+20
	bl	puts
	nop
	mov	r0, r3
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	ps, .-ps
	.section	.rodata
	.align	2
.LC46:
	.ascii	"\033[31mUsage : ./deal <user numbers>\012\033[0m\000"
	.align	2
.LC47:
	.ascii	"\012+--------------------+\000"
	.align	2
.LC48:
	.ascii	"+--------------------+\012\000"
	.align	2
.LC49:
	.ascii	"\033[31mInvalid user number. Should be 3 or 4 membe"
	.ascii	"rs.\012\033[0m\000"
	.align	2
.LC50:
	.ascii	"127.0.0.1\000"
	.align	2
.LC51:
	.ascii	"connect failed\000"
	.align	2
.LC52:
	.ascii	"connect success\000"
	.align	2
.LC53:
	.ascii	"send error\000"
	.align	2
.LC54:
	.ascii	"\033[32mDone!\012\033[0m\000"
	.align	2
.LC44:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.align	2
.LC45:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.align	2
.LC55:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L45+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L45+8
	sub	ip, fp, #84
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	bl	storage
	ldr	r3, [fp, #-120]
	cmp	r3, #2
	beq	.L37
	ldr	r0, .L45+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L37:
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #4
	bne	.L38
	sub	r2, fp, #84
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	delegation
	b	.L39
.L38:
	ldr	r3, [fp, #-112]
	cmp	r3, #3
	bne	.L40
	mov	r0, #13
	bl	throw
	str	r0, [fp, #-108]
	mov	r0, #1
	bl	sleep
	ldr	r2, .L45+16
	ldr	r3, [fp, #-108]
	str	r3, [r2]
	mov	r0, #3
	bl	throw
	str	r0, [fp, #-108]
	ldr	r2, .L45+20
	ldr	r3, [fp, #-108]
	str	r3, [r2]
	mov	r0, #1
	bl	sleep
	ldr	r0, .L45+24
	bl	puts
	ldr	r0, .L45+28
	bl	printf
	ldr	r3, .L45+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L45+32
	bl	printf
	ldr	r0, .L45+36
	bl	puts
	ldr	r0, .L45+28
	bl	printf
	ldr	r3, .L45+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-64]
	mov	r1, r3
	ldr	r0, .L45+40
	bl	printf
	ldr	r0, .L45+36
	bl	puts
	ldr	r0, .L45+44
	bl	puts
	ldr	r3, .L45+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-64]
	sub	r3, fp, #16
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #16
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L45+48
	ldr	r3, [r3, #12]
	sub	r0, fp, #16
	mov	r1, #1
	bl	fwrite
	ldr	r3, .L45+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-80]
	sub	r3, fp, #16
	mov	r2, #4
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L45+48
	ldr	r3, [r3, #12]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L45+52
	bl	fwrite
	sub	r3, fp, #16
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, .L45+48
	ldr	r3, [r3, #12]
	sub	r0, fp, #16
	mov	r1, #1
	bl	fwrite
	sub	r2, fp, #84
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	delegation
	b	.L39
.L40:
	ldr	r0, .L45+56
	bl	printf
	mvn	r0, #0
	bl	exit
.L39:
	bl	ps
	ldr	r3, .L45+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L45+48
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L45+48
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L45+48
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	fclose
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-104]
	mov	r3, #2
	strh	r3, [fp, #-100]	@ movhi
	ldr	r0, .L45+60
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-98]	@ movhi
	sub	r3, fp, #100
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L45+64
	mov	r0, #2
	bl	inet_pton
	sub	r3, fp, #100
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L45+68
	bl	puts
	mvn	r0, #0
	bl	exit
.L41:
	ldr	r0, .L45+72
	bl	puts
	ldr	r3, .L45+76
	str	r3, [fp, #-16]
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #16
	mov	r3, #0
	ldr	r0, [fp, #-104]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L45+80
	bl	puts
.L42:
	ldr	r0, .L45+84
	bl	printf
	mov	r0, #3
	bl	sleep
	ldr	r0, [fp, #-104]
	bl	close
	mov	r3, #0
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC55
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	chosencardseq
	.word	chosentypeseq
	.word	.LC47
	.word	.LC20
	.word	.LC23
	.word	.LC22
	.word	.LC24
	.word	.LC48
	.word	STORAGE
	.word	.LC25
	.word	.LC49
	.word	1234
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	6581861
	.word	.LC53
	.word	.LC54
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
