	.file	"117327058.c"
	.intel_syntax noprefix
	.text
	.globl	totalPos
	.bss
	.align 4
	.type	totalPos, @object
	.size	totalPos, 4
totalPos:
	.zero	4
	.globl	totalNeg
	.align 4
	.type	totalNeg, @object
	.size	totalNeg, 4
totalNeg:
	.zero	4
	.globl	countPos
	.align 4
	.type	countPos, @object
	.size	countPos, 4
countPos:
	.zero	4
	.globl	countNeg
	.align 4
	.type	countNeg, @object
	.size	countNeg, 4
countNeg:
	.zero	4
	.text
	.globl	power
	.type	power, @function
power:
.LFB6:
	.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 -24[rbp], esi
	mov	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	sub	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L3
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	power, .-power
	.globl	CubeStats
	.type	CubeStats, @function
CubeStats:
.LFB7:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	QWORD PTR -64[rbp], r8
	mov	QWORD PTR -72[rbp], r9
	cmp	DWORD PTR -48[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR totalPos[rip]
	add	eax, edx
	mov	DWORD PTR totalPos[rip], eax
	mov	eax, DWORD PTR countPos[rip]
	add	eax, 1
	mov	DWORD PTR countPos[rip], eax
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR totalNeg[rip]
	add	eax, edx
	mov	DWORD PTR totalNeg[rip], eax
	mov	eax, DWORD PTR countNeg[rip]
	add	eax, 1
	mov	DWORD PTR countNeg[rip], eax
.L8:
	mov	eax, DWORD PTR countPos[rip]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR totalPos[rip]
	mov	ebx, DWORD PTR countPos[rip]
	cdq
	idiv	ebx
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], 0
.L10:
	mov	eax, DWORD PTR countNeg[rip]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR totalNeg[rip]
	mov	ecx, DWORD PTR countNeg[rip]
	cdq
	idiv	ecx
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L5
.L11:
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L5
.L6:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -48[rbp]
	lea	ebx, -1[rax]
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	imul	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdi, [rdx+rax]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	ecx, edx
	mov	edx, ebx
	mov	esi, eax
	call	CubeStats
	add	DWORD PTR -20[rbp], 1
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L15
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CubeStats, .-CubeStats
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Positive Average = %d; Negative Average = %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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -68[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	QWORD PTR -40[rbp], 4
.L17:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L18
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L19
.L21:
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jns	.L20
	mov	edi, 0
	call	exit@PLT
.L20:
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, edx
	mov	edi, eax
	call	power
	mov	edx, DWORD PTR -64[rbp]
	imul	eax, edx
	cdqe
	sal	rax, 2
	add	QWORD PTR -32[rbp], rax
	add	DWORD PTR -48[rbp], 1
.L19:
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L21
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR countNeg[rip], 0
	mov	eax, DWORD PTR countNeg[rip]
	mov	DWORD PTR countPos[rip], eax
	mov	eax, DWORD PTR countPos[rip]
	mov	DWORD PTR totalNeg[rip], eax
	mov	eax, DWORD PTR totalNeg[rip]
	mov	DWORD PTR totalPos[rip], eax
	mov	ecx, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR -60[rbp]
	lea	r8, -52[rbp]
	lea	rdi, -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	CubeStats
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
	.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	"117327058.c"
	.text
	.comm	totalPos,4,4
	.comm	totalNeg,4,4
	.comm	countPos,4,4
	.comm	countNeg,4,4
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power, .-power
	.global	__aeabi_idiv
	.align	2
	.global	CubeStats
	.syntax unified
	.arm
	.fpu softvfp
	.type	CubeStats, %function
CubeStats:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L16
	str	r3, [r2]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+4
	str	r3, [r2]
	b	.L8
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L8
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, .L16+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L16+8
	str	r3, [r2]
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+12
	str	r3, [r2]
.L8:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #8]
	str	r2, [r3]
	b	.L10
.L9:
	ldr	r3, [fp, #8]
	mov	r2, #0
	str	r2, [r3]
.L10:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldr	r2, .L16+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r2, [r3]
	b	.L5
.L11:
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L6:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L15:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	power
	mov	r2, r0
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	bl	CubeStats
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L14:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L15
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	totalPos
	.word	countPos
	.word	totalNeg
	.word	countNeg
	.size	CubeStats, .-CubeStats
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Positive Average = %d; Negative Average = %d\012\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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #52
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L26+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-56]
	mov	r1, r2
	mov	r0, r3
	bl	power
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	b	.L19
.L20:
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
.L19:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L20
.L24:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L21
.L23:
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L22
	mov	r0, #0
	bl	exit
.L22:
	ldr	r0, [fp, #-52]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r1, r3
	bl	power
	mov	r2, r0
	ldr	r3, [fp, #-48]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L21:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L23
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	ldr	r3, .L26+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L26+12
	ldr	r3, [r3]
	ldr	r2, .L26+16
	str	r3, [r2]
	ldr	r3, .L26+16
	ldr	r3, [r3]
	ldr	r2, .L26+20
	str	r3, [r2]
	ldr	r3, .L26+20
	ldr	r3, [r3]
	ldr	r2, .L26+24
	str	r3, [r2]
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-56]
	ldr	r0, [fp, #-52]
	sub	r3, fp, #36
	str	r3, [sp, #4]
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-24]
	bl	CubeStats
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L26+28
	bl	printf
	b	.L24
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	countNeg
	.word	countPos
	.word	totalNeg
	.word	totalPos
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
