	.file	"749157.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"d04_input"
.LC2:
	.string	"cant read file"
.LC3:
	.string	"%i"
.LC4:
	.string	"win number = %i\n"
.LC5:
	.string	"sum = %i\n"
.LC6:
	.string	"resault = %i\n"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 936
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -896[rbp], rax
	cmp	QWORD PTR -896[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L2:
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	count_boards
	mov	DWORD PTR -916[rbp], eax
	mov	DWORD PTR -944[rbp], 0
.L6:
	mov	eax, DWORD PTR -944[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -944[rbp], edx
	lea	rdx, -864[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -896[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -961[rbp], al
	cmp	BYTE PTR -961[rbp], 10
	je	.L37
	jmp	.L6
.L37:
	nop
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	ecx, DWORD PTR -916[rbp]
	mov	rax, rsp
	mov	rbx, rax
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -888[rbp], rax
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 800
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 800
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 800
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 800
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L7:
	cmp	rsp, rdx
	je	.L8
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L7
.L8:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L9
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L9:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -880[rbp], rax
	mov	DWORD PTR -948[rbp], 0
.L16:
	mov	DWORD PTR -952[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -956[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -956[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -948[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	mov	edx, DWORD PTR -952[rbp]
	movsx	rcx, edx
	mov	rdx, rcx
	sal	rdx, 2
	add	rdx, rcx
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -880[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -896[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	add	DWORD PTR -956[rbp], 1
.L11:
	cmp	DWORD PTR -956[rbp], 4
	jle	.L12
	add	DWORD PTR -952[rbp], 1
.L10:
	cmp	DWORD PTR -952[rbp], 4
	jle	.L13
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, -1
	je	.L38
	add	DWORD PTR -948[rbp], 1
	jmp	.L16
.L38:
	nop
	mov	DWORD PTR -960[rbp], 0
	jmp	.L17
.L32:
	mov	eax, DWORD PTR -960[rbp]
	cdqe
	mov	eax, DWORD PTR -864[rbp+rax*4]
	mov	DWORD PTR -912[rbp], eax
	mov	DWORD PTR -940[rbp], 0
	jmp	.L18
.L31:
	mov	esi, 4
	mov	edi, 5
	call	calloc@PLT
	mov	QWORD PTR -872[rbp], rax
	mov	DWORD PTR -936[rbp], 0
	jmp	.L19
.L27:
	mov	DWORD PTR -932[rbp], 0
	mov	DWORD PTR -928[rbp], 0
	jmp	.L20
.L24:
	mov	rcx, QWORD PTR -880[rbp]
	mov	eax, DWORD PTR -928[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -940[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -936[rbp]
	movsx	rsi, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	mov	rdx, rsi
	sal	rdx, 2
	add	rdx, rsi
	add	rax, rdx
	add	rax, rdi
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR -924[rbp], eax
	mov	eax, DWORD PTR -924[rbp]
	cmp	eax, DWORD PTR -912[rbp]
	jne	.L21
	cmp	DWORD PTR -924[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -924[rbp]
	neg	eax
	jmp	.L23
.L22:
	mov	eax, -2147483648
.L23:
	mov	DWORD PTR -924[rbp], eax
.L21:
	mov	eax, DWORD PTR -924[rbp]
	shr	eax, 31
	mov	DWORD PTR -900[rbp], eax
	mov	eax, DWORD PTR -900[rbp]
	add	DWORD PTR -932[rbp], eax
	mov	eax, DWORD PTR -928[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -872[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -928[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -872[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -900[rbp]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rcx, QWORD PTR -880[rbp]
	mov	eax, DWORD PTR -928[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -940[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -936[rbp]
	movsx	rsi, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	mov	rdx, rsi
	sal	rdx, 2
	add	rdx, rsi
	add	rax, rdx
	lea	rdx, [rax+rdi]
	mov	eax, DWORD PTR -924[rbp]
	mov	DWORD PTR [rcx+rdx*4], eax
	add	DWORD PTR -928[rbp], 1
.L20:
	cmp	DWORD PTR -928[rbp], 4
	jle	.L24
	cmp	DWORD PTR -932[rbp], 5
	jne	.L25
	mov	edx, DWORD PTR -940[rbp]
	mov	rax, QWORD PTR -880[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	board_sum
	mov	DWORD PTR -904[rbp], eax
	mov	eax, DWORD PTR -912[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -904[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -904[rbp]
	imul	eax, DWORD PTR -912[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L26
.L25:
	add	DWORD PTR -936[rbp], 1
.L19:
	cmp	DWORD PTR -936[rbp], 4
	jle	.L27
	mov	DWORD PTR -920[rbp], 0
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -920[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -872[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L29
	mov	edx, DWORD PTR -940[rbp]
	mov	rax, QWORD PTR -880[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	board_sum
	mov	DWORD PTR -908[rbp], eax
	mov	eax, DWORD PTR -908[rbp]
	imul	eax, DWORD PTR -912[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -908[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -912[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L26
.L29:
	add	DWORD PTR -920[rbp], 1
.L28:
	cmp	DWORD PTR -920[rbp], 4
	jle	.L30
	mov	rax, QWORD PTR -872[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -940[rbp], 1
.L18:
	mov	eax, DWORD PTR -940[rbp]
	cmp	eax, DWORD PTR -916[rbp]
	jl	.L31
	add	DWORD PTR -960[rbp], 1
.L17:
	mov	eax, DWORD PTR -960[rbp]
	cmp	eax, DWORD PTR -944[rbp]
	jl	.L32
	mov	rax, QWORD PTR -896[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rsp, rbx
	mov	eax, 0
	jmp	.L33
.L26:
	mov	rsp, rbx
.L33:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	board_sum
	.type	board_sum, @function
board_sum:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L40
.L44:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L41
.L43:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L42
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -16[rbp], eax
.L42:
	add	DWORD PTR -8[rbp], 1
.L41:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L43
	add	DWORD PTR -12[rbp], 1
.L40:
	cmp	DWORD PTR -12[rbp], 4
	jle	.L44
	mov	eax, DWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	board_sum, .-board_sum
	.globl	count_boards
	.type	count_boards, @function
count_boards:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -6[rbp], al
.L50:
	movzx	eax, BYTE PTR -6[rbp]
	mov	BYTE PTR -5[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -6[rbp], al
	cmp	BYTE PTR -6[rbp], -1
	je	.L53
	cmp	BYTE PTR -5[rbp], 10
	jne	.L50
	cmp	BYTE PTR -6[rbp], 10
	jne	.L50
	add	DWORD PTR -4[rbp], 1
	jmp	.L50
.L53:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	count_boards, .-count_boards
	.section	.rodata
.LC7:
	.string	"%i "
.LC8:
	.string	"\n"
	.text
	.globl	print_boards_and_draws
	.type	print_boards_and_draws, @function
print_boards_and_draws:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	DWORD PTR -16[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L55:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L56
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L57
.L62:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L58
.L61:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L59
.L60:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L59:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L60
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L58:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L61
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L57:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L62
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_boards_and_draws, .-print_boards_and_draws
	.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	"749157.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"d04_input\000"
	.align	2
.LC2:
	.ascii	"cant read file\000"
	.align	2
.LC3:
	.ascii	"%i\000"
	.align	2
.LC4:
	.ascii	"win number = %i\012\000"
	.align	2
.LC5:
	.ascii	"sum = %i\012\000"
	.align	2
.LC6:
	.ascii	"resault = %i\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 888
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #892
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r1, .L36+4
	ldr	r0, .L36+8
	bl	fopen
	str	r0, [fp, #-868]
	ldr	r3, [fp, #-868]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L36+12
	bl	puts
	mov	r3, #1
	b	.L30
.L2:
	ldr	r0, [fp, #-868]
	bl	count_boards
	str	r0, [fp, #-864]
	mov	r3, #0
	str	r3, [fp, #-896]
.L6:
	ldr	r3, [fp, #-896]
	add	r2, r3, #1
	str	r2, [fp, #-896]
	sub	r2, fp, #832
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+16
	ldr	r0, [fp, #-868]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-868]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-913]
	ldrb	r3, [fp, #-913]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L34
	b	.L6
.L34:
	nop
	ldr	r0, [fp, #-868]
	bl	fgetc
	ldr	ip, [fp, #-864]
	mov	r3, sp
	mov	r8, r3
	sub	r3, ip, #1
	str	r3, [fp, #-860]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-856]
	mov	r3, #0
	str	r3, [fp, #-900]
.L13:
	mov	r3, #0
	str	r3, [fp, #-904]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-908]
	b	.L8
.L9:
	ldr	r3, [fp, #-904]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	ldr	r1, [fp, #-900]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	add	r2, r2, r3
	ldr	r3, [fp, #-908]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-856]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L36+16
	ldr	r0, [fp, #-868]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-868]
	bl	fgetc
	ldr	r3, [fp, #-908]
	add	r3, r3, #1
	str	r3, [fp, #-908]
.L8:
	ldr	r3, [fp, #-908]
	cmp	r3, #4
	ble	.L9
	ldr	r3, [fp, #-904]
	add	r3, r3, #1
	str	r3, [fp, #-904]
.L7:
	ldr	r3, [fp, #-904]
	cmp	r3, #4
	ble	.L10
	ldr	r0, [fp, #-868]
	bl	fgetc
	mov	r3, r0
	cmn	r3, #1
	beq	.L35
	ldr	r3, [fp, #-900]
	add	r3, r3, #1
	str	r3, [fp, #-900]
	b	.L13
.L35:
	nop
	mov	r3, #0
	str	r3, [fp, #-912]
	b	.L14
.L29:
	ldr	r3, [fp, #-912]
	lsl	r3, r3, #2
	sub	r2, fp, #28
	add	r3, r2, r3
	ldr	r3, [r3, #-804]
	str	r3, [fp, #-852]
	mov	r3, #0
	str	r3, [fp, #-892]
	b	.L15
.L28:
	mov	r1, #4
	mov	r0, #5
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-848]
	mov	r3, #0
	str	r3, [fp, #-888]
	b	.L16
.L24:
	mov	r3, #0
	str	r3, [fp, #-884]
	mov	r3, #0
	str	r3, [fp, #-880]
	b	.L17
.L21:
	ldr	r0, [fp, #-856]
	ldr	r3, [fp, #-888]
	ldr	r1, [fp, #-892]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	add	r2, r2, r3
	ldr	r3, [fp, #-880]
	add	r3, r2, r3
	ldr	r3, [r0, r3, lsl #2]
	str	r3, [fp, #-876]
	ldr	r2, [fp, #-876]
	ldr	r3, [fp, #-852]
	cmp	r2, r3
	bne	.L18
	ldr	r3, [fp, #-876]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-876]
	rsb	r3, r3, #0
	b	.L20
.L19:
	mov	r3, #-2147483648
.L20:
	str	r3, [fp, #-876]
.L18:
	ldr	r3, [fp, #-876]
	lsr	r3, r3, #31
	str	r3, [fp, #-836]
	ldr	r2, [fp, #-884]
	ldr	r3, [fp, #-836]
	add	r3, r2, r3
	str	r3, [fp, #-884]
	ldr	r3, [fp, #-880]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-848]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-880]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-848]
	add	r3, r2, r3
	ldr	r2, [fp, #-836]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r0, [fp, #-856]
	ldr	r3, [fp, #-888]
	ldr	r1, [fp, #-892]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	add	r2, r2, r3
	ldr	r3, [fp, #-880]
	add	r3, r2, r3
	ldr	r2, [fp, #-876]
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-880]
	add	r3, r3, #1
	str	r3, [fp, #-880]
.L17:
	ldr	r3, [fp, #-880]
	cmp	r3, #4
	ble	.L21
	ldr	r3, [fp, #-884]
	cmp	r3, #5
	bne	.L22
	ldr	r1, [fp, #-892]
	ldr	r0, [fp, #-856]
	bl	board_sum
	str	r0, [fp, #-840]
	ldr	r1, [fp, #-852]
	ldr	r0, .L36+20
	bl	printf
	ldr	r1, [fp, #-840]
	ldr	r0, .L36+24
	bl	printf
	ldr	r3, [fp, #-840]
	ldr	r2, [fp, #-852]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L36+28
	bl	printf
	mov	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-888]
	add	r3, r3, #1
	str	r3, [fp, #-888]
.L16:
	ldr	r3, [fp, #-888]
	cmp	r3, #4
	ble	.L24
	mov	r3, #0
	str	r3, [fp, #-872]
	b	.L25
.L27:
	ldr	r3, [fp, #-872]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-848]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L26
	ldr	r1, [fp, #-892]
	ldr	r0, [fp, #-856]
	bl	board_sum
	str	r0, [fp, #-844]
	ldr	r3, [fp, #-844]
	ldr	r2, [fp, #-852]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L36+28
	bl	printf
	ldr	r1, [fp, #-844]
	ldr	r0, .L36+24
	bl	printf
	ldr	r1, [fp, #-852]
	ldr	r0, .L36+20
	bl	printf
	mov	r3, #0
	b	.L23
.L26:
	ldr	r3, [fp, #-872]
	add	r3, r3, #1
	str	r3, [fp, #-872]
.L25:
	ldr	r3, [fp, #-872]
	cmp	r3, #4
	ble	.L27
	ldr	r0, [fp, #-848]
	bl	free
	ldr	r3, [fp, #-892]
	add	r3, r3, #1
	str	r3, [fp, #-892]
.L15:
	ldr	r2, [fp, #-892]
	ldr	r3, [fp, #-864]
	cmp	r2, r3
	blt	.L28
	ldr	r3, [fp, #-912]
	add	r3, r3, #1
	str	r3, [fp, #-912]
.L14:
	ldr	r2, [fp, #-912]
	ldr	r3, [fp, #-896]
	cmp	r2, r3
	blt	.L29
	ldr	r0, [fp, #-868]
	bl	fclose
	mov	sp, r8
	mov	r3, #0
	b	.L30
.L23:
	mov	sp, r8
.L30:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	board_sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	board_sum, %function
board_sum:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L39
.L43:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L40
.L42:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r1, r3, r2
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L41
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L41:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L40:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L42
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L43
	ldr	r3, [fp, #-20]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	board_sum, .-board_sum
	.align	2
	.global	count_boards
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_boards, %function
count_boards:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-10]
.L47:
	ldrb	r3, [fp, #-10]
	strb	r3, [fp, #-9]
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-10]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L47
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L47
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L47
	.size	count_boards, .-count_boards
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%i \000"
	.align	2
.LC9:
	.ascii	"\012\000"
	.text
	.align	2
	.global	print_boards_and_draws
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_boards_and_draws, %function
print_boards_and_draws:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L49
.L50:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L57
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L49:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L50
	ldr	r0, .L57+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L51
.L56:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L52
.L55:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L53
.L54:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r1, r3, r2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L57
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L54
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L52:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L55
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L51:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L56
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC8
	.word	.LC9
	.size	print_boards_and_draws, .-print_boards_and_draws
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
