	.file	"404252.c"
	.intel_syntax noprefix
	.text
	.globl	permute
	.type	permute, @function
permute:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, 1
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L3:
	call	rand@PLT
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, 1[rdx]
	mov	edx, 0
	div	rcx
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -17[rbp], al
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -17[rbp]
	mov	BYTE PTR [rdx], al
	sub	QWORD PTR -16[rbp], 1
.L2:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	permute, .-permute
	.globl	timeval_subtract
	.type	timeval_subtract, @function
timeval_subtract:
.LFB7:
	.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	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -12[rbp], 1000000
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, rdx
	add	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, rdx
	lea	rdx, [rsi+rax]
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	edi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	cqo
	idiv	rdi
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	cqo
	idiv	rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 63
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	timeval_subtract, .-timeval_subtract
	.globl	reset_board
	.type	reset_board, @function
reset_board:
.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 5[rax], 5
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 11[rax], 5
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 17[rax], 5
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	reset_board, .-reset_board
	.globl	reset_player
	.type	reset_player, @function
reset_player:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	reset_board
	add	QWORD PTR -8[rbp], 1
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	reset_player, .-reset_player
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s [-p players] [-b boards] [-V]\n"
.LC1:
	.string	"p:b:g:r:V"
.LC2:
	.string	"rb"
.LC3:
	.string	"/dev/urandom"
	.align 8
.LC4:
	.string	"Simulating %ld players with %ld boards each:\n\n"
.LC5:
	.string	"Player %ld:\n"
.LC6:
	.string	"  Board %ld:\n"
.LC7:
	.string	"    "
.LC8:
	.string	"%02d "
.LC9:
	.string	"\n      "
.LC10:
	.string	"\n    "
.LC11:
	.string	"Picked number %d!\n"
.LC12:
	.string	"Player %ld wins a board!\n"
.LC13:
	.string	"Player %ld wins a row!\n"
.LC14:
	.string	"End of game!"
	.align 8
.LC15:
	.string	"Disaster!  All numbers drawn, but no winner!"
	.align 8
.LC18:
	.string	"Player %ld won %ld times (and %ld rows)\n"
	.align 8
.LC19:
	.string	"Executed %ld games in %ld miliseconds (%f games per second)\n"
	.align 8
.LC20:
	.string	"Do you want to send a replay of this game to your friends?"
	.align 8
.LC21:
	.string	"Just tell them to run:\n%s -p %ld -b %ld -g %ld -r %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 424
	.cfi_offset 3, -24
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -368[rbp], 6
	mov	QWORD PTR -360[rbp], 80
	mov	QWORD PTR -352[rbp], 1000
	mov	DWORD PTR -404[rbp], 0
	mov	DWORD PTR -400[rbp], 0
	jmp	.L11
.L19:
	mov	eax, DWORD PTR -372[rbp]
	sub	eax, 86
	cmp	eax, 28
	ja	.L12
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L14[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L14[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L18-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L17-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L16-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L15-.L14
	.long	.L12-.L14
	.long	.L13-.L14
	.text
.L15:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -360[rbp], rax
	jmp	.L11
.L17:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -368[rbp], rax
	jmp	.L11
.L16:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -352[rbp], rax
	jmp	.L11
.L18:
	mov	DWORD PTR -404[rbp], 1
	jmp	.L11
.L13:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -400[rbp], eax
	mov	eax, DWORD PTR -400[rbp]
	mov	DWORD PTR -408[rbp], eax
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -432[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rcx, QWORD PTR -432[rbp]
	mov	eax, DWORD PTR -420[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -372[rbp], eax
	cmp	DWORD PTR -372[rbp], -1
	jne	.L19
	lea	rax, -176[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	cmp	DWORD PTR -400[rbp], 0
	jne	.L20
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	rdx, QWORD PTR -224[rbp]
	lea	rax, -408[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 0
	call	time@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -408[rbp]
	xor	eax, edx
	mov	DWORD PTR -408[rbp], eax
	call	getpid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -408[rbp]
	xor	eax, edx
	mov	DWORD PTR -408[rbp], eax
	call	getppid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -408[rbp]
	xor	eax, edx
	mov	DWORD PTR -408[rbp], eax
.L20:
	mov	eax, DWORD PTR -408[rbp]
	mov	edi, eax
	call	srand@PLT
	mov	QWORD PTR -344[rbp], 0
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -344[rbp]
	lea	edx, 1[rax]
	lea	rcx, -128[rbp]
	mov	rax, QWORD PTR -344[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -344[rbp], 1
.L21:
	cmp	QWORD PTR -344[rbp], 89
	jbe	.L22
	mov	rax, QWORD PTR -360[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	QWORD PTR -336[rbp], 0
	jmp	.L23
.L32:
	mov	rax, QWORD PTR -336[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -368[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -336[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	lea	rbx, [rdx+rax]
	mov	rax, QWORD PTR -368[rbp]
	mov	esi, 18
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	QWORD PTR -328[rbp], 0
	jmp	.L24
.L31:
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 90
	call	permute
	mov	QWORD PTR -320[rbp], 0
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -336[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -328[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	lea	rsi, [rcx+rax]
	mov	rcx, QWORD PTR -320[rbp]
	movabs	rdx, -3689348814741910323
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	lea	rcx, -128[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	add	rdx, rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rsi+rax], dl
	add	QWORD PTR -320[rbp], 1
.L25:
	cmp	QWORD PTR -320[rbp], 4
	jbe	.L26
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -336[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -328[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	lea	rsi, [rcx+rax]
	mov	rcx, QWORD PTR -320[rbp]
	movabs	rdx, -3689348814741910323
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	lea	rcx, -128[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	add	rdx, rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR 6[rsi+rax], dl
	add	QWORD PTR -320[rbp], 1
.L27:
	cmp	QWORD PTR -320[rbp], 9
	jbe	.L28
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -336[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -328[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	lea	rsi, [rcx+rax]
	mov	rcx, QWORD PTR -320[rbp]
	movabs	rdx, -3689348814741910323
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	rdx, rax
	sal	rdx, 2
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	lea	rcx, -128[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	add	rdx, rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR 12[rsi+rax], dl
	add	QWORD PTR -320[rbp], 1
.L29:
	cmp	QWORD PTR -320[rbp], 14
	jbe	.L30
	mov	rax, QWORD PTR -336[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -328[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	rdi, rax
	call	reset_board
	add	QWORD PTR -328[rbp], 1
.L24:
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -368[rbp]
	jb	.L31
	add	QWORD PTR -336[rbp], 1
.L23:
	mov	rax, QWORD PTR -336[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jb	.L32
	mov	rax, QWORD PTR -360[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -360[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	DWORD PTR -404[rbp], 0
	je	.L33
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -360[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -312[rbp], 0
	jmp	.L34
.L43:
	mov	rax, QWORD PTR -312[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -304[rbp], 0
	jmp	.L35
.L42:
	mov	rax, QWORD PTR -304[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -296[rbp], 0
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -312[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -304[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -296[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -296[rbp], 1
.L36:
	cmp	QWORD PTR -296[rbp], 4
	jbe	.L37
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -288[rbp], 0
	jmp	.L38
.L39:
	mov	rax, QWORD PTR -312[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -304[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -288[rbp], 1
.L38:
	cmp	QWORD PTR -288[rbp], 4
	jbe	.L39
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -280[rbp], 0
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -312[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -304[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -280[rbp]
	add	rax, rdx
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -280[rbp], 1
.L40:
	cmp	QWORD PTR -280[rbp], 4
	jbe	.L41
	mov	edi, 10
	call	putchar@PLT
	add	QWORD PTR -304[rbp], 1
.L35:
	mov	rax, QWORD PTR -312[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -304[rbp], rax
	jb	.L42
	add	QWORD PTR -312[rbp], 1
.L34:
	mov	rax, QWORD PTR -312[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jb	.L43
.L33:
	mov	QWORD PTR -272[rbp], 0
	jmp	.L44
.L76:
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 90
	call	permute
	mov	DWORD PTR -396[rbp], 0
	mov	DWORD PTR -392[rbp], 0
	mov	DWORD PTR -388[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	jmp	.L45
.L74:
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -264[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -409[rbp], al
	cmp	DWORD PTR -404[rbp], 0
	jne	.L46
	cmp	DWORD PTR -400[rbp], 0
	je	.L47
.L46:
	movzx	eax, BYTE PTR -409[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L47:
	mov	QWORD PTR -256[rbp], 0
	jmp	.L48
.L67:
	mov	QWORD PTR -248[rbp], 0
	jmp	.L49
.L66:
	mov	rax, QWORD PTR -256[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	mov	QWORD PTR -184[rbp], rax
	mov	DWORD PTR -384[rbp], 0
	jmp	.L50
.L52:
	mov	rdx, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR -384[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	BYTE PTR -409[rbp], al
	jne	.L51
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 5[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	BYTE PTR 5[rax], dl
.L51:
	add	DWORD PTR -384[rbp], 1
.L50:
	cmp	DWORD PTR -384[rbp], 4
	jle	.L52
	mov	DWORD PTR -380[rbp], 0
	jmp	.L53
.L55:
	mov	rdx, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	movzx	eax, BYTE PTR 6[rdx+rax]
	cmp	BYTE PTR -409[rbp], al
	jne	.L54
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 11[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	BYTE PTR 11[rax], dl
.L54:
	add	DWORD PTR -380[rbp], 1
.L53:
	cmp	DWORD PTR -380[rbp], 4
	jle	.L55
	mov	DWORD PTR -376[rbp], 0
	jmp	.L56
.L58:
	mov	rdx, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	movzx	eax, BYTE PTR 12[rdx+rax]
	cmp	BYTE PTR -409[rbp], al
	jne	.L57
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 17[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	BYTE PTR 17[rax], dl
.L57:
	add	DWORD PTR -376[rbp], 1
.L56:
	cmp	DWORD PTR -376[rbp], 4
	jle	.L58
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 5[rax]
	test	al, al
	jne	.L59
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 11[rax]
	test	al, al
	jne	.L59
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	jne	.L59
	cmp	DWORD PTR -404[rbp], 0
	jne	.L60
	cmp	DWORD PTR -400[rbp], 0
	je	.L61
.L60:
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L61:
	mov	DWORD PTR -388[rbp], 1
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	jmp	.L62
.L59:
	cmp	DWORD PTR -396[rbp], 0
	je	.L62
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 5[rax]
	test	al, al
	je	.L63
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 11[rax]
	test	al, al
	je	.L63
	mov	rax, QWORD PTR -184[rbp]
	movzx	eax, BYTE PTR 17[rax]
	test	al, al
	jne	.L62
.L63:
	cmp	DWORD PTR -404[rbp], 0
	jne	.L64
	cmp	DWORD PTR -400[rbp], 0
	je	.L65
.L64:
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
.L65:
	mov	DWORD PTR -392[rbp], 1
	mov	rax, QWORD PTR -256[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	nop
.L62:
	add	QWORD PTR -248[rbp], 1
.L49:
	mov	rax, QWORD PTR -256[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -248[rbp], rax
	jb	.L66
	add	QWORD PTR -256[rbp], 1
.L48:
	mov	rax, QWORD PTR -256[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jb	.L67
	cmp	DWORD PTR -392[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -396[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L68
	cmp	DWORD PTR -404[rbp], 0
	jne	.L69
	cmp	DWORD PTR -400[rbp], 0
	je	.L70
.L69:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L70:
	mov	QWORD PTR -240[rbp], 0
	jmp	.L71
.L72:
	mov	rax, QWORD PTR -240[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	reset_player
	add	QWORD PTR -240[rbp], 1
.L71:
	mov	rax, QWORD PTR -240[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jb	.L72
	jmp	.L73
.L68:
	add	QWORD PTR -264[rbp], 1
.L45:
	cmp	QWORD PTR -264[rbp], 89
	jbe	.L74
.L73:
	cmp	DWORD PTR -388[rbp], 0
	jne	.L75
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L75:
	add	QWORD PTR -272[rbp], 1
.L44:
	mov	rax, QWORD PTR -272[rbp]
	cmp	rax, QWORD PTR -352[rbp]
	jb	.L76
	lea	rax, -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -176[rbp]
	lea	rcx, -160[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	timeval_subtract
	mov	rax, QWORD PTR -144[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC16[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -136[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC17[rip]
	jnb	.L77
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -192[rbp], rax
	jmp	.L78
.L77:
	movsd	xmm1, QWORD PTR .LC17[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -192[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -192[rbp], rax
.L78:
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	jmp	.L79
.L80:
	mov	rax, QWORD PTR -232[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -232[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -232[rbp], 1
.L79:
	mov	rax, QWORD PTR -232[rbp]
	cmp	rax, QWORD PTR -360[rbp]
	jb	.L80
	mov	rax, QWORD PTR -352[rbp]
	test	rax, rax
	js	.L81
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L82
.L81:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L82:
	mov	rax, QWORD PTR -192[rbp]
	test	rax, rax
	js	.L83
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	jmp	.L84
.L83:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rdx
	addsd	xmm1, xmm1
.L84:
	movsd	xmm2, QWORD PTR .LC16[rip]
	divsd	xmm1, xmm2
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	rax, QWORD PTR -192[rbp]
	shr	rax, 3
	movabs	rdx, 2361183241434822607
	mul	rdx
	shr	rdx, 4
	mov	rax, QWORD PTR -352[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 1
	call	printf@PLT
	cmp	DWORD PTR -400[rbp], 0
	jne	.L85
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	edi, DWORD PTR -408[rbp]
	mov	rax, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR -352[rbp]
	mov	rcx, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	r9d, edi
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L85:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC16:
	.long	0
	.long	1093567616
	.align 8
.LC17:
	.long	0
	.long	1138753536
	.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	"404252.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	permute
	.syntax unified
	.arm
	.fpu softvfp
	.type	permute, %function
permute:
	@ 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]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	bl	rand
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	permute, .-permute
	.global	__aeabi_uidiv
	.align	2
	.global	timeval_subtract
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeval_subtract, %function
timeval_subtract:
	@ 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	r3, .L6
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r3, [fp, #-12]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, [fp, #-12]
	mul	r3, r0, r3
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	1000000
	.size	timeval_subtract, .-timeval_subtract
	.align	2
	.global	reset_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_board, %function
reset_board:
	@ 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]
	ldr	r3, [fp, #-8]
	mov	r2, #5
	strb	r2, [r3, #5]
	ldr	r3, [fp, #-8]
	mov	r2, #5
	strb	r2, [r3, #11]
	ldr	r3, [fp, #-8]
	mov	r2, #5
	strb	r2, [r3, #17]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	reset_board, .-reset_board
	.align	2
	.global	reset_player
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_player, %function
reset_player:
	@ 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]
	b	.L10
.L11:
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	mov	r0, r3
	bl	reset_board
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	reset_player, .-reset_player
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [-p players] [-b boards] [-V]\012\000"
	.align	2
.LC1:
	.ascii	"p:b:g:r:V\000"
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"/dev/urandom\000"
	.align	2
.LC4:
	.ascii	"Simulating %ld players with %ld boards each:\012\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"Player %ld:\012\000"
	.align	2
.LC6:
	.ascii	"  Board %ld:\012\000"
	.align	2
.LC7:
	.ascii	"    \000"
	.align	2
.LC8:
	.ascii	"%02d \000"
	.align	2
.LC9:
	.ascii	"\012      \000"
	.align	2
.LC10:
	.ascii	"\012    \000"
	.align	2
.LC11:
	.ascii	"Picked number %d!\012\000"
	.align	2
.LC12:
	.ascii	"Player %ld wins a board!\012\000"
	.align	2
.LC13:
	.ascii	"Player %ld wins a row!\012\000"
	.align	2
.LC14:
	.ascii	"End of game!\000"
	.align	2
.LC15:
	.ascii	"Disaster!  All numbers drawn, but no winner!\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
.LC16:
	.ascii	"Player %ld won %ld times (and %ld rows)\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC17:
	.ascii	"Executed %ld games in %ld miliseconds (%f games per"
	.ascii	" second)\012\000"
	.align	2
.LC18:
	.ascii	"Do you want to send a replay of this game to your f"
	.ascii	"riends?\000"
	.align	2
.LC19:
	.ascii	"Just tell them to run:\012%s -p %ld -b %ld -g %ld -"
	.ascii	"r %d\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #284
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #6
	str	r3, [fp, #-280]
	mov	r3, #80
	str	r3, [fp, #-276]
	mov	r3, #1000
	str	r3, [fp, #-272]
	mov	r3, #0
	str	r3, [fp, #-268]
	mov	r3, #0
	str	r3, [fp, #-264]
	b	.L13
.L21:
	ldr	r3, [fp, #-176]
	sub	r3, r3, #86
	cmp	r3, #28
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L16:
	.word	.L20
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L19
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L18
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L17
	.word	.L14
	.word	.L15
.L17:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-276]
	b	.L13
.L19:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-280]
	b	.L13
.L18:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-272]
	b	.L13
.L20:
	mov	r3, #1
	str	r3, [fp, #-268]
	b	.L13
.L15:
	ldr	r3, .L84+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-264]
	ldr	r3, [fp, #-264]
	str	r3, [fp, #-284]
	b	.L13
.L14:
	ldr	r3, .L84+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-300]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L84+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L13:
	ldr	r2, .L84+16
	ldr	r1, [fp, #-300]
	ldr	r0, [fp, #-296]
	bl	getopt
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmn	r3, #1
	bne	.L21
	sub	r3, fp, #148
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	bne	.L22
	ldr	r1, .L84+20
	ldr	r0, .L84+24
	bl	fopen
	str	r0, [fp, #-172]
	sub	r0, fp, #284
	ldr	r3, [fp, #-172]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r0, [fp, #-172]
	bl	fclose
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-284]
	eor	r3, r3, r2
	str	r3, [fp, #-284]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-284]
	eor	r3, r3, r2
	str	r3, [fp, #-284]
	bl	getppid
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-284]
	eor	r3, r3, r2
	str	r3, [fp, #-284]
.L22:
	ldr	r3, [fp, #-284]
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L23
.L24:
	ldr	r3, [fp, #-260]
	and	r3, r3, #255
	add	r3, r3, #1
	and	r1, r3, #255
	sub	r2, fp, #124
	ldr	r3, [fp, #-260]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L23:
	ldr	r3, [fp, #-260]
	cmp	r3, #89
	bls	.L24
	mov	r1, #8
	ldr	r0, [fp, #-276]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L25
.L34:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r2, [fp, #-280]
	str	r2, [r3]
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r8, r2, r3
	mov	r1, #18
	ldr	r0, [fp, #-280]
	bl	calloc
	mov	r3, r0
	str	r3, [r8, #4]
	mov	r3, #0
	str	r3, [fp, #-252]
	b	.L26
.L33:
	sub	r3, fp, #124
	mov	r1, r3
	mov	r0, #90
	bl	permute
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L27
.L28:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r0, r1, r3
	ldr	r1, [fp, #-248]
	ldr	r3, .L84+28
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	sub	r1, fp, #124
	ldr	r3, [fp, #-248]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [r0, r2]
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L27:
	ldr	r3, [fp, #-248]
	cmp	r3, #4
	bls	.L28
	b	.L29
.L30:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r0, r1, r3
	ldr	r1, [fp, #-248]
	ldr	r3, .L84+28
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	sub	r1, fp, #124
	ldr	r3, [fp, #-248]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r0, r2
	mov	r2, r1
	strb	r2, [r3, #6]
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L29:
	ldr	r3, [fp, #-248]
	cmp	r3, #9
	bls	.L30
	b	.L31
.L32:
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r0, r1, r3
	ldr	r1, [fp, #-248]
	ldr	r3, .L84+28
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	sub	r1, fp, #124
	ldr	r3, [fp, #-248]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	add	r3, r0, r2
	mov	r2, r1
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L31:
	ldr	r3, [fp, #-248]
	cmp	r3, #14
	bls	.L32
	ldr	r3, [fp, #-256]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	mov	r0, r3
	bl	reset_board
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L26:
	ldr	r2, [fp, #-252]
	ldr	r3, [fp, #-280]
	cmp	r2, r3
	bcc	.L33
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L25:
	ldr	r2, [fp, #-256]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bcc	.L34
	mov	r1, #8
	ldr	r0, [fp, #-276]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-164]
	mov	r1, #8
	ldr	r0, [fp, #-276]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-280]
	ldr	r1, [fp, #-276]
	ldr	r0, .L84+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-244]
	b	.L36
.L45:
	ldr	r1, [fp, #-244]
	ldr	r0, .L84+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L37
.L44:
	ldr	r1, [fp, #-240]
	ldr	r0, .L84+40
	bl	printf
	ldr	r0, .L84+44
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L38
.L39:
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-236]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L84+48
	bl	printf
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L38:
	ldr	r3, [fp, #-236]
	cmp	r3, #4
	bls	.L39
	ldr	r0, .L84+52
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L40
.L41:
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-232]
	add	r3, r2, r3
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L84+48
	bl	printf
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L40:
	ldr	r3, [fp, #-232]
	cmp	r3, #4
	bls	.L41
	ldr	r0, .L84+56
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L42
.L43:
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-240]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r2, r1, r3
	ldr	r3, [fp, #-228]
	add	r3, r2, r3
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L84+48
	bl	printf
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L42:
	ldr	r3, [fp, #-228]
	cmp	r3, #4
	bls	.L43
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L37:
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-240]
	cmp	r2, r3
	bcc	.L44
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L36:
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bcc	.L45
.L35:
	mov	r3, #0
	str	r3, [fp, #-224]
	b	.L46
.L78:
	sub	r3, fp, #124
	mov	r1, r3
	mov	r0, #90
	bl	permute
	mov	r3, #0
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-212]
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L47
.L76:
	sub	r2, fp, #124
	ldr	r3, [fp, #-208]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-285]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L48
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	beq	.L49
.L48:
	ldrb	r3, [fp, #-285]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L84+60
	bl	printf
.L49:
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L50
.L69:
	mov	r3, #0
	str	r3, [fp, #-200]
	b	.L51
.L68:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r2, [fp, #-200]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-196]
	b	.L52
.L54:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-196]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-285]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L53
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-152]
	strb	r2, [r3, #5]
.L53:
	ldr	r3, [fp, #-196]
	add	r3, r3, #1
	str	r3, [fp, #-196]
.L52:
	ldr	r3, [fp, #-196]
	cmp	r3, #4
	ble	.L54
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L55
.L57:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-192]
	add	r3, r2, r3
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-285]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L56
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-152]
	strb	r2, [r3, #11]
.L56:
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L55:
	ldr	r3, [fp, #-192]
	cmp	r3, #4
	ble	.L57
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L58
.L60:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-188]
	add	r3, r2, r3
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-285]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L59
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-152]
	strb	r2, [r3, #17]
.L59:
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L58:
	ldr	r3, [fp, #-188]
	cmp	r3, #4
	ble	.L60
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	beq	.L63
.L62:
	ldr	r1, [fp, #-204]
	ldr	r0, .L84+64
	bl	printf
.L63:
	mov	r3, #1
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-164]
	add	r1, r2, r3
	ldmia	r1, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	stm	r1, {r4-r5}
	b	.L64
.L61:
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-152]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L64
.L65:
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	beq	.L67
.L66:
	ldr	r1, [fp, #-204]
	ldr	r0, .L84+68
	bl	printf
.L67:
	mov	r3, #1
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-160]
	add	r1, r2, r3
	ldmia	r1, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	stm	r1, {r6-r7}
	nop
.L64:
	ldr	r3, [fp, #-200]
	add	r3, r3, #1
	str	r3, [fp, #-200]
.L51:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-200]
	cmp	r2, r3
	bcc	.L68
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L50:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bcc	.L69
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L71
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	beq	.L72
.L71:
	ldr	r0, .L84+72
	bl	puts
.L72:
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L73
.L74:
	ldr	r3, [fp, #-184]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-168]
	add	r3, r2, r3
	mov	r0, r3
	bl	reset_player
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L73:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bcc	.L74
	b	.L75
.L70:
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L47:
	ldr	r3, [fp, #-208]
	cmp	r3, #89
	bls	.L76
.L75:
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	bne	.L77
	ldr	r0, .L84+76
	bl	puts
	mov	r0, #1
	bl	exit
.L77:
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
.L46:
	ldr	r2, [fp, #-224]
	ldr	r3, [fp, #-272]
	cmp	r2, r3
	bcc	.L78
	sub	r3, fp, #140
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #148
	sub	r1, fp, #140
	sub	r3, fp, #132
	mov	r0, r3
	bl	timeval_subtract
	ldr	r3, [fp, #-132]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L84+80
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-128]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L79
.L80:
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-164]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-180]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-160]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-180]
	ldr	r0, .L84+84
	bl	printf
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L79:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	bcc	.L80
	ldr	r3, [fp, #-156]
	ldr	r2, .L84+88
	umull	r1, r3, r2, r3
	lsr	r6, r3, #6
	ldr	r0, [fp, #-272]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-156]
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L84+80
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r6
	ldr	r1, [fp, #-272]
	ldr	r0, .L84+92
	bl	printf
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	bne	.L81
	ldr	r0, .L84+96
	bl	puts
	ldr	r3, [fp, #-300]
	ldr	r1, [r3]
	ldr	r3, [fp, #-284]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-272]
	str	r3, [sp]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-276]
	ldr	r0, .L84+100
	bl	printf
.L81:
	mov	r3, #0
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC20
	.word	optarg
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-858993459
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	1093567616
	.word	.LC16
	.word	274877907
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
