	.file	"626608.c"
	.intel_syntax noprefix
	.text
	.globl	GIVEN
	.section	.rodata
	.align 8
.LC0:
	.ascii	"731671765313306249192251196744265747423553491949349698352031"
	.ascii	"277450632623957831801698480186947885184385861560789112949495"
	.ascii	"459501737958331952853208805511125406987471585238630507156932"
	.ascii	"909632952274430435576689664895044524452316173185640309871112"
	.ascii	"172238311362229893423380308135336276614282806444486645238749"
	.ascii	"303589072962904915604407723907138105158593079608667017242712"
	.ascii	"188399879790879227492190169972088809377665727333001053367881"
	.ascii	"220235421809751254540594752243525849077116705560136048395864"
	.ascii	"467063244157221553975369781797784617406495514929086256932197"
	.ascii	"846862248283972241375657056057490261407972968652414535100474"
	.ascii	"821663704844031998900088952434506585412275886668811642717147"
	.ascii	"992444292823086346567481391912316282458617866458359124566529"
	.ascii	"476545682848912883142607"
	.string	"6900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
	.section	.data.rel.local,"aw"
	.align 8
	.type	GIVEN, @object
	.size	GIVEN, 8
GIVEN:
	.quad	.LC0
	.section	.rodata
	.align 8
.LC1:
	.string	"The greatest product of 13 digits is %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	rax, QWORD PTR GIVEN[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -64[rbp], 1
	mov	QWORD PTR -72[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR GIVEN[rip]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -64[rbp], rax
	add	QWORD PTR -72[rbp], 1
.L2:
	cmp	QWORD PTR -72[rbp], 12
	jbe	.L3
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -72[rbp], 13
	jmp	.L4
.L10:
	mov	rdx, QWORD PTR GIVEN[rip]
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, 13
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR GIVEN[rip]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L6
.L5:
	mov	QWORD PTR -64[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, 12
	mov	QWORD PTR -48[rbp], rax
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR GIVEN[rip]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	imul	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -64[rbp], rax
	add	QWORD PTR -48[rbp], 1
.L7:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jbe	.L8
.L6:
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jle	.L9
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -56[rbp], rax
.L9:
	add	QWORD PTR -72[rbp], 1
.L4:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L10
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"626608.c"
	.text
	.global	GIVEN
	.section	.rodata
	.align	2
.LC0:
	.ascii	"731671765313306249192251196744265747423553491949349"
	.ascii	"698352031277450632623957831801698480186947885184385"
	.ascii	"861560789112949495459501737958331952853208805511125"
	.ascii	"406987471585238630507156932909632952274430435576689"
	.ascii	"664895044524452316173185640309871112172238311362229"
	.ascii	"893423380308135336276614282806444486645238749303589"
	.ascii	"072962904915604407723907138105158593079608667017242"
	.ascii	"712188399879790879227492190169972088809377665727333"
	.ascii	"001053367881220235421809751254540594752243525849077"
	.ascii	"116705560136048395864467063244157221553975369781797"
	.ascii	"784617406495514929086256932197846862248283972241375"
	.ascii	"657056057490261407972968652414535100474821663704844"
	.ascii	"031998900088952434506585412275886668811642717147992"
	.ascii	"444292823086346567481391912316282458617866458359124"
	.ascii	"566529476545682848912883142607690042242190226710556"
	.ascii	"263211111093705442175069416589604080719840385096245"
	.ascii	"544436298123098787992724428490918884580156166097919"
	.ascii	"133875499200524063689912560717606058861164671094050"
	.ascii	"775410022569831552000559357297257163626956188267042"
	.ascii	"8252483600823257530420752963450\000"
	.data
	.align	2
	.type	GIVEN, %object
	.size	GIVEN, 4
GIVEN:
	.word	.LC0
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC1:
	.ascii	"The greatest product of 13 digits is %ld\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, #40
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #12
	bls	.L3
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #13
	str	r3, [fp, #-40]
	b	.L4
.L10:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #13
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-20]
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-36]
	b	.L6
.L5:
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #12
	str	r3, [fp, #-28]
	b	.L7
.L8:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bls	.L8
.L6:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L4:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L10
	ldr	r1, [fp, #-32]
	ldr	r0, .L12+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	GIVEN
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
