	.file	"980863.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"KHONG RUT DUOC"
.LC1:
	.string	"%lld VND: %d\n"
	.text
	.globl	withdraw
	.type	withdraw, @function
withdraw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -136[rbp]
	movabs	rdx, 3777893186295716171
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 11
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 10000
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	mov	QWORD PTR -64[rbp], 500000
	mov	QWORD PTR -56[rbp], 200000
	mov	QWORD PTR -48[rbp], 100000
	mov	QWORD PTR -40[rbp], 50000
	mov	QWORD PTR -32[rbp], 20000
	mov	QWORD PTR -24[rbp], 10000
	mov	QWORD PTR -120[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR -96[rbp+rax*4], 0
	add	QWORD PTR -120[rbp], 1
.L4:
	cmp	QWORD PTR -120[rbp], 5
	jbe	.L5
	mov	QWORD PTR -112[rbp], 0
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -64[rbp+rax*8]
	cmp	QWORD PTR -136[rbp], rax
	jge	.L7
	add	QWORD PTR -112[rbp], 1
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -96[rbp+rax*4]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -64[rbp+rax*8]
	sub	QWORD PTR -136[rbp], rax
.L6:
	cmp	QWORD PTR -136[rbp], 0
	jne	.L8
	mov	QWORD PTR -104[rbp], 0
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR -96[rbp+rax*4]
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L14:
	nop
.L11:
	add	QWORD PTR -104[rbp], 1
.L9:
	cmp	QWORD PTR -104[rbp], 5
	jbe	.L12
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	withdraw, .-withdraw
	.section	.rodata
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	withdraw
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"980863.c"
	.text
	.global	__aeabi_ldivmod
	.section	.rodata
	.align	2
.LC1:
	.ascii	"KHONG RUT DUOC\000"
	.align	2
.LC2:
	.ascii	"%lld VND: %d\012\000"
	.align	3
.LC0:
	.word	500000
	.word	0
	.word	200000
	.word	0
	.word	100000
	.word	0
	.word	50000
	.word	0
	.word	20000
	.word	0
	.word	10000
	.word	0
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	withdraw
	.syntax unified
	.arm
	.fpu softvfp
	.type	withdraw, %function
withdraw:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	ldr	r2, .L15+4
	mov	r3, #0
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	beq	.L2
	ldr	r0, .L15+8
	bl	puts
	b	.L1
.L2:
	ldr	r3, .L15+12
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L4
.L5:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-80]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L4:
	ldr	r3, [fp, #-104]
	cmp	r3, #5
	bls	.L5
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L6
.L8:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #56
	ldmia	r3, {r2-r3}
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L7
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L6
.L7:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	add	r2, r3, #1
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-80]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #56
	ldmia	r3, {r2-r3}
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [fp, #-116]
	str	r5, [fp, #-112]
.L6:
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L9
.L12:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #56
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L15+16
	bl	printf
	b	.L11
.L14:
	nop
.L11:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L9:
	ldr	r3, [fp, #-96]
	cmp	r3, #5
	bls	.L12
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	10000
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	withdraw, .-withdraw
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%lld\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L20+4
	bl	__isoc99_scanf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	withdraw
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
