	.file	"15596.c"
	.intel_syntax noprefix
	.text
	.globl	arrayMax
	.type	arrayMax, @function
arrayMax:
.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	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -44[rbp], 0
	jg	.L2
	mov	eax, 0
	jmp	.L7
.L2:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -20[rbp], 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jle	.L5
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
.L5:
	lea	rax, -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	add	DWORD PTR -20[rbp], 1
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L6
	mov	rax, QWORD PTR -16[rbp]
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	arrayMax, .-arrayMax
	.section	.rodata
.LC0:
	.string	"arrayMax("
.LC1:
	.string	"NULL"
.LC2:
	.string	"%d"
.LC3:
	.string	", "
.LC4:
	.string	", %d) is \n"
.LC5:
	.string	"%d\n"
	.text
	.globl	doTest
	.type	doTest, @function
doTest:
.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -24[rbp], 0
	jne	.L10
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L10:
	mov	edi, 123
	call	putchar@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jge	.L13
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L14
	mov	edi, 125
	call	putchar@PLT
.L11:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	arrayMax
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L17
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	doTest, .-doTest
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 77
	mov	DWORD PTR -44[rbp], 33
	mov	DWORD PTR -40[rbp], 19
	mov	DWORD PTR -36[rbp], 99
	mov	DWORD PTR -32[rbp], 42
	mov	DWORD PTR -28[rbp], 6
	mov	DWORD PTR -24[rbp], 27
	mov	DWORD PTR -20[rbp], 4
	mov	DWORD PTR -80[rbp], -3
	mov	DWORD PTR -76[rbp], -42
	mov	DWORD PTR -72[rbp], -99
	mov	DWORD PTR -68[rbp], -1000
	mov	DWORD PTR -64[rbp], -999
	mov	DWORD PTR -60[rbp], -88
	mov	DWORD PTR -56[rbp], -77
	mov	DWORD PTR -112[rbp], 425
	mov	DWORD PTR -108[rbp], 59
	mov	DWORD PTR -104[rbp], -3
	mov	DWORD PTR -100[rbp], 77
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 36
	lea	rax, -48[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	doTest
	lea	rax, -80[rbp]
	mov	esi, 7
	mov	rdi, rax
	call	doTest
	lea	rax, -112[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	doTest
	mov	esi, 0
	mov	edi, 0
	call	doTest
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	doTest
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"15596.c"
	.text
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	arrayMax
	.syntax unified
	.arm
	.fpu softvfp
	.type	arrayMax, %function
arrayMax:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L2
	mov	r3, #0
	b	.L7
.L2:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L5:
	sub	r3, fp, #20
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-16]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.size	arrayMax, .-arrayMax
	.section	.rodata
	.align	2
.LC4:
	.ascii	"arrayMax(\000"
	.align	2
.LC5:
	.ascii	"NULL\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	", \000"
	.align	2
.LC8:
	.ascii	", %d) is \012\000"
	.align	2
.LC9:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	doTest
	.syntax unified
	.arm
	.fpu softvfp
	.type	doTest, %function
doTest:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r0, .L20
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L20+4
	bl	printf
	b	.L13
.L12:
	mov	r0, #123
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L16:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+8
	bl	printf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L15
	ldr	r0, .L20+12
	bl	printf
.L15:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L16
	mov	r0, #125
	bl	putchar
.L13:
	ldr	r1, [fp, #-20]
	ldr	r0, .L20+16
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	arrayMax
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r0, .L20+4
	bl	puts
	b	.L19
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	doTest, .-doTest
	.section	.rodata
	.align	2
.LC0:
	.word	77
	.word	33
	.word	19
	.word	99
	.word	42
	.word	6
	.word	27
	.word	4
	.align	2
.LC1:
	.word	-3
	.word	-42
	.word	-99
	.word	-1000
	.word	-999
	.word	-88
	.word	-77
	.align	2
.LC2:
	.word	425
	.word	59
	.word	-3
	.word	77
	.word	0
	.word	36
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L25+4
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L25+8
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L25+12
	sub	ip, fp, #92
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #40
	mov	r1, #8
	mov	r0, r3
	bl	doTest
	sub	r3, fp, #68
	mov	r1, #7
	mov	r0, r3
	bl	doTest
	sub	r3, fp, #92
	mov	r1, #6
	mov	r0, r3
	bl	doTest
	mov	r1, #0
	mov	r0, #0
	bl	doTest
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	doTest
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
