	.file	"603483.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	cdqe
	mov	rdx, QWORD PTR -16[rbp]
	imul	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	ja	.L3
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_product, .-get_product
	.globl	substr
	.type	substr, @function
substr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	cdqe
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L7
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	substr, .-substr
	.globl	largest_product_in_series
	.type	largest_product_in_series, @function
largest_product_in_series:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L12:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	substr
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	get_product
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jbe	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	cmp	DWORD PTR -28[rbp], 999
	jle	.L12
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	largest_product_in_series, .-largest_product_in_series
	.section	.rodata
.LC1:
	.string	"the_stack_data/603483.c"
	.align 8
.LC2:
	.string	"5832 == largest_product_in_series(number, 4)"
	.align 8
.LC3:
	.string	"2571912 == largest_product_in_series(number, 7)"
	.align 8
.LC4:
	.string	"23514624000 == largest_product_in_series(number, 13)"
	.align 8
.LC5:
	.string	"282293061120 == largest_product_in_series(number, 15)"
	.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"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1024
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1024[rbp]
	lea	rdx, .LC0[rip]
	mov	ecx, 125
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	rdx, rsi
	mov	rax, rdi
	movzx	ecx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], cl
	lea	rax, -1024[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	largest_product_in_series
	cmp	rax, 5832
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 103
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L15:
	lea	rax, -1024[rbp]
	mov	esi, 7
	mov	rdi, rax
	call	largest_product_in_series
	cmp	rax, 2571912
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 104
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L16:
	lea	rax, -1024[rbp]
	mov	esi, 13
	mov	rdi, rax
	call	largest_product_in_series
	movabs	rdx, 23514624000
	cmp	rax, rdx
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 105
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L17:
	lea	rax, -1024[rbp]
	mov	esi, 15
	mov	rdi, rax
	call	largest_product_in_series
	movabs	rdx, 282293061120
	cmp	rax, rdx
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 106
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L18:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"603483.c"
	.text
	.align	2
	.global	get_product
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_product, %function
get_product:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L3:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r0, r3
	asr	r1, r0, #31
	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]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bhi	.L3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_product, .-get_product
	.align	2
	.global	substr
	.syntax unified
	.arm
	.fpu softvfp
	.type	substr, %function
substr:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	str	r1, [fp, #-16]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	substr, .-substr
	.align	2
	.global	largest_product_in_series
	.syntax unified
	.arm
	.fpu softvfp
	.type	largest_product_in_series, %function
largest_product_in_series:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L10
.L12:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	substr
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	get_product
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L11
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
.L11:
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L10:
	ldr	r3, [fp, #-28]
	cmp	r3, #1000
	blt	.L12
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	largest_product_in_series, .-largest_product_in_series
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/603483.c\000"
	.align	2
.LC2:
	.ascii	"5832 == largest_product_in_series(number, 4)\000"
	.align	2
.LC3:
	.ascii	"2571912 == largest_product_in_series(number, 7)\000"
	.align	2
.LC4:
	.ascii	"23514624000 == largest_product_in_series(number, 13"
	.ascii	")\000"
	.align	2
.LC5:
	.ascii	"282293061120 == largest_product_in_series(number, 1"
	.ascii	"5)\000"
	.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"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1008
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1008
	ldr	r3, .L21+16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L21+20
	sub	r3, fp, #1012
	mov	r1, r2
	ldr	r2, .L21+24
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #1012
	mov	r1, #4
	mov	r0, r3
	bl	largest_product_in_series
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L21+28
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L15
	ldr	r3, .L21+32
	mov	r2, #103
	ldr	r1, .L21+36
	ldr	r0, .L21+40
	bl	__assert_fail
.L15:
	sub	r3, fp, #1012
	mov	r1, #7
	mov	r0, r3
	bl	largest_product_in_series
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L21+44
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L16
	ldr	r3, .L21+32
	mov	r2, #104
	ldr	r1, .L21+36
	ldr	r0, .L21+48
	bl	__assert_fail
.L16:
	sub	r3, fp, #1012
	mov	r1, #13
	mov	r0, r3
	bl	largest_product_in_series
	mov	r2, r0
	mov	r3, r1
	adr	r1, .L21
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L17
	ldr	r3, .L21+32
	mov	r2, #105
	ldr	r1, .L21+36
	ldr	r0, .L21+52
	bl	__assert_fail
.L17:
	sub	r3, fp, #1012
	mov	r1, #15
	mov	r0, r3
	bl	largest_product_in_series
	mov	r2, r0
	mov	r3, r1
	adr	r1, .L21+8
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L18
	ldr	r3, .L21+32
	mov	r2, #106
	ldr	r1, .L21+36
	ldr	r0, .L21+56
	bl	__assert_fail
.L18:
	mov	r3, #0
	ldr	r2, .L21+16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	3
.L21:
	.word	2039787520
	.word	5
	.word	-1174780416
	.word	65
	.word	.LC6
	.word	.LC0
	.word	1001
	.word	5832
	.word	__PRETTY_FUNCTION__.5343
	.word	.LC1
	.word	.LC2
	.word	2571912
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5343, %object
	.size	__PRETTY_FUNCTION__.5343, 5
__PRETTY_FUNCTION__.5343:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
