	.file	"800609.c"
	.intel_syntax noprefix
	.text
	.globl	get_product
	.type	get_product, @function
get_product:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	BYTE PTR -18[rbp], 32
	mov	BYTE PTR -17[rbp], 0
	mov	QWORD PTR -8[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -18[rbp], al
	cmp	BYTE PTR -18[rbp], 47
	jle	.L3
	cmp	BYTE PTR -18[rbp], 57
	jle	.L4
.L3:
	cmp	BYTE PTR -18[rbp], -1
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	sub	DWORD PTR -12[rbp], 1
	jmp	.L7
.L4:
	movzx	eax, BYTE PTR -18[rbp]
	sub	eax, 48
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], 0
	jne	.L8
	mov	eax, 0
	jmp	.L6
.L8:
	movzx	eax, BYTE PTR -17[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
.L7:
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L9
	mov	eax, 1
	sub	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -8[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_product, .-get_product
	.section	.rodata
.LC0:
	.string	"rt"
.LC1:
	.string	"digits.txt"
.LC2:
	.string	"Unable to open file"
	.align 8
.LC3:
	.string	"Maximum product: %lld\t Location: %d^th position\n\t"
.LC4:
	.string	"%c x "
.LC5:
	.string	"%c = %lld\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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 4
	mov	QWORD PTR -24[rbp], 0
	cmp	DWORD PTR -52[rbp], 2
	jne	.L11
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
.L11:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L12
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_product
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jle	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L12
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L15
.L20:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -33[rbp], al
	cmp	BYTE PTR -33[rbp], 47
	jle	.L21
	cmp	BYTE PTR -33[rbp], 57
	jg	.L21
	cmp	DWORD PTR -28[rbp], 1
	jle	.L19
	movsx	eax, BYTE PTR -33[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L19:
	movsx	eax, BYTE PTR -33[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L21:
	nop
.L18:
	sub	DWORD PTR -28[rbp], 1
.L15:
	cmp	DWORD PTR -28[rbp], 0
	jg	.L20
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L13:
	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	"800609.c"
	.text
	.align	2
	.global	get_product
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_product, %function
get_product:
	@ 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]
	mov	r3, #32
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-21]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L8:
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L3
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L4
.L3:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L5
.L4:
	ldrb	r3, [fp, #-22]
	sub	r3, r3, #48
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	mov	r2, #0
	mov	r3, #0
	b	.L7
.L6:
	ldrb	r0, [fp, #-21]	@ zero_extendqisi2
	mov	r1, #0
	ldr	r3, [fp, #-8]
	mul	r2, r0, r3
	ldr	r3, [fp, #-12]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-12]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fseek
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
.L7:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_product, .-get_product
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rt\000"
	.align	2
.LC1:
	.ascii	"digits.txt\000"
	.align	2
.LC2:
	.ascii	"Unable to open file\000"
	.align	2
.LC3:
	.ascii	"Maximum product: %lld\011 Location: %d^th position\012"
	.ascii	"\011\000"
	.align	2
.LC4:
	.ascii	"%c x \000"
	.align	2
.LC5:
	.ascii	"%c = %lld\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #4
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L10
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-28]
.L10:
	ldr	r1, .L21
	ldr	r0, .L21+4
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L21+8
	bl	perror
	mvn	r3, #0
	b	.L12
.L11:
	ldr	r0, [fp, #-24]
	bl	ftell
	mov	r3, r0
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	get_product
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L13
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	ftell
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L13:
	ldr	r0, [fp, #-24]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+12
	bl	printf
	mov	r2, #0
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	fseek
	b	.L14
.L19:
	ldr	r0, [fp, #-24]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-33]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L20
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L20
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	ble	.L18
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L21+16
	bl	printf
	b	.L17
.L18:
	ldrb	r1, [fp, #-33]	@ zero_extendqisi2
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+20
	bl	printf
	b	.L17
.L20:
	nop
.L17:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L14:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L19
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
