	.file	"13864.c"
	.intel_syntax noprefix
	.text
	.globl	numVail
	.type	numVail, @function
numVail:
.LFB6:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L3
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L4
.L3:
	mov	eax, 0
	jmp	.L1
.L4:
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L6
.L1:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	numVail, .-numVail
	.section	.rodata
	.align 8
.LC0:
	.string	"===============Sum of numbers divisible by 3==============="
	.align 8
.LC1:
	.string	"Enter numbers (end with: Enter | #.#)"
.LC2:
	.string	"%[^\n]"
.LC3:
	.string	"#.#"
.LC4:
	.string	"a"
.LC5:
	.string	"testcase.txt"
.LC6:
	.string	"%s, hop le\n"
.LC7:
	.string	"%s, khong hop le\n"
	.align 8
.LC8:
	.string	"Khong co so nao hop le chia het cho 3: "
.LC9:
	.string	"Cac so chia het cho 3 la: "
.LC10:
	.string	"%s "
.LC11:
	.string	"\nTong la: %d"
	.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
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3376
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40208[rbp]
	mov	edx, 40000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -40236[rbp], 0
	mov	DWORD PTR -40224[rbp], 0
	mov	QWORD PTR -40216[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
.L12:
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -208[rbp]
	movzx	eax, al
	test	eax, eax
	je	.L8
	lea	rax, -208[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L8
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	numVail
	test	eax, eax
	je	.L9
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -40220[rbp], eax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -40216[rbp], rax
	cmp	QWORD PTR -40216[rbp], 0
	je	.L9
	mov	edx, DWORD PTR -40220[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L10
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -40216[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rcx, -40208[rbp]
	mov	eax, DWORD PTR -40236[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	lea	rax, -208[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	add	DWORD PTR -40236[rbp], 1
	jmp	.L11
.L10:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -40216[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L11:
	mov	rax, QWORD PTR -40216[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	BYTE PTR -208[rbp], 0
	jmp	.L12
.L8:
	mov	DWORD PTR -40232[rbp], 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -40216[rbp], rax
	cmp	DWORD PTR -40236[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -40216[rbp]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -40216[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	DWORD PTR -40228[rbp], 0
	jmp	.L15
.L17:
	cmp	QWORD PTR -40216[rbp], 0
	je	.L16
	lea	rcx, -40208[rbp]
	mov	eax, DWORD PTR -40228[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	test	eax, eax
	je	.L16
	lea	rcx, -40208[rbp]
	mov	eax, DWORD PTR -40228[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -40216[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rcx, -40208[rbp]
	mov	eax, DWORD PTR -40228[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdi, rax
	call	atoi@PLT
	add	DWORD PTR -40232[rbp], eax
.L16:
	add	DWORD PTR -40228[rbp], 1
.L15:
	mov	eax, DWORD PTR -40228[rbp]
	cmp	eax, DWORD PTR -40236[rbp]
	jl	.L17
	mov	edx, DWORD PTR -40232[rbp]
	mov	rax, QWORD PTR -40216[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L14:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"13864.c"
	.text
	.align	2
	.global	numVail
	.syntax unified
	.arm
	.fpu softvfp
	.type	numVail, %function
numVail:
	@ 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	.L2
.L6:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L4
.L3:
	mov	r3, #0
	b	.L1
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L6
.L1:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	numVail, .-numVail
	.section	.rodata
	.align	2
.LC0:
	.ascii	"===============Sum of numbers divisible by 3======="
	.ascii	"========\000"
	.align	2
.LC1:
	.ascii	"Enter numbers (end with: Enter | #.#)\000"
	.align	2
.LC2:
	.ascii	"%[^\012]\000"
	.align	2
.LC3:
	.ascii	"#.#\000"
	.align	2
.LC4:
	.ascii	"a\000"
	.align	2
.LC5:
	.ascii	"testcase.txt\000"
	.align	2
.LC6:
	.ascii	"%s, hop le\012\000"
	.align	2
.LC7:
	.ascii	"%s, khong hop le\012\000"
	.align	2
.LC8:
	.ascii	"Khong co so nao hop le chia het cho 3: \000"
	.align	2
.LC9:
	.ascii	"Cac so chia het cho 3 la: \000"
	.align	2
.LC10:
	.ascii	"%s \000"
	.align	2
.LC11:
	.ascii	"\012Tong la: %d\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #40192
	sub	sp, sp, #44
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	sub	r3, r3, #3328
	sub	r3, r3, #12
	ldr	r2, .L20+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3364]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3352]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3348]
	ldr	r0, .L20+8
	bl	puts
	ldr	r0, .L20+12
	bl	puts
	ldr	r3, .L20+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L12:
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L20+20
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-216]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #216
	ldr	r1, .L20+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #216
	mov	r0, r3
	bl	numVail
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #216
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-3344]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L20+28
	ldr	r0, .L20+32
	bl	fopen
	str	r0, [r4, #-3348]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3348]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3344]
	ldr	r3, .L20+36
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L10
	sub	r3, fp, #216
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L20+40
	ldr	r0, [r0, #-3348]
	bl	fprintf
	sub	r2, fp, #40192
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3364]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #216
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3364]
	add	r3, r3, #1
	str	r3, [r2, #-3364]
	b	.L11
.L10:
	sub	r3, fp, #216
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L20+44
	ldr	r0, [r0, #-3348]
	bl	fprintf
.L11:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r0, [r3, #-3348]
	bl	fclose
.L9:
	ldr	r3, .L20+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	strb	r3, [fp, #-216]
	b	.L12
.L8:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3360]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L20+28
	ldr	r0, .L20+32
	bl	fopen
	str	r0, [r4, #-3348]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3364]
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3348]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L20+48
	bl	fwrite
	b	.L14
.L13:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3348]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L20+52
	bl	fwrite
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3356]
	b	.L15
.L17:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3348]
	cmp	r3, #0
	beq	.L16
	sub	r2, fp, #40192
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3356]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	sub	r2, fp, #40192
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3356]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L20+56
	ldr	r0, [r0, #-3348]
	bl	fprintf
	sub	r2, fp, #40192
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3356]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3360]
	add	r3, r3, r2
	str	r3, [r1, #-3360]
.L16:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3356]
	add	r3, r3, #1
	str	r3, [r2, #-3356]
.L15:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r2, #-3356]
	ldr	r3, [r3, #-3364]
	cmp	r2, r3
	blt	.L17
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r2, #-3360]
	ldr	r1, .L20+60
	ldr	r0, [r3, #-3348]
	bl	fprintf
.L14:
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC12
	.word	40000
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1431655766
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
