	.file	"153269317.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter %s marks of student %d: "
.LC1:
	.string	"%d"
.LC3:
	.string	"Average of %s is: %.2f\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8386104263452156237
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -72[rbp], 7562089
	movabs	rax, 32478926881777744
	mov	QWORD PTR -68[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -100[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -96[rbp]
	lea	edx, 1[rax]
	lea	rsi, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -96[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -96[rbp], 1
.L3:
	cmp	DWORD PTR -96[rbp], 4
	jle	.L4
	add	DWORD PTR -100[rbp], 1
.L2:
	cmp	DWORD PTR -100[rbp], 1
	jle	.L5
	mov	DWORD PTR -92[rbp], 0
	jmp	.L6
.L9:
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	eax, DWORD PTR -48[rbp+rax*4]
	add	DWORD PTR -88[rbp], eax
	add	DWORD PTR -84[rbp], 1
.L7:
	cmp	DWORD PTR -84[rbp], 4
	jle	.L8
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -88[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	lea	rsi, -80[rbp]
	mov	eax, DWORD PTR -92[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	add	rax, rsi
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -92[rbp], 1
.L6:
	cmp	DWORD PTR -92[rbp], 1
	jle	.L9
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC2:
	.long	1084227584
	.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	"153269317.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter %s marks of student %d: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	"Average of %s is: %.2f\012\000"
	.align	2
.LC0:
	.ascii	"Mathematics\000"
	.ascii	"Physics\000"
	.space	4
	.align	2
.LC4:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L12+4
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L3
.L4:
	sub	r1, fp, #80
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r1, r1, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L12+8
	bl	printf
	sub	r1, fp, #56
	ldr	r2, [fp, #-100]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-96]
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L3:
	ldr	r3, [fp, #-96]
	cmp	r3, #4
	ble	.L4
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L2:
	ldr	r3, [fp, #-100]
	cmp	r3, #1
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L6
.L9:
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L7
.L8:
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-84]
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L7:
	ldr	r3, [fp, #-84]
	cmp	r3, #4
	ble	.L8
	sub	r1, fp, #80
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r4, r1, r3
	ldr	r0, [fp, #-88]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L12+16
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L12+20
	bl	printf
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L6:
	ldr	r3, [fp, #-92]
	cmp	r3, #1
	ble	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1084227584
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
