	.file	"3261990.c"
	.intel_syntax noprefix
	.text
	.globl	output
	.type	output, @function
output:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	mov	rdx, QWORD PTR stdout[rip]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L4
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	output, .-output
	.globl	rotate
	.type	rotate, @function
rotate:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	sub	rsp, 80
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L7
.L21:
	mov	rax, rsp
	mov	r9, rax
	mov	eax, 5
	sub	eax, DWORD PTR -52[rbp]
	add	eax, eax
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L8:
	cmp	rsp, rdx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L10
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -56[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	rdx, QWORD PTR -32[rbp]
	movsx	rax, esi
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -56[rbp], 1
.L11:
	mov	eax, 10
	sub	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L12
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -60[rbp], eax
	jmp	.L13
.L14:
	mov	eax, 10
	sub	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	lea	rdx, -10[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	movzx	edx, BYTE PTR [rsi+rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -60[rbp], 1
.L13:
	mov	eax, 10
	sub	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -64[rbp], eax
	jmp	.L15
.L16:
	mov	eax, 10
	sub	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	lea	rdx, -10[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	movzx	edx, BYTE PTR [rsi+rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -64[rbp], 1
.L15:
	mov	eax, 10
	sub	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -64[rbp], eax
	jl	.L16
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rdi, [rdx+rax]
	mov	eax, 9
	sub	eax, DWORD PTR -52[rbp]
	mov	r8d, eax
	mov	eax, 10
	sub	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	lea	rdx, -10[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, 9
	sub	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	movsx	rax, r8d
	movzx	edx, BYTE PTR [rdi+rax]
	movsx	rax, esi
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -68[rbp], 1
.L17:
	mov	eax, 9
	sub	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -48[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, 9
	sub	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -32[rbp]
	movsx	rax, edi
	movzx	edx, BYTE PTR [rdx+rax]
	movsx	rax, esi
	mov	BYTE PTR [rcx+rax], dl
	add	DWORD PTR -48[rbp], 1
.L19:
	mov	eax, 10
	sub	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jl	.L20
	mov	rsp, r9
	add	DWORD PTR -52[rbp], 1
.L7:
	cmp	DWORD PTR -52[rbp], 4
	jle	.L21
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rotate, .-rotate
	.section	.rodata
	.align 8
.LC0:
	.string	"Expected command format: ./rotateMatrix input_file_name\n"
.LC1:
	.string	"r"
.LC2:
	.string	"Could not open file\n"
.LC3:
	.string	"Input exceeds 10 rows\n"
.LC4:
	.string	"Input exceeds 10 columns\n"
.LC5:
	.string	"Input file is the wrong size\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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 2
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L33
.L24:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L33
.L26:
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	jmp	.L27
.L31:
	cmp	DWORD PTR -124[rbp], 10
	jne	.L28
	add	DWORD PTR -136[rbp], 1
	mov	DWORD PTR -132[rbp], 0
	jmp	.L27
.L28:
	cmp	DWORD PTR -136[rbp], 9
	jle	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L33
.L29:
	cmp	DWORD PTR -132[rbp], 9
	jle	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L33
.L30:
	mov	eax, DWORD PTR -132[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -132[rbp], edx
	mov	edx, DWORD PTR -124[rbp]
	mov	ecx, edx
	movsx	rsi, eax
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	add	rax, rbp
	add	rax, rsi
	sub	rax, 112
	mov	BYTE PTR [rax], cl
	add	DWORD PTR -128[rbp], 1
.L27:
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], -1
	jne	.L31
	cmp	DWORD PTR -128[rbp], 100
	je	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L33
.L32:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	rotate
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	output
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	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	"3261990.c"
	.text
	.align	2
	.global	output
	.syntax unified
	.arm
	.fpu softvfp
	.type	output, %function
output:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, .L6
	ldr	r1, [r3]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L4
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stdout
	.size	output, .-output
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rotate
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate, %function
rotate:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L9
.L20:
	mov	r3, sp
	mov	lr, r3
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #5
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	ip, [fp, #-20]
	sub	r3, ip, #1
	str	r3, [fp, #-16]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	b	.L10
.L11:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r1, r3, r2
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #10
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-36]
	b	.L12
.L13:
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #10
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, r3, #10
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L12:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #10
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-40]
	b	.L14
.L15:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #10
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, r3, #10
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r2, r3, r2
	ldr	r3, [fp, #-40]
	add	r3, r1, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L14:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #10
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-44]
	b	.L16
.L17:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r0, r3, r2
	ldr	r3, [fp, #-28]
	rsb	r1, r3, #9
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #10
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r3, r3, #10
	ldr	r2, [fp, #-48]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	rsb	r3, r3, #9
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L16:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #9
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	b	.L18
.L19:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	sub	r1, r2, r3
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r2, r3, r2
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #9
	ldr	r0, [fp, #-12]
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L18:
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #10
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L19
	mov	sp, lr
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L9:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	ble	.L20
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.size	rotate, .-rotate
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Expected command format: ./rotateMatrix input_file_"
	.ascii	"name\012\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"Could not open file\012\000"
	.align	2
.LC4:
	.ascii	"Input exceeds 10 rows\012\000"
	.align	2
.LC5:
	.ascii	"Input exceeds 10 columns\012\000"
	.align	2
.LC6:
	.ascii	"Input file is the wrong size\012\000"
	.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 = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	cmp	r3, #2
	beq	.L25
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L36+8
	bl	fwrite
	mov	r3, #1
	b	.L34
.L25:
	ldr	r3, [fp, #-140]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L36+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L36+16
	bl	fwrite
	mov	r3, #1
	b	.L34
.L27:
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L28
.L32:
	ldr	r3, [fp, #-112]
	cmp	r3, #10
	bne	.L29
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L28
.L29:
	ldr	r3, [fp, #-128]
	cmp	r3, #9
	ble	.L30
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L36+20
	bl	fwrite
	mov	r3, #1
	b	.L34
.L30:
	ldr	r3, [fp, #-124]
	cmp	r3, #9
	ble	.L31
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L36+24
	bl	fwrite
	mov	r3, #1
	b	.L34
.L31:
	ldr	r2, [fp, #-124]
	add	r3, r2, #1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-112]
	and	r0, r3, #255
	ldr	r1, [fp, #-128]
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	add	r3, r3, r2
	sub	r3, r3, #104
	mov	r2, r0
	strb	r2, [r3]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L28:
	ldr	r0, [fp, #-116]
	bl	fgetc
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L32
	ldr	r3, [fp, #-120]
	cmp	r3, #100
	beq	.L33
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L36+28
	bl	fwrite
	mov	r3, #1
	b	.L34
.L33:
	sub	r3, fp, #108
	mov	r0, r3
	bl	rotate
	sub	r3, fp, #108
	mov	r0, r3
	bl	output
	ldr	r0, [fp, #-116]
	bl	fclose
	mov	r3, #0
.L34:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC7
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.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
