	.file	"318942.c"
	.intel_syntax noprefix
	.text
	.globl	jobs
	.bss
	.align 32
	.type	jobs, @object
	.size	jobs, 48
jobs:
	.zero	48
	.text
	.globl	create_job
	.type	create_job, @function
create_job:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR idx.1[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR idx.1[rip], edx
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, jobs[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_job, .-create_job
	.globl	make_jobs
	.type	make_jobs, @function
make_jobs:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 2
	mov	esi, 4
	mov	edi, 1
	call	create_job
	mov	edx, 4
	mov	esi, 6
	mov	edi, 2
	call	create_job
	mov	edx, 4
	mov	esi, 7
	mov	edi, 5
	call	create_job
	mov	edx, 7
	mov	esi, 10
	mov	edi, 3
	call	create_job
	mov	edx, 2
	mov	esi, 11
	mov	edi, 8
	call	create_job
	mov	edx, 1
	mov	esi, 12
	mov	edi, 9
	call	create_job
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_jobs, .-make_jobs
	.globl	sort_jobs
	.type	sort_jobs, @function
sort_jobs:
.LFB8:
	.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 -16[rbp], 0
	jmp	.L4
.L8:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jle	.L6
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, jobs[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, jobs[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
.L6:
	sub	DWORD PTR -12[rbp], 1
.L5:
	cmp	DWORD PTR -12[rbp], 0
	jg	.L7
	add	DWORD PTR -16[rbp], 1
.L4:
	cmp	DWORD PTR -16[rbp], 5
	jle	.L8
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sort_jobs, .-sort_jobs
	.globl	compute_p
	.type	compute_p, @function
compute_p:
.LFB9:
	.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 -4[rbp], 0
	jmp	.L10
.L13:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L12:
	add	DWORD PTR -8[rbp], 1
.L11:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L12
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -8[rbp]
	sub	edx, 1
	mov	DWORD PTR 12[rax], edx
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L13
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	compute_p, .-compute_p
	.globl	max
	.type	max, @function
max:
.LFB10:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovge	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	max, .-max
	.globl	M_compute_opt
	.type	M_compute_opt, @function
M_compute_opt:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], -1
	jne	.L17
	mov	eax, 0
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, MM.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L19
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, MM.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	M_compute_opt
	mov	ebx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	r12d, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	M_compute_opt
	add	eax, r12d
	mov	esi, ebx
	mov	edi, eax
	call	max
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, MM.0[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, MM.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L18:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	M_compute_opt, .-M_compute_opt
	.globl	I_compute_opt
	.type	I_compute_opt, @function
I_compute_opt:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L24
.L29:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	js	.L25
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	jmp	.L26
.L25:
	mov	eax, 0
.L26:
	add	eax, ecx
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jle	.L27
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	jmp	.L28
.L27:
	mov	eax, 0
.L28:
	mov	DWORD PTR -44[rbp], eax
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, edx
	mov	edi, eax
	call	max
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	movsx	rcx, ecx
	mov	DWORD PTR [rdx+rcx*4], eax
	add	DWORD PTR -52[rbp], 1
.L24:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L29
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	rsp, rbx
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	I_compute_opt, .-I_compute_opt
	.globl	free_all
	.type	free_all, @function
free_all:
.LFB13:
	.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], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, jobs[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L33:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L34
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	free_all, .-free_all
	.section	.rodata
.LC0:
	.string	"M: max value is %d\n"
.LC1:
	.string	"I: max value is %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	make_jobs
	mov	eax, 0
	call	sort_jobs
	mov	eax, 0
	call	compute_p
	mov	edi, 5
	call	M_compute_opt
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 5
	call	I_compute_opt
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	free_all
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.local	idx.1
	.comm	idx.1,4,4
	.data
	.align 16
	.type	MM.0, @object
	.size	MM.0, 24
MM.0:
	.long	-1
	.long	-1
	.long	-1
	.long	-1
	.long	-1
	.long	-1
	.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	"318942.c"
	.text
	.comm	jobs,24,4
	.align	2
	.global	create_job
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_job, %function
create_job:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L2
	str	r2, [r1]
	ldr	r1, .L2+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	idx.5126
	.word	jobs
	.size	create_job, .-create_job
	.align	2
	.global	make_jobs
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_jobs, %function
make_jobs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #2
	mov	r1, #4
	mov	r0, #1
	bl	create_job
	mov	r2, #4
	mov	r1, #6
	mov	r0, #2
	bl	create_job
	mov	r2, #4
	mov	r1, #7
	mov	r0, #5
	bl	create_job
	mov	r2, #7
	mov	r1, #10
	mov	r0, #3
	bl	create_job
	mov	r2, #2
	mov	r1, #11
	mov	r0, #8
	bl	create_job
	mov	r2, #1
	mov	r1, #12
	mov	r0, #9
	bl	create_job
	nop
	pop	{fp, pc}
	.size	make_jobs, .-make_jobs
	.align	2
	.global	sort_jobs
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_jobs, %function
sort_jobs:
	@ 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, #0
	str	r3, [fp, #-16]
	b	.L6
.L10:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L7
.L9:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L11
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #4]
	ldr	r1, .L11
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L11
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, .L11
	ldr	r2, [fp, #-12]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L11
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L11
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L8:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L9
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	ble	.L10
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	jobs
	.size	sort_jobs, .-sort_jobs
	.align	2
	.global	compute_p
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_p, %function
compute_p:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L17:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r2, .L18
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #4]
	ldr	r1, .L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L16
	ldr	r2, .L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	sub	r2, r2, #1
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L17
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	jobs
	.size	compute_p, .-compute_p
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.align	2
	.global	M_compute_opt
	.syntax unified
	.arm
	.fpu softvfp
	.type	M_compute_opt, %function
M_compute_opt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L23
	mov	r3, #0
	b	.L24
.L23:
	ldr	r2, .L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmn	r3, #1
	beq	.L25
	ldr	r2, .L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	b	.L24
.L25:
	ldr	r2, .L26+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r4, [r3, #8]
	ldr	r2, .L26+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	M_compute_opt
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	M_compute_opt
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	max
	mov	r2, r0
	ldr	r1, .L26
	ldr	r3, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	MM.5158
	.word	jobs
	.size	M_compute_opt, .-M_compute_opt
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	I_compute_opt
	.syntax unified
	.arm
	.fpu softvfp
	.type	I_compute_opt, %function
I_compute_opt:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-40]
	add	ip, r3, #1
	sub	r3, ip, #1
	str	r3, [fp, #-32]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L29
.L34:
	ldr	r2, .L37+4
	ldr	r3, [fp, #-36]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r1, .L37+4
	ldr	r3, [fp, #-36]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	blt	.L30
	ldr	r1, .L37+4
	ldr	r3, [fp, #-36]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, r1, lsl #2]
	b	.L31
.L30:
	mov	r3, #0
.L31:
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-36]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, r2, lsl #2]
	b	.L33
.L32:
	mov	r3, #0
.L33:
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	max
	mov	r1, r0
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L29:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L34
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	ldr	r3, [r3, r2, lsl #2]
	mov	sp, r4
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	jobs
	.size	I_compute_opt, .-I_compute_opt
	.align	2
	.global	free_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_all, %function
free_all:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L40
.L41:
	ldr	r2, .L42
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L41
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	jobs
	.size	free_all, .-free_all
	.section	.rodata
	.align	2
.LC1:
	.ascii	"M: max value is %d\012\000"
	.align	2
.LC2:
	.ascii	"I: max value is %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	make_jobs
	bl	sort_jobs
	bl	compute_p
	mov	r0, #5
	bl	M_compute_opt
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L46
	bl	printf
	mov	r0, #5
	bl	I_compute_opt
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L46+4
	bl	printf
	bl	free_all
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.local	idx.5126
	.comm	idx.5126,4,4
	.data
	.align	2
	.type	MM.5158, %object
	.size	MM.5158, 24
MM.5158:
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
