	.file	"294095.c"
	.intel_syntax noprefix
	.text
	.type	find_trailing_zero_num, @function
find_trailing_zero_num:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	WORD PTR -4[rbp], 0
	mov	WORD PTR -2[rbp], 0
	cmp	WORD PTR -20[rbp], 0
	je	.L2
	cmp	WORD PTR -20[rbp], 1
	jne	.L3
.L2:
	mov	eax, 0
	jmp	.L4
.L3:
	mov	WORD PTR -8[rbp], 2
	jmp	.L5
.L10:
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR -6[rbp], ax
	jmp	.L6
.L7:
	add	WORD PTR -2[rbp], 1
	movzx	eax, WORD PTR -6[rbp]
	movzx	eax, ax
	imul	eax, eax, 52429
	shr	eax, 16
	shr	ax, 2
	mov	WORD PTR -6[rbp], ax
.L6:
	movzx	ecx, WORD PTR -6[rbp]
	movzx	eax, cx
	imul	eax, eax, 52429
	shr	eax, 16
	shr	ax, 2
	mov	edx, eax
	sal	edx, 2
	add	edx, eax
	mov	eax, ecx
	sub	eax, edx
	test	ax, ax
	je	.L7
	jmp	.L8
.L9:
	add	WORD PTR -4[rbp], 1
	movzx	eax, WORD PTR -6[rbp]
	shr	ax
	mov	WORD PTR -6[rbp], ax
.L8:
	movzx	eax, WORD PTR -6[rbp]
	and	eax, 1
	test	ax, ax
	je	.L9
	add	WORD PTR -8[rbp], 1
.L5:
	movzx	eax, WORD PTR -8[rbp]
	cmp	ax, WORD PTR -20[rbp]
	jbe	.L10
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, WORD PTR -2[rbp]
	jbe	.L11
	movzx	eax, WORD PTR -2[rbp]
	jmp	.L4
.L11:
	movzx	eax, WORD PTR -4[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_trailing_zero_num, .-find_trailing_zero_num
	.type	find_trailing_zero_num2, @function
find_trailing_zero_num2:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	WORD PTR -2[rbp], 0
	cmp	WORD PTR -20[rbp], 4
	ja	.L13
	mov	eax, 0
	jmp	.L14
.L13:
	mov	WORD PTR -4[rbp], 5
	jmp	.L15
.L16:
	movzx	eax, WORD PTR -20[rbp]
	mov	edx, 0
	div	WORD PTR -4[rbp]
	add	WORD PTR -2[rbp], ax
	movzx	edx, WORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	mov	WORD PTR -4[rbp], ax
.L15:
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, WORD PTR -20[rbp]
	jbe	.L16
	movzx	eax, WORD PTR -2[rbp]
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	find_trailing_zero_num2, .-find_trailing_zero_num2
	.section	.rodata
	.align 8
.LC0:
	.string	"%d! has %d <-> %d trailing zeros.\n"
	.align 8
.LC1:
	.string	"----------------------ther must be something wrong!--------------------"
	.text
	.type	print_factorial_zero_num, @function
print_factorial_zero_num:
.LFB2:
	.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	eax, edi
	mov	WORD PTR -20[rbp], ax
	movzx	eax, WORD PTR -20[rbp]
	mov	edi, eax
	call	find_trailing_zero_num
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -20[rbp]
	mov	edi, eax
	call	find_trailing_zero_num2
	mov	WORD PTR -2[rbp], ax
	movzx	ecx, WORD PTR -2[rbp]
	movzx	edx, WORD PTR -4[rbp]
	movzx	eax, WORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, WORD PTR -2[rbp]
	je	.L19
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print_factorial_zero_num, .-print_factorial_zero_num
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	WORD PTR -2[rbp], 0
	jmp	.L21
.L22:
	movzx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	print_factorial_zero_num
	add	WORD PTR -2[rbp], 1
.L21:
	cmp	WORD PTR -2[rbp], 1000
	jbe	.L22
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"294095.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_trailing_zero_num, %function
find_trailing_zero_num:
	@ 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
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-8]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-14]
	cmp	r3, #0
	beq	.L2
	ldrh	r3, [fp, #-14]
	cmp	r3, #1
	bne	.L3
.L2:
	mov	r3, #0
	b	.L4
.L3:
	mov	r3, #2
	strh	r3, [fp, #-12]	@ movhi
	b	.L5
.L10:
	ldrh	r3, [fp, #-12]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	b	.L6
.L7:
	ldrh	r3, [fp, #-6]	@ movhi
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-10]
	ldr	r2, .L12
	umull	r1, r3, r2, r3
	lsr	r3, r3, #2
	strh	r3, [fp, #-10]	@ movhi
.L6:
	ldrh	r2, [fp, #-10]
	ldr	r3, .L12
	umull	r1, r3, r2, r3
	lsr	r1, r3, #2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L7
	b	.L8
.L9:
	ldrh	r3, [fp, #-8]	@ movhi
	add	r3, r3, #1
	strh	r3, [fp, #-8]	@ movhi
	ldrh	r3, [fp, #-10]
	lsr	r3, r3, #1
	strh	r3, [fp, #-10]	@ movhi
.L8:
	ldrh	r3, [fp, #-10]	@ movhi
	and	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #0
	beq	.L9
	ldrh	r3, [fp, #-12]	@ movhi
	add	r3, r3, #1
	strh	r3, [fp, #-12]	@ movhi
.L5:
	ldrh	r2, [fp, #-12]
	ldrh	r3, [fp, #-14]
	cmp	r2, r3
	bls	.L10
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-6]
	cmp	r2, r3
	bls	.L11
	ldrh	r3, [fp, #-6]
	b	.L4
.L11:
	ldrh	r3, [fp, #-8]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	-858993459
	.size	find_trailing_zero_num, .-find_trailing_zero_num
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_trailing_zero_num2, %function
find_trailing_zero_num2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-14]
	cmp	r3, #4
	bhi	.L15
	mov	r3, #0
	b	.L16
.L15:
	mov	r3, #5
	strh	r3, [fp, #-8]	@ movhi
	b	.L17
.L18:
	ldrh	r3, [fp, #-14]
	ldrh	r2, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	add	r3, r2, r3
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-8]	@ movhi
	mov	r2, r3	@ movhi
	lsl	r2, r2, #2
	add	r3, r2, r3
	strh	r3, [fp, #-8]	@ movhi
.L17:
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-14]
	cmp	r2, r3
	bls	.L18
	ldrh	r3, [fp, #-6]
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_trailing_zero_num2, .-find_trailing_zero_num2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d! has %d <-> %d trailing zeros.\012\000"
	.align	2
.LC1:
	.ascii	"----------------------ther must be something wrong!"
	.ascii	"--------------------\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_factorial_zero_num, %function
print_factorial_zero_num:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-14]
	mov	r0, r3
	bl	find_trailing_zero_num
	mov	r3, r0
	strh	r3, [fp, #-8]	@ movhi
	ldrh	r3, [fp, #-14]
	mov	r0, r3
	bl	find_trailing_zero_num2
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r1, [fp, #-14]
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-6]
	ldr	r0, .L22
	bl	printf
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-6]
	cmp	r2, r3
	beq	.L21
	ldr	r0, .L22+4
	bl	puts
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC1
	.size	print_factorial_zero_num, .-print_factorial_zero_num
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L25
.L26:
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	bl	print_factorial_zero_num
	ldrh	r3, [fp, #-6]	@ movhi
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L25:
	ldrh	r3, [fp, #-6]
	cmp	r3, #1000
	bls	.L26
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
