	.file	"218892179.c"
	.intel_syntax noprefix
	.text
	.globl	count_unique
	.type	count_unique, @function
count_unique:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L2
	sub	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 2
	je	.L3
	cmp	DWORD PTR -4[rbp], 3
	je	.L3
	cmp	DWORD PTR -4[rbp], 4
	je	.L3
	cmp	DWORD PTR -4[rbp], 7
	jne	.L4
.L3:
	mov	eax, 1
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count_unique, .-count_unique
	.section	.rodata
.LC0:
	.string	"|"
.LC1:
	.string	" "
	.align 8
.LC2:
	.string	"(DAY 08A) Digits '1', '4', '7' and '8' appear %lu times!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1064[rbp], 0
	jmp	.L7
.L10:
	lea	rax, -1040[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strtok@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1056[rbp], rax
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdi, rax
	call	count_unique
	add	QWORD PTR -1064[rbp], rax
	lea	rsi, .LC1[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1056[rbp], rax
.L8:
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L9
.L7:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"218892179.c"
	.text
	.align	2
	.global	count_unique
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_unique, %function
count_unique:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	beq	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L4
.L3:
	mov	r2, #1
	mov	r3, #0
	b	.L5
.L4:
	mov	r2, #0
	mov	r3, #0
.L5:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	count_unique, .-count_unique
	.section	.rodata
	.align	2
.LC0:
	.ascii	"|\000"
	.align	2
.LC1:
	.ascii	" \000"
	.align	2
.LC2:
	.ascii	"(DAY 08A) Digits '1', '4', '7' and '8' appear %lu t"
	.ascii	"imes!\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1040
	sub	sp, sp, #8
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1052]
	str	r3, [fp, #-1048]
	b	.L7
.L10:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L13+4
	mov	r0, r3
	bl	strtok
	ldr	r1, .L13+4
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1056]
	ldr	r1, .L13+8
	ldr	r0, [fp, #-1056]
	bl	strtok
	str	r0, [fp, #-1060]
	b	.L8
.L9:
	ldr	r0, [fp, #-1060]
	bl	count_unique
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-1052]
	str	r5, [fp, #-1048]
	ldr	r1, .L13+8
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1060]
.L8:
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	bne	.L9
.L7:
	ldr	r3, .L13+12
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	ldr	r0, .L13+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
