	.file	"597289.c"
	.intel_syntax noprefix
	.text
	.type	pickedup, @function
pickedup:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	sete	dl
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	sete	al
	or	eax, edx
	movzx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	sete	al
	movzx	eax, al
	or	eax, edx
	test	eax, eax
	setne	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pickedup, .-pickedup
	.type	play, @function
play:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L4
.L11:
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, 1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
.L6:
	mov	QWORD PTR -48[rbp], rax
	jmp	.L7
.L10:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
.L9:
	mov	QWORD PTR -48[rbp], rax
.L7:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pickedup
	test	al, al
	jne	.L10
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -72[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
.L4:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -80[rbp], rdx
	test	rax, rax
	jne	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	play, .-play
	.type	label, @function
label:
.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, 72
	.cfi_offset 3, -24
	mov	eax, edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	BYTE PTR -52[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	movzx	eax, BYTE PTR -52[rbp]
	movzx	edx, al
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movzx	edx, al
	mov	r10, rdx
	mov	r11d, 0
	movzx	edx, al
	mov	r8, rdx
	mov	r9d, 0
	movzx	eax, al
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L14:
	cmp	rsp, rdx
	je	.L15
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L14
.L15:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L16
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L16:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -32[rbp], rax
	mov	BYTE PTR -41[rbp], 0
	jmp	.L17
.L18:
	movzx	eax, BYTE PTR -41[rbp]
	add	eax, 1
	movzx	ecx, BYTE PTR -52[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	ecx, -1[rax]
	movzx	edx, BYTE PTR -41[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	edx, -1[rax]
	movsx	rcx, ecx
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	movzx	eax, BYTE PTR -41[rbp]
	add	eax, 1
	mov	BYTE PTR -41[rbp], al
.L17:
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, BYTE PTR -52[rbp]
	jb	.L18
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sub	eax, 1
	movsx	rdx, eax
	movzx	eax, BYTE PTR -52[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	ecx, 100
	mov	rdi, rax
	call	play
	mov	BYTE PTR -42[rbp], 0
	mov	BYTE PTR -43[rbp], 0
	jmp	.L19
.L20:
	movzx	edx, BYTE PTR -42[rbp]
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	BYTE PTR -42[rbp], al
	movzx	eax, BYTE PTR -42[rbp]
	lea	ecx, 49[rax]
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -43[rbp]
	add	eax, 1
	mov	BYTE PTR -43[rbp], al
.L19:
	movzx	eax, BYTE PTR -43[rbp]
	movzx	edx, BYTE PTR -52[rbp]
	sub	edx, 1
	cmp	eax, edx
	jl	.L20
	movzx	eax, BYTE PTR -52[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	label, .-label
	.section	.rodata
	.align 8
.LC0:
	.string	"Could not allocate the cup array\n"
.LC1:
	.string	"%lu * %lu wraps around\n"
	.text
	.type	stars, @function
stars:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	edi, 8000000
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L24
.L29:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jnb	.L25
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sub	eax, 1
	mov	eax, eax
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -40[rbp]
.L26:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, 1
	cmp	QWORD PTR -40[rbp], rax
	jnb	.L27
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sub	eax, 1
	mov	eax, eax
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
.L28:
	mov	rdx, QWORD PTR -8[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rdx], rax
	add	QWORD PTR -40[rbp], 1
.L24:
	cmp	QWORD PTR -40[rbp], 999998
	jbe	.L29
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 7999992[rax]
	movsx	rax, ecx
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, 10000000
	mov	rsi, rax
	mov	edi, 1000000
	call	play
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, -1
	mov	edx, 0
	div	QWORD PTR -16[rbp]
	cmp	QWORD PTR -24[rbp], rax
	jb	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stars, .-stars
	.section	.rodata
.LC2:
	.string	"%c is not a digit\n"
.LC3:
	.string	"Puzzle input parsing failed\n"
.LC4:
	.string	"%u cups is not enough\n"
	.align 8
.LC5:
	.string	"Cups between 1 and %u are missing\n"
.LC6:
	.string	"Labels\t%s\n"
.LC7:
	.string	"Stars\t%lu\n"
	.text
	.globl	day23
	.type	day23, @function
day23:
.LFB10:
	.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, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -101[rbp], 0
	jmp	.L33
.L38:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	je	.L34
	jmp	.L33
.L34:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -100[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L48
.L35:
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, eax
	movzx	eax, BYTE PTR -101[rbp]
	lea	edx, 1[rax]
	mov	BYTE PTR -101[rbp], dl
	movzx	eax, al
	lea	edx, -48[rcx]
	cdqe
	mov	BYTE PTR -65[rbp+rax], dl
.L33:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	je	.L37
	cmp	BYTE PTR -101[rbp], 9
	jbe	.L38
.L37:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L40
.L39:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L48
.L40:
	cmp	BYTE PTR -101[rbp], 3
	ja	.L41
	movzx	edx, BYTE PTR -101[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L48
.L41:
	mov	QWORD PTR -96[rbp], 0
	mov	BYTE PTR -102[rbp], 0
	jmp	.L42
.L43:
	movzx	eax, BYTE PTR -102[rbp]
	cdqe
	movzx	eax, BYTE PTR -65[rbp+rax]
	movzx	eax, al
	sub	eax, 1
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	eax, eax
	or	QWORD PTR -96[rbp], rax
	movzx	eax, BYTE PTR -102[rbp]
	add	eax, 1
	mov	BYTE PTR -102[rbp], al
.L42:
	movzx	eax, BYTE PTR -102[rbp]
	cmp	al, BYTE PTR -101[rbp]
	jb	.L43
	movzx	eax, BYTE PTR -101[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	mov	eax, eax
	cmp	QWORD PTR -96[rbp], rax
	je	.L44
	movzx	edx, BYTE PTR -101[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L48
.L44:
	movzx	eax, BYTE PTR -101[rbp]
	mov	rdx, rsp
	mov	rbx, rdx
	movzx	edx, al
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movzx	edx, al
	mov	r14, rdx
	mov	r15d, 0
	movzx	edx, al
	mov	r12, rdx
	mov	r13d, 0
	movzx	eax, al
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L45:
	cmp	rsp, rdx
	je	.L46
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L45
.L46:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L47
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L47:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	movzx	eax, BYTE PTR -101[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rcx, -65[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	label
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -101[rbp]
	lea	rdx, -65[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stars
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, rbx
.L48:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	day23, .-day23
	.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	"597289.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pickedup, %function
pickedup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	cmp	r1, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	orr	r3, r2, r3
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	orr	r3, r1, r3
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pickedup, .-pickedup
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	play, %function
play:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L4
.L11:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	b	.L6
.L5:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
.L6:
	str	r3, [fp, #-28]
	b	.L7
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	b	.L9
.L8:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
.L9:
	str	r3, [fp, #-28]
.L7:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	pickedup
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-36]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-40]
.L4:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bne	.L11
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.size	play, .-play
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	label, %function
label:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	mov	r3, r0
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	strb	r3, [fp, #-29]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldrb	ip, [fp, #-29]	@ zero_extendqisi2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	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, #-20]
	mov	r3, #0
	strb	r3, [fp, #-25]
	b	.L16
.L17:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	add	r3, r3, #1
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #1
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-25]
.L16:
	ldrb	r2, [fp, #-25]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L17
	ldrb	r0, [fp, #-29]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	mov	r2, r3
	mov	r3, #100
	ldr	r1, [fp, #-20]
	bl	play
	mov	r3, #0
	strb	r3, [fp, #-26]
	mov	r3, #0
	strb	r3, [fp, #-27]
	b	.L18
.L19:
	ldrb	r2, [fp, #-26]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	strb	r3, [fp, #-26]
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r2, [fp, #-26]
	add	r2, r2, #49
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-27]
.L18:
	ldrb	r2, [fp, #-27]	@ zero_extendqisi2
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L19
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	sp, r4
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC1
	.size	label, .-label
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Could not allocate the cup array\012\000"
	.global	__aeabi_uldivmod
	.align	2
.LC3:
	.ascii	"%llu * %llu wraps around\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stars, %function
stars:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r0, .L33
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L33+4
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L33+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L24:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L25
.L30:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcs	.L26
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	b	.L27
.L26:
	ldr	r3, [fp, #-32]
.L27:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcs	.L28
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	b	.L29
.L28:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
.L29:
	ldr	r2, [fp, #-24]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-28]
	add	r2, r1, r2
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L25:
	ldr	r3, [fp, #-32]
	ldr	r2, .L33+12
	cmp	r3, r2
	bls	.L30
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, r3, #1
	ldr	r2, [fp, #-28]
	ldr	r3, .L33+16
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L33+20
	ldr	r1, [fp, #-28]
	ldr	r0, .L33+24
	bl	play
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-28]
	bl	free
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r3, r1
	cmpeq	r2, r0
	bcc	.L31
	ldr	r3, .L33+4
	ldr	r0, [r3]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, .L33+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mul	r3, r1, r3
	add	r1, r2, r3
	ldr	ip, [fp, #-20]
	ldr	r0, [fp, #-12]
	umull	r2, r3, ip, r0
	add	r1, r1, r3
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	4000000
	.word	stderr
	.word	.LC2
	.word	999998
	.word	3999996
	.word	10000000
	.word	1000000
	.word	.LC3
	.size	stars, .-stars
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%c is not a digit\012\000"
	.align	2
.LC5:
	.ascii	"Puzzle input parsing failed\012\000"
	.align	2
.LC6:
	.ascii	"%u cups is not enough\012\000"
	.align	2
.LC7:
	.ascii	"Cups between 1 and %u are missing\012\000"
	.align	2
.LC8:
	.ascii	"Labels\011%s\012\000"
	.align	2
.LC9:
	.ascii	"Stars\011%llu\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	day23
	.syntax unified
	.arm
	.fpu softvfp
	.type	day23, %function
day23:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-45]
	b	.L36
.L41:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	beq	.L37
	b	.L36
.L37:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L50+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L48
.L38:
	ldr	r3, [fp, #-40]
	and	r2, r3, #255
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	add	r1, r3, #1
	strb	r1, [fp, #-45]
	mov	r1, r3
	sub	r3, r2, #48
	and	r2, r3, #255
	sub	r3, fp, #12
	add	r3, r3, r1
	strb	r2, [r3, #-16]
.L36:
	ldr	r0, [fp, #-56]
	bl	fgetc
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	beq	.L40
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L41
.L40:
	ldr	r0, [fp, #-56]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r0, [fp, #-56]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
.L42:
	ldr	r3, .L50+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L50+12
	bl	fwrite
	mov	r3, #1
	b	.L48
.L43:
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #3
	bhi	.L44
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldrb	r2, [fp, #-45]	@ zero_extendqisi2
	ldr	r1, .L50+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L48
.L44:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	strb	r3, [fp, #-46]
	b	.L45
.L46:
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-16]	@ zero_extendqisi2
	sub	r3, r3, #1
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-44]
	orr	r3, r2, r3
	str	r3, [fp, #-44]
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-46]
.L45:
	ldrb	r2, [fp, #-46]	@ zero_extendqisi2
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L46
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	mov	r2, #1
	lsl	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	beq	.L47
	ldr	r3, .L50+4
	ldr	r3, [r3]
	ldrb	r2, [fp, #-45]	@ zero_extendqisi2
	ldr	r1, .L50+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L48
.L47:
	ldrb	ip, [fp, #-45]	@ zero_extendqisi2
	mov	r3, sp
	mov	r4, r3
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	and	r0, ip, #255
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-32]
	sub	r1, fp, #28
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	mov	r0, r3
	bl	label
	ldr	r1, [fp, #-32]
	ldr	r0, .L50+24
	bl	printf
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	stars
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L50+28
	bl	printf
	mov	r3, #0
	mov	sp, r4
.L48:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC10
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	day23, .-day23
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
