	.file	"124890.c"
	.intel_syntax noprefix
	.text
	.globl	int_average
	.type	int_average, @function
int_average:
.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, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -216[rbp], xmm0
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	DWORD PTR -220[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L4
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L5:
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR -216[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -216[rbp], xmm0
	add	DWORD PTR -220[rbp], 1
.L3:
	mov	eax, DWORD PTR -220[rbp]
	cmp	DWORD PTR -228[rbp], eax
	ja	.L6
	mov	eax, DWORD PTR -228[rbp]
	test	rax, rax
	js	.L7
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L8
.L7:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L8:
	movsd	xmm1, QWORD PTR -216[rbp]
	divsd	xmm1, xmm0
	movq	rax, xmm1
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	int_average, .-int_average
	.globl	double_average
	.type	double_average, @function
double_average:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L12
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L12:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -224[rbp], xmm0
	mov	DWORD PTR -228[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, 175
	ja	.L14
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -204[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -204[rbp]
	add	edx, 16
	mov	DWORD PTR -204[rbp], edx
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L15:
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -216[rbp], xmm0
	movsd	xmm0, QWORD PTR -224[rbp]
	addsd	xmm0, QWORD PTR -216[rbp]
	movsd	QWORD PTR -224[rbp], xmm0
	add	DWORD PTR -228[rbp], 1
.L13:
	mov	eax, DWORD PTR -228[rbp]
	cmp	eax, DWORD PTR -244[rbp]
	jb	.L16
	cmp	DWORD PTR -244[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -244[rbp]
	test	rax, rax
	js	.L18
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L19
.L18:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L19:
	movsd	xmm1, QWORD PTR -224[rbp]
	divsd	xmm1, xmm0
	jmp	.L21
.L17:
	pxor	xmm1, xmm1
.L21:
	movq	rax, xmm1
	mov	rcx, QWORD PTR -184[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	double_average, .-double_average
	.section	.rodata
.LC1:
	.string	"Average of 2, 3, 4, 5 = %f\n"
.LC2:
	.string	"Average of 5, 10, 15 = %f\n"
.LC5:
	.string	"Average of 50.3, 49.7 = %e\n"
	.align 8
.LC11:
	.string	"Average of 12.45, 2.87, 0.256, 90.1532, 6320.12 = %e\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	r8d, 5
	mov	ecx, 4
	mov	edx, 3
	mov	esi, 2
	mov	edi, 4
	mov	eax, 0
	call	int_average
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	ecx, 15
	mov	edx, 10
	mov	esi, 5
	mov	edi, 3
	mov	eax, 0
	call	int_average
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR .LC3[rip]
	mov	rax, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	edi, 2
	mov	eax, 2
	call	double_average
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm3, QWORD PTR .LC6[rip]
	movsd	xmm2, QWORD PTR .LC7[rip]
	movsd	xmm1, QWORD PTR .LC8[rip]
	movsd	xmm0, QWORD PTR .LC9[rip]
	mov	rax, QWORD PTR .LC10[rip]
	movapd	xmm4, xmm3
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	edi, 5
	mov	eax, 5
	call	double_average
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	-1717986918
	.long	1078516121
	.align 8
.LC4:
	.long	1717986918
	.long	1078535782
	.align 8
.LC6:
	.long	-1202590843
	.long	1085845534
	.align 8
.LC7:
	.long	123695058
	.long	1079413198
	.align 8
.LC8:
	.long	-755914244
	.long	1070621261
	.align 8
.LC9:
	.long	-1889785610
	.long	1074197954
	.align 8
.LC10:
	.long	1717986918
	.long	1076422246
	.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	"124890.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	int_average
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_average, %function
int_average:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	add	r3, fp, #8
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, [fp, #-28]
	add	r2, r3, #4
	str	r2, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bhi	.L3
	ldr	r0, [fp, #4]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L6
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	int_average, .-int_average
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	double_average
	.syntax unified
	.arm
	.fpu softvfp
	.type	double_average, %function
double_average:
	@ args = 4, pretend = 16, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-36]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L10:
	ldr	r3, [fp, #-36]
	add	r3, r3, #7
	bic	r3, r3, #7
	add	r2, r3, #8
	str	r2, [fp, #-36]
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bcc	.L10
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r0, [fp, #4]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L13
.L11:
	mov	r2, #0
	mov	r3, #0
.L13:
	ldr	r1, .L15
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L16:
	.align	2
.L15:
	.word	.LC1
	.size	double_average, .-double_average
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Average of 2, 3, 4, 5 = %f\012\000"
	.align	2
.LC3:
	.ascii	"Average of 5, 10, 15 = %f\012\000"
	.align	2
.LC4:
	.ascii	"Average of 50.3, 49.7 = %e\012\000"
	.align	2
.LC5:
	.ascii	"Average of 12.45, 2.87, 0.256, 90.1532, 6320.12 = %"
	.ascii	"e\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
	sub	sp, sp, #32
	mov	r3, #5
	str	r3, [sp]
	mov	r3, #4
	mov	r2, #3
	mov	r1, #2
	mov	r0, #4
	bl	int_average
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19
	bl	printf
	mov	r3, #15
	mov	r2, #10
	mov	r1, #5
	mov	r0, #3
	bl	int_average
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19+4
	bl	printf
	ldr	r2, .L19+8
	ldr	r3, .L19+12
	stm	sp, {r2-r3}
	ldr	r2, .L19+16
	ldr	r3, .L19+20
	mov	r0, #2
	bl	double_average
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19+24
	bl	printf
	ldr	r2, .L19+28
	ldr	r3, .L19+32
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	ldr	r2, .L19+36
	ldr	r3, .L19+40
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r2, .L19+44
	ldr	r3, .L19+48
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r2, .L19+52
	ldr	r3, .L19+56
	stm	sp, {r2-r3}
	ldr	r2, .L19+16
	ldr	r3, .L19+60
	mov	r0, #5
	bl	double_average
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19+64
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	.LC3
	.word	-1717986918
	.word	1078516121
	.word	1717986918
	.word	1078535782
	.word	.LC4
	.word	-1202590843
	.word	1085845534
	.word	123695058
	.word	1079413198
	.word	-755914244
	.word	1070621261
	.word	-1889785610
	.word	1074197954
	.word	1076422246
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
