	.file	"126240.c"
	.intel_syntax noprefix
	.text
	.globl	INFILE
	.section	.rodata
.LC0:
	.string	"input"
	.section	.data.rel.local,"aw"
	.align 8
	.type	INFILE, @object
	.size	INFILE, 8
INFILE:
	.quad	.LC0
	.globl	draws_count
	.bss
	.align 4
	.type	draws_count, @object
	.size	draws_count, 4
draws_count:
	.zero	4
	.globl	draws
	.align 32
	.type	draws, @object
	.size	draws, 400
draws:
	.zero	400
	.globl	boards_count
	.align 4
	.type	boards_count, @object
	.size	boards_count, 4
boards_count:
	.zero	4
	.globl	boards
	.align 32
	.type	boards, @object
	.size	boards, 800
boards:
	.zero	800
	.section	.rodata
.LC1:
	.string	","
	.text
	.globl	parseDraw
	.type	parseDraw, @function
parseDraw:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	movzx	eax, al
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -28[rbp], 1
	mov	QWORD PTR -40[rbp], 0
.L2:
	lea	rdx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parseDraw, .-parseDraw
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"uWu made a BuBu"
.LC4:
	.string	"\n"
.LC5:
	.string	" "
	.text
	.globl	parseInput
	.type	parseInput, @function
parseInput:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR INFILE[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	BYTE PTR -61[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	jmp	.L8
.L15:
	cmp	BYTE PTR -61[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, draws[rip]
	mov	rdi, rax
	call	parseDraw
	mov	DWORD PTR draws_count[rip], eax
	mov	BYTE PTR -61[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	esi, 30
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L8
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	and	eax, 127
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	and	eax, 127
	mov	esi, eax
	movzx	eax, BYTE PTR 4[rcx+rdx]
	and	eax, -128
	or	eax, esi
	mov	BYTE PTR 4[rcx+rdx], al
	add	DWORD PTR -60[rbp], 1
	mov	QWORD PTR -56[rbp], 0
.L12:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L13
	cmp	DWORD PTR -60[rbp], 25
	jne	.L8
	mov	DWORD PTR -60[rbp], 0
	mov	eax, DWORD PTR boards_count[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, boards[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR boards_count[rip]
	add	eax, 1
	mov	DWORD PTR boards_count[rip], eax
.L8:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L15
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parseInput, .-parseInput
	.globl	incrementCounter
	.type	incrementCounter, @function
incrementCounter:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	movzx	esi, WORD PTR [rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	lea	edx, [rsi+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	esi, ax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	ecx, eax
	sar	esi, cl
	mov	eax, esi
	and	eax, 7
	mov	WORD PTR -2[rbp], ax
	cmp	WORD PTR -2[rbp], 5
	jne	.L19
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 1[rax]
	or	edx, -128
	mov	BYTE PTR 1[rax], dl
.L19:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	incrementCounter, .-incrementCounter
	.section	.rodata
.LC6:
	.string	"sum: %d, last: %2u, score: %u"
	.text
	.globl	reportScore
	.type	reportScore, @function
reportScore:
.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
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	esi, 1
	mov	edi, 64
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L23:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	movzx	eax, BYTE PTR 4[rdx+rax]
	shr	al, 7
	test	al, al
	jne	.L22
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	movzx	eax, BYTE PTR 4[rdx+rax]
	and	eax, 127
	movzx	eax, al
	add	DWORD PTR -16[rbp], eax
.L22:
	add	DWORD PTR -12[rbp], 1
.L21:
	cmp	DWORD PTR -12[rbp], 24
	jle	.L23
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC6[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	reportScore, .-reportScore
	.globl	crossNumber
	.type	crossNumber, @function
crossNumber:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L29:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR 4[rdx+rax]
	and	eax, 127
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	jne	.L27
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	ecx, BYTE PTR 4[rdx+rax]
	or	ecx, -128
	mov	BYTE PTR 4[rdx+rax], cl
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	sub	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	incrementCounter
	mov	edx, DWORD PTR -4[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 2
	mov	esi, eax
	mov	rdi, rdx
	call	incrementCounter
	jmp	.L28
.L27:
	add	DWORD PTR -4[rbp], 1
.L26:
	cmp	DWORD PTR -4[rbp], 24
	jle	.L29
	nop
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	crossNumber, .-crossNumber
	.type	hasWon, @function
hasWon:
.LFB11:
	.cfi_startproc
	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]
	movzx	eax, BYTE PTR 1[rax]
	and	eax, -128
	test	al, al
	jne	.L31
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 3[rax]
	and	eax, -128
	test	al, al
	je	.L32
.L31:
	mov	eax, 1
	jmp	.L33
.L32:
	mov	eax, 0
.L33:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	hasWon, .-hasWon
	.section	.rodata
	.align 8
.LC7:
	.string	"first winner: board[%2u] -> %s\n"
	.align 8
.LC8:
	.string	" last winner: board[%2u] -> %s\n"
	.text
	.globl	simulateBingo
	.type	simulateBingo, @function
simulateBingo:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L36
.L43:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L37
.L42:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, boards[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	hasWon
	test	al, al
	jne	.L44
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, draws[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	crossNumber
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	hasWon
	test	al, al
	je	.L39
	add	DWORD PTR -52[rbp], 1
	cmp	DWORD PTR -52[rbp], 1
	jne	.L40
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, draws[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -40[rbp], eax
	jmp	.L39
.L40:
	mov	eax, DWORD PTR boards_count[rip]
	cmp	DWORD PTR -52[rbp], eax
	jne	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, draws[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L41
.L44:
	nop
.L39:
	add	DWORD PTR -28[rbp], 1
.L37:
	mov	eax, DWORD PTR boards_count[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L42
	add	DWORD PTR -32[rbp], 1
.L36:
	mov	eax, DWORD PTR draws_count[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L43
	nop
.L41:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	reportScore
	mov	rdx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	reportScore
	mov	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	simulateBingo, .-simulateBingo
	.section	.rodata
.LC9:
	.string	"** AoC 2021 - Day 04"
.LC10:
	.string	"parsed %u draws, %u boards\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	call	parseInput
	mov	edx, DWORD PTR boards_count[rip]
	mov	eax, DWORD PTR draws_count[rip]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	simulateBingo
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.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	"126240.c"
	.text
	.global	INFILE
	.section	.rodata
	.align	2
.LC0:
	.ascii	"input\000"
	.data
	.align	2
	.type	INFILE, %object
	.size	INFILE, 4
INFILE:
	.word	.LC0
	.global	draws_count
	.bss
	.align	2
	.type	draws_count, %object
	.size	draws_count, 4
draws_count:
	.space	4
	.global	draws
	.align	2
	.type	draws, %object
	.size	draws, 400
draws:
	.space	400
	.global	boards_count
	.align	2
	.type	boards_count, %object
	.size	boards_count, 4
boards_count:
	.space	4
	.global	boards
	.align	2
	.type	boards, %object
	.size	boards, 400
boards:
	.space	400
	.section	.rodata
	.align	2
.LC1:
	.ascii	",\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseDraw
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseDraw, %function
parseDraw:
	@ 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, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L3:
	ldr	r0, [fp, #-12]
	bl	atoi
	mov	r1, r0
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	and	r2, r1, #255
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
.L2:
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, .L6+4
	ldr	r0, [fp, #-24]
	bl	strtok_r
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.word	.LC1
	.size	parseDraw, .-parseDraw
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"uWu made a BuBu\000"
	.align	2
.LC5:
	.ascii	"\012\000"
	.align	2
.LC6:
	.ascii	" \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parseInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseInput, %function
parseInput:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r1, .L19+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L19+12
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	mov	r3, #1
	strb	r3, [fp, #-37]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L10
.L17:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-36]
	ldr	r1, .L19+16
	mov	r0, r3
	bl	parseDraw
	mov	r3, r0
	ldr	r2, .L19+20
	str	r3, [r2]
	mov	r3, #0
	strb	r3, [fp, #-37]
	b	.L10
.L11:
	ldr	r3, [fp, #-36]
	ldr	r1, .L19+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r1, #30
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	b	.L10
.L15:
	ldr	r0, [fp, #-12]
	bl	atoi
	mov	r3, r0
	and	r3, r3, #127
	and	r1, r3, #255
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldrb	r3, [r2, #4]
	and	r1, r1, #127
	bic	r3, r3, #127
	orr	r3, r1, r3
	strb	r3, [r2, #4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-36]
.L14:
	ldr	r3, [fp, #-36]
	sub	r2, fp, #28
	ldr	r1, .L19+28
	mov	r0, r3
	bl	strtok_r
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-24]
	cmp	r3, #25
	bne	.L10
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L19+32
	ldr	r3, [r3]
	ldr	r1, .L19+36
	ldr	r2, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L19+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+32
	str	r3, [r2]
.L10:
	sub	r1, fp, #32
	sub	r3, fp, #36
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-16]
	bl	fclose
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	INFILE
	.word	.LC3
	.word	.LC4
	.word	draws
	.word	draws_count
	.word	.LC5
	.word	.LC6
	.word	boards_count
	.word	boards
	.size	parseInput, .-parseInput
	.align	2
	.global	incrementCounter
	.syntax unified
	.arm
	.fpu softvfp
	.type	incrementCounter, %function
incrementCounter:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldrh	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r2, #1
	lsl	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	asr	r3, r1, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #7
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	cmp	r3, #5
	bne	.L23
	ldr	r2, [fp, #-16]
	ldrb	r3, [r2, #1]
	orr	r3, r3, #128
	strb	r3, [r2, #1]
.L23:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	incrementCounter, .-incrementCounter
	.section	.rodata
	.align	2
.LC8:
	.ascii	"sum: %d, last: %2u, score: %u\000"
	.text
	.align	2
	.global	reportScore
	.syntax unified
	.arm
	.fpu softvfp
	.type	reportScore, %function
reportScore:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	mov	r1, #1
	mov	r0, #64
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L27:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsr	r3, r3, #7
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L26
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]
	and	r3, r3, #127
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	ble	.L27
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, .L29
	mov	r1, #64
	ldr	r0, [fp, #-8]
	bl	snprintf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC8
	.size	reportScore, .-reportScore
	.align	2
	.global	crossNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	crossNumber, %function
crossNumber:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L35:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3, #4]
	and	r3, r3, #127
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bne	.L33
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldrb	r3, [r2, #4]
	orr	r3, r3, #128
	strb	r3, [r2, #4]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, .L36
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r1, r3
	bl	incrementCounter
	ldr	r3, [fp, #-16]
	add	r0, r3, #2
	ldr	r2, [fp, #-8]
	ldr	r3, .L36
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r1, r2, r3
	bl	incrementCounter
	b	.L34
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #24
	ble	.L35
	nop
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	1717986919
	.size	crossNumber, .-crossNumber
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasWon, %function
hasWon:
	@ 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]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	bic	r3, r3, #127
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L40
.L39:
	mov	r3, #1
	b	.L41
.L40:
	mov	r3, #0
.L41:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hasWon, .-hasWon
	.section	.rodata
	.align	2
.LC9:
	.ascii	"first winner: board[%2u] -> %s\012\000"
	.align	2
.LC10:
	.ascii	" last winner: board[%2u] -> %s\012\000"
	.text
	.align	2
	.global	simulateBingo
	.syntax unified
	.arm
	.fpu softvfp
	.type	simulateBingo, %function
simulateBingo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L44
.L51:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L45
.L50:
	ldr	r2, .L53
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	hasWon
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r2, .L53+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	crossNumber
	ldr	r0, [fp, #-8]
	bl	hasWon
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L48
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	ldr	r2, .L53+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-24]
	b	.L47
.L48:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L47
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	ldr	r2, .L53+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-20]
	b	.L49
.L52:
	nop
.L47:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L50
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L51
	nop
.L49:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	reportScore
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L53+16
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-36]
	bl	reportScore
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L53+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	boards
	.word	draws
	.word	boards_count
	.word	draws_count
	.word	.LC9
	.word	.LC10
	.size	simulateBingo, .-simulateBingo
	.section	.rodata
	.align	2
.LC11:
	.ascii	"** AoC 2021 - Day 04\000"
	.align	2
.LC12:
	.ascii	"parsed %u draws, %u boards\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L56
	bl	puts
	bl	parseInput
	ldr	r3, .L56+4
	ldr	r3, [r3]
	ldr	r2, .L56+8
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L56+12
	bl	printf
	bl	simulateBingo
	mov	r0, #0
	bl	exit
.L57:
	.align	2
.L56:
	.word	.LC11
	.word	draws_count
	.word	boards_count
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
