	.file	"158905.c"
	.intel_syntax noprefix
	.text
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 200
p:
	.zero	200
	.globl	m
	.align 32
	.type	m, @object
	.size	m, 10000
m:
	.zero	10000
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 10000
s:
	.zero	10000
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"\n Enter the number of elements :"
.LC1:
	.string	"%d"
.LC2:
	.string	"\n Enter dimension sequence : "
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR -12[rbp]
	cmp	edx, eax
	jl	.L3
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	matrix_chain_order
	mov	edx, DWORD PTR j[rip]
	mov	eax, DWORD PTR i[rip]
	mov	esi, edx
	mov	edi, eax
	call	print_optimal_solution
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	display
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	matrix_chain_order
	.type	matrix_chain_order, @function
matrix_chain_order:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR i[rip], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR i[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L7:
	mov	eax, DWORD PTR i[rip]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L8
	mov	DWORD PTR -12[rbp], 2
	jmp	.L9
.L15:
	mov	DWORD PTR i[rip], 1
	jmp	.L10
.L14:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	sub	eax, 1
	mov	DWORD PTR j[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	DWORD PTR [rdx+rax], 9999
	mov	eax, DWORD PTR i[rip]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L11
.L13:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR j[rip]
	movsx	rsi, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR i[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	edx, eax
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, p[rip]
	mov	eax, DWORD PTR [rcx+rax]
	imul	eax, edx
	add	eax, esi
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L12
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rdx, m[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rdx, s[rip]
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L12:
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR j[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L13
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L10:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR i[rip]
	cmp	edx, eax
	jge	.L14
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L15
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	matrix_chain_order, .-matrix_chain_order
	.section	.rodata
.LC3:
	.string	"A%d"
	.text
	.globl	print_optimal_solution
	.type	print_optimal_solution, @function
print_optimal_solution:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L17
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L17:
	mov	edi, 40
	call	putchar@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	print_optimal_solution
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, edx
	call	print_optimal_solution
	mov	edi, 41
	call	putchar@PLT
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	print_optimal_solution, .-print_optimal_solution
	.section	.rodata
.LC4:
	.string	"\n"
.LC5:
	.string	"Matrix is:"
.LC6:
	.string	"%d\t"
.LC7:
	.string	"Sequence matrix is :"
	.text
	.globl	display
	.type	display, @function
display:
.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
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR i[rip], 1
	jmp	.L21
.L26:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L22
.L23:
	mov	edi, 9
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L22:
	mov	eax, DWORD PTR i[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L23
	mov	eax, DWORD PTR i[rip]
	mov	DWORD PTR j[rip], eax
	jmp	.L24
.L25:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, m[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L24:
	mov	eax, DWORD PTR j[rip]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L25
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L21:
	mov	eax, DWORD PTR i[rip]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L26
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR i[rip], 1
	jmp	.L27
.L32:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L28
.L29:
	mov	edi, 9
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L28:
	mov	eax, DWORD PTR i[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L29
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
	jmp	.L30
.L31:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR j[rip]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, s[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L30:
	mov	eax, DWORD PTR j[rip]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L31
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L27:
	mov	eax, DWORD PTR i[rip]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L32
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	display, .-display
	.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	"158905.c"
	.text
	.comm	p,200,4
	.comm	m,10000,4
	.comm	s,10000,4
	.comm	i,4,4
	.comm	j,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Enter the number of elements :\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012 Enter dimension sequence : \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r0, .L6+12
	bl	printf
	ldr	r3, .L6+16
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L3:
	ldr	r3, .L6+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L6+20
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r3, .L6+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+16
	str	r3, [r2]
.L2:
	ldr	r3, .L6+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	matrix_chain_order
	ldr	r3, .L6+16
	ldr	r3, [r3]
	ldr	r2, .L6+24
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	print_optimal_solution
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	display
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	i
	.word	p
	.word	j
	.size	main, .-main
	.align	2
	.global	matrix_chain_order
	.syntax unified
	.arm
	.fpu softvfp
	.type	matrix_chain_order, %function
matrix_chain_order:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, .L18
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L10:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, .L18
	ldr	r1, [r3]
	ldr	r0, .L18+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	mov	r2, #0
	str	r2, [r0, r3, lsl #2]
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
.L9:
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L10
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L11
.L17:
	ldr	r3, .L18
	mov	r2, #1
	str	r2, [r3]
	b	.L12
.L16:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r1, [r3]
	ldr	r0, .L18+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r2, .L18+12
	str	r2, [r0, r3, lsl #2]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L13
.L15:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r1, .L18+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r1, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, .L18+8
	ldr	r0, [r3]
	ldr	ip, .L18+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r0
	ldr	r3, [ip, r3, lsl #2]
	add	r2, r1, r3
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r1, .L18+16
	ldr	r3, [r1, r3, lsl #2]
	ldr	r0, .L18+16
	ldr	r1, [fp, #-12]
	ldr	r1, [r0, r1, lsl #2]
	mul	r3, r1, r3
	ldr	r1, .L18+8
	ldr	r1, [r1]
	ldr	r0, .L18+16
	ldr	r1, [r0, r1, lsl #2]
	mul	r3, r1, r3
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r1, [r3]
	ldr	r0, .L18+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L14
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r1, [r3]
	ldr	r0, .L18+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r2, [fp, #-8]
	str	r2, [r0, r3, lsl #2]
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r1, [r3]
	ldr	r0, .L18+20
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r2, [fp, #-12]
	str	r2, [r0, r3, lsl #2]
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
.L12:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L16
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L17
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	i
	.word	m
	.word	j
	.word	9999
	.word	p
	.word	s
	.size	matrix_chain_order, .-matrix_chain_order
	.section	.rodata
	.align	2
.LC4:
	.ascii	"A%d\000"
	.text
	.align	2
	.global	print_optimal_solution
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_optimal_solution, %function
print_optimal_solution:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L21
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L24
	bl	printf
	b	.L23
.L21:
	mov	r0, #40
	bl	putchar
	ldr	r1, .L24+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	print_optimal_solution
	ldr	r1, .L24+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	add	r3, r3, #1
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	print_optimal_solution
	mov	r0, #41
	bl	putchar
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	s
	.size	print_optimal_solution, .-print_optimal_solution
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012\000"
	.align	2
.LC6:
	.ascii	"Matrix is:\000"
	.align	2
.LC7:
	.ascii	"%d\011\000"
	.align	2
.LC8:
	.ascii	"Sequence matrix is :\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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]
	ldr	r0, .L39
	bl	puts
	ldr	r0, .L39+4
	bl	puts
	ldr	r3, .L39+8
	mov	r2, #1
	str	r2, [r3]
	b	.L27
.L32:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L28
.L29:
	mov	r0, #9
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L29
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, .L39+12
	str	r3, [r2]
	b	.L30
.L31:
	ldr	r3, .L39+8
	ldr	r2, [r3]
	ldr	r3, .L39+12
	ldr	r1, [r3]
	ldr	r0, .L39+16
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L39+20
	bl	printf
	ldr	r3, .L39+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39+12
	str	r3, [r2]
.L30:
	ldr	r3, .L39+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L31
	mov	r0, #10
	bl	putchar
	ldr	r3, .L39+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39+8
	str	r3, [r2]
.L27:
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L32
	ldr	r0, .L39
	bl	puts
	ldr	r0, .L39+24
	bl	puts
	ldr	r3, .L39+8
	mov	r2, #1
	str	r2, [r3]
	b	.L33
.L38:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L34
.L35:
	mov	r0, #9
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L34:
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L35
	ldr	r3, .L39+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39+12
	str	r3, [r2]
	b	.L36
.L37:
	ldr	r3, .L39+8
	ldr	r2, [r3]
	ldr	r3, .L39+12
	ldr	r1, [r3]
	ldr	r0, .L39+28
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L39+20
	bl	printf
	ldr	r3, .L39+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39+12
	str	r3, [r2]
.L36:
	ldr	r3, .L39+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L37
	mov	r0, #10
	bl	putchar
	ldr	r3, .L39+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39+8
	str	r3, [r2]
.L33:
	ldr	r3, .L39+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L38
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC5
	.word	.LC6
	.word	i
	.word	j
	.word	m
	.word	.LC7
	.word	.LC8
	.word	s
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
