	.file	"974361.c"
	.intel_syntax noprefix
	.text
	.globl	compareFunc
	.type	compareFunc, @function
compareFunc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compareFunc, .-compareFunc
	.section	.rodata
.LC0:
	.string	"Is it divisible by 2?  %d\n"
.LC1:
	.string	"{Median is: %d\n"
.LC2:
	.string	"Midpoint is %d\n"
.LC3:
	.string	"Average of %d and %d is %d\n"
	.text
	.globl	arrayMedian
	.type	arrayMedian, @function
arrayMedian:
.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	eax, DWORD PTR -28[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, compareFunc[rip]
	mov	edx, 4
	mov	rdi, rax
	call	qsort@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L6
	mov	eax, DWORD PTR -28[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	sete	al
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	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, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	lea	rsi, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
.L7:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	arrayMedian, .-arrayMedian
	.section	.rodata
.LC4:
	.string	"Highest monthly median: %g\n"
	.align 8
.LC5:
	.string	"Highest monthly median comes from: %d\n"
	.text
	.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, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -188[rbp], 3
	mov	DWORD PTR -184[rbp], 12
	mov	DWORD PTR -160[rbp], 1856
	mov	DWORD PTR -156[rbp], 498
	mov	DWORD PTR -152[rbp], 30924
	mov	DWORD PTR -148[rbp], 87478
	mov	DWORD PTR -144[rbp], 328
	mov	DWORD PTR -140[rbp], 2653
	mov	DWORD PTR -136[rbp], 387
	mov	DWORD PTR -132[rbp], 3754
	mov	DWORD PTR -128[rbp], 387587
	mov	DWORD PTR -124[rbp], 2873
	mov	DWORD PTR -120[rbp], 276
	mov	DWORD PTR -116[rbp], 32
	mov	DWORD PTR -112[rbp], 5865
	mov	DWORD PTR -108[rbp], 5456
	mov	DWORD PTR -104[rbp], 3983
	mov	DWORD PTR -100[rbp], 6464
	mov	DWORD PTR -96[rbp], 9957
	mov	DWORD PTR -92[rbp], 4785
	mov	DWORD PTR -88[rbp], 3875
	mov	DWORD PTR -84[rbp], 3838
	mov	DWORD PTR -80[rbp], 4959
	mov	DWORD PTR -76[rbp], 1122
	mov	DWORD PTR -72[rbp], 7766
	mov	DWORD PTR -68[rbp], 2534
	mov	DWORD PTR -64[rbp], 23
	mov	DWORD PTR -60[rbp], 55
	mov	DWORD PTR -56[rbp], 67
	mov	DWORD PTR -52[rbp], 99
	mov	DWORD PTR -48[rbp], 265
	mov	DWORD PTR -44[rbp], 376
	mov	DWORD PTR -40[rbp], 232
	mov	DWORD PTR -36[rbp], 223
	mov	DWORD PTR -32[rbp], 4546
	mov	DWORD PTR -28[rbp], 564
	mov	DWORD PTR -24[rbp], 4544
	mov	DWORD PTR -20[rbp], 3434
	mov	DWORD PTR -180[rbp], 3
	lea	rax, -160[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	arrayMedian
	movq	rax, xmm0
	mov	QWORD PTR -176[rbp], rax
	mov	DWORD PTR -196[rbp], 0
	mov	DWORD PTR -192[rbp], 1
	jmp	.L9
.L13:
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -192[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	esi, 12
	mov	rdi, rax
	call	arrayMedian
	movq	rax, xmm0
	mov	QWORD PTR -168[rbp], rax
	movsd	xmm0, QWORD PTR -168[rbp]
	comisd	xmm0, QWORD PTR -176[rbp]
	jbe	.L17
	movsd	xmm0, QWORD PTR -168[rbp]
	movsd	QWORD PTR -176[rbp], xmm0
	mov	eax, DWORD PTR -192[rbp]
	mov	DWORD PTR -196[rbp], eax
	jmp	.L12
.L17:
	mov	rax, QWORD PTR -176[rbp]
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	add	DWORD PTR -192[rbp], 1
.L9:
	cmp	DWORD PTR -192[rbp], 2
	jle	.L13
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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	"974361.c"
	.text
	.align	2
	.global	compareFunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	compareFunc, %function
compareFunc:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L4
	mov	r3, #1
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compareFunc, .-compareFunc
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Is it divisible by 2?  %d\012\000"
	.align	2
.LC2:
	.ascii	"{Median is: %d\012\000"
	.global	__aeabi_i2d
	.align	2
.LC3:
	.ascii	"Midpoint is %d\012\000"
	.align	2
.LC4:
	.ascii	"Average of %d and %d is %d\012\000"
	.text
	.align	2
	.global	arrayMedian
	.syntax unified
	.arm
	.fpu softvfp
	.type	arrayMedian, %function
arrayMedian:
	@ 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	r1, [fp, #-20]
	ldr	r3, .L8
	mov	r2, #4
	ldr	r0, [fp, #-16]
	bl	qsort
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L6
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	b	.L7
.L6:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+12
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
.L7:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	compareFunc
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	arrayMedian, .-arrayMedian
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Highest monthly median: %g\012\000"
	.align	2
.LC6:
	.ascii	"Highest monthly median comes from: %d\012\000"
	.align	2
.LC0:
	.word	1856
	.word	498
	.word	30924
	.word	87478
	.word	328
	.word	2653
	.word	387
	.word	3754
	.word	387587
	.word	2873
	.word	276
	.word	32
	.word	5865
	.word	5456
	.word	3983
	.word	6464
	.word	9957
	.word	4785
	.word	3875
	.word	3838
	.word	4959
	.word	1122
	.word	7766
	.word	2534
	.word	23
	.word	55
	.word	67
	.word	99
	.word	265
	.word	376
	.word	232
	.word	223
	.word	4546
	.word	564
	.word	4544
	.word	3434
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #3
	str	r3, [fp, #-184]
	mov	r3, #12
	str	r3, [fp, #-180]
	ldr	r2, .L20+4
	sub	r3, fp, #152
	mov	r1, r2
	mov	r2, #144
	mov	r0, r3
	bl	memcpy
	mov	r3, #3
	str	r3, [fp, #-176]
	sub	r3, fp, #152
	mov	r1, #12
	mov	r0, r3
	bl	arrayMedian
	str	r0, [fp, #-172]
	str	r1, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r3, #1
	str	r3, [fp, #-188]
	b	.L11
.L15:
	sub	r1, fp, #152
	ldr	r2, [fp, #-188]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r1, #12
	mov	r0, r3
	bl	arrayMedian
	str	r0, [fp, #-164]
	str	r1, [fp, #-160]
	sub	r3, fp, #172
	ldmia	r3, {r2-r3}
	sub	r1, fp, #164
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #164
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-172]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-188]
	str	r3, [fp, #-192]
	b	.L14
.L19:
	sub	r3, fp, #172
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+8
	bl	printf
	ldr	r1, [fp, #-192]
	ldr	r0, .L20+12
	bl	printf
.L14:
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L11:
	ldr	r3, [fp, #-188]
	cmp	r3, #2
	ble	.L15
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC0
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
