	.file	"37638212.c"
	.intel_syntax noprefix
	.text
	.globl	fill_image
	.type	fill_image, @function
fill_image:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -24[rbp], r8d
	mov	DWORD PTR -28[rbp], r9d
	cmp	DWORD PTR -12[rbp], 24
	jg	.L15
	cmp	DWORD PTR -16[rbp], 24
	jg	.L15
	cmp	DWORD PTR -12[rbp], 0
	js	.L15
	cmp	DWORD PTR -16[rbp], 0
	js	.L15
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L16
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	DWORD PTR -20[rbp], eax
	je	.L16
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	cmp	DWORD PTR -28[rbp], 3
	je	.L7
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 7
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	fill_image
.L7:
	cmp	DWORD PTR -28[rbp], 4
	je	.L8
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 0
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	fill_image
.L8:
	cmp	DWORD PTR -28[rbp], 5
	je	.L9
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 1
	mov	r8d, edi
	mov	rdi, rax
	call	fill_image
.L9:
	cmp	DWORD PTR -28[rbp], 6
	je	.L10
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, -1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 2
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	fill_image
.L10:
	cmp	DWORD PTR -28[rbp], 7
	je	.L11
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 3
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	fill_image
.L11:
	cmp	DWORD PTR -28[rbp], 0
	je	.L12
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 4
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	fill_image
.L12:
	cmp	DWORD PTR -28[rbp], 1
	je	.L13
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 5
	mov	r8d, edi
	mov	rdi, rax
	call	fill_image
.L13:
	cmp	DWORD PTR -28[rbp], 2
	je	.L17
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 6
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	fill_image
	jmp	.L17
.L15:
	nop
	jmp	.L1
.L16:
	nop
	jmp	.L1
.L17:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fill_image, .-fill_image
	.globl	decide_color
	.type	decide_color, @function
decide_color:
.LFB1:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L19
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	jle	.L22
	mov	eax, 2
	jmp	.L21
.L22:
	mov	eax, 1
	jmp	.L21
.L19:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L24
	mov	eax, 0
	jmp	.L21
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	jle	.L25
	mov	eax, 6
	jmp	.L21
.L25:
	mov	eax, 7
	jmp	.L21
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	jle	.L26
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L27
	mov	eax, 6
	jmp	.L21
.L27:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	jle	.L28
	mov	eax, 4
	jmp	.L21
.L28:
	mov	eax, 5
	jmp	.L21
.L26:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	jle	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L30
	mov	eax, 2
	jmp	.L21
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 24
	jle	.L31
	mov	eax, 4
	jmp	.L21
.L31:
	mov	eax, 3
	jmp	.L21
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
.L21:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	decide_color, .-decide_color
	.globl	copy_area
	.type	copy_area, @function
copy_area:
.LFB2:
	.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	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -48[rbp], r9d
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L33
.L36:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L34:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L35
	add	DWORD PTR -12[rbp], 1
.L33:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L36
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	copy_area, .-copy_area
	.globl	paste_area
	.type	paste_area, @function
paste_area:
.LFB3:
	.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	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -48[rbp], r9d
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L39
.L43:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L40
.L42:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L41
	add	DWORD PTR -4[rbp], 1
.L41:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR [rsi]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	DWORD PTR [rcx+rax*4], edx
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L40:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L42
	add	DWORD PTR -16[rbp], 1
.L39:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L43
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	paste_area, .-paste_area
	.globl	copy_area_for_rotate
	.type	copy_area_for_rotate, @function
copy_area_for_rotate:
.LFB4:
	.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	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -44[rbp], r8d
	mov	DWORD PTR -48[rbp], r9d
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L46
.L49:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	DWORD PTR [rcx+rax*4], edx
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L47:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L48
	mov	DWORD PTR -4[rbp], 0
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L46:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L49
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	copy_area_for_rotate, .-copy_area_for_rotate
	.globl	paste_area_for_rotate
	.type	paste_area_for_rotate, @function
paste_area_for_rotate:
.LFB5:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	DWORD PTR -60[rbp], r8d
	mov	DWORD PTR -64[rbp], r9d
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L52
.L56:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L53
.L55:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	ecx, eax
	je	.L54
	add	DWORD PTR -4[rbp], 1
.L54:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	DWORD PTR [rcx+rax*4], edx
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L53:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jle	.L55
	mov	DWORD PTR -8[rbp], 0
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L52:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jle	.L56
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	paste_area_for_rotate, .-paste_area_for_rotate
	.globl	rotate_area
	.type	rotate_area, @function
rotate_area:
.LFB6:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	eax, ecx
	mov	DWORD PTR -80[rbp], r8d
	mov	DWORD PTR -84[rbp], r9d
	mov	BYTE PTR -76[rbp], al
	cmp	BYTE PTR -76[rbp], 76
	jne	.L59
	cmp	DWORD PTR -80[rbp], 0
	je	.L59
	mov	eax, 360
	sub	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -80[rbp], eax
.L59:
	cmp	DWORD PTR -80[rbp], 270
	je	.L60
	cmp	DWORD PTR -80[rbp], 270
	jg	.L61
	cmp	DWORD PTR -80[rbp], 90
	je	.L62
	cmp	DWORD PTR -80[rbp], 180
	je	.L63
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L64
.L63:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L64
.L60:
	mov	DWORD PTR -36[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L64
.L61:
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	nop
.L64:
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -40[rbp], eax
	jmp	.L65
.L67:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	my_cos
	imul	eax, DWORD PTR -44[rbp]
	mov	ebx, eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	my_sin
	imul	eax, DWORD PTR -40[rbp]
	sub	ebx, eax
	mov	edx, ebx
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	my_sin
	imul	eax, DWORD PTR -44[rbp]
	mov	ebx, eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	my_cos
	imul	eax, DWORD PTR -40[rbp]
	lea	edx, [rbx+rax]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	add	DWORD PTR -44[rbp], 1
.L66:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L67
	mov	DWORD PTR -44[rbp], 0
	add	DWORD PTR -40[rbp], 1
.L65:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L66
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rotate_area, .-rotate_area
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	print_array
	.type	print_array, @function
print_array:
.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 -8[rbp], 0
	jmp	.L71
.L74:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L72
.L73:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L72:
	cmp	DWORD PTR -4[rbp], 24
	jle	.L73
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L71:
	cmp	DWORD PTR -8[rbp], 24
	jle	.L74
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_array, .-print_array
	.section	.rodata
.LC1:
	.string	" %d"
	.text
	.globl	read_array
	.type	read_array, @function
read_array:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L77
.L80:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L78
.L79:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	DWORD PTR [rcx+rax*4], edx
	add	DWORD PTR -12[rbp], 1
.L78:
	cmp	DWORD PTR -12[rbp], 24
	jle	.L79
	add	DWORD PTR -16[rbp], 1
.L77:
	cmp	DWORD PTR -16[rbp], 24
	jle	.L80
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_array, .-read_array
	.globl	my_cos
	.type	my_cos, @function
my_cos:
.LFB9:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 270
	je	.L84
	cmp	DWORD PTR -4[rbp], 270
	jg	.L85
	cmp	DWORD PTR -4[rbp], 180
	je	.L86
	cmp	DWORD PTR -4[rbp], 180
	jg	.L85
	cmp	DWORD PTR -4[rbp], 0
	je	.L87
	cmp	DWORD PTR -4[rbp], 90
	je	.L88
	jmp	.L85
.L87:
	mov	eax, 1
	jmp	.L89
.L88:
	mov	eax, 0
	jmp	.L89
.L86:
	mov	eax, -1
	jmp	.L89
.L84:
	mov	eax, 0
	jmp	.L89
.L85:
	mov	eax, 0
.L89:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	my_cos, .-my_cos
	.globl	my_sin
	.type	my_sin, @function
my_sin:
.LFB10:
	.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 -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 270
	je	.L91
	cmp	DWORD PTR -4[rbp], 270
	jg	.L92
	cmp	DWORD PTR -4[rbp], 180
	je	.L93
	cmp	DWORD PTR -4[rbp], 180
	jg	.L92
	cmp	DWORD PTR -4[rbp], 0
	je	.L94
	cmp	DWORD PTR -4[rbp], 90
	je	.L95
	jmp	.L92
.L94:
	mov	eax, 0
	jmp	.L96
.L95:
	mov	eax, 1
	jmp	.L96
.L93:
	mov	eax, 0
	jmp	.L96
.L91:
	mov	eax, -1
	jmp	.L96
.L92:
	mov	eax, 0
.L96:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	my_sin, .-my_sin
	.section	.rodata
.LC2:
	.string	" %c"
.LC3:
	.string	" %d %d"
.LC4:
	.string	" %d %d %d %d"
.LC5:
	.string	"%d\n"
.LC6:
	.string	" %c %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3536
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -7536[rbp]
	mov	rdi, rax
	call	read_array
	lea	rax, -7618[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -7618[rbp]
	movsx	eax, al
	cmp	eax, 82
	je	.L98
	cmp	eax, 82
	jg	.L105
	cmp	eax, 70
	je	.L100
	cmp	eax, 80
	je	.L101
	jmp	.L105
.L100:
	lea	rax, -5024[rbp]
	lea	rdx, 4[rax]
	lea	rax, -5024[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -2512[rbp]
	lea	rdx, 4[rax]
	lea	rax, -2512[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -7536[rbp]
	lea	rax, -5024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	decide_color
	mov	DWORD PTR -7540[rbp], eax
	mov	eax, DWORD PTR -2512[rbp]
	mov	edx, DWORD PTR -2508[rbp]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	mov	edi, DWORD PTR -7536[rbp+rax*4]
	mov	edx, DWORD PTR -2508[rbp]
	mov	esi, DWORD PTR -2512[rbp]
	mov	ecx, DWORD PTR -7540[rbp]
	lea	rax, -7536[rbp]
	mov	r9d, 8
	mov	r8d, edi
	mov	rdi, rax
	call	fill_image
	lea	rax, -7536[rbp]
	mov	rdi, rax
	call	print_array
	jmp	.L102
.L101:
	lea	rsi, -7604[rbp]
	lea	rcx, -7600[rbp]
	lea	rdx, -7612[rbp]
	lea	rax, -7608[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -7588[rbp]
	lea	rcx, -7584[rbp]
	lea	rdx, -7596[rbp]
	lea	rax, -7592[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -7604[rbp]
	mov	eax, DWORD PTR -7612[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR -7576[rbp], eax
	mov	edx, DWORD PTR -7612[rbp]
	mov	eax, DWORD PTR -7604[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR -7572[rbp], eax
	mov	edx, DWORD PTR -7600[rbp]
	mov	eax, DWORD PTR -7608[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR -7568[rbp], eax
	mov	edx, DWORD PTR -7608[rbp]
	mov	eax, DWORD PTR -7600[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR -7564[rbp], eax
	mov	edx, DWORD PTR -7588[rbp]
	mov	eax, DWORD PTR -7596[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR -7560[rbp], eax
	mov	edx, DWORD PTR -7596[rbp]
	mov	eax, DWORD PTR -7588[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR -7556[rbp], eax
	mov	edx, DWORD PTR -7584[rbp]
	mov	eax, DWORD PTR -7592[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	mov	DWORD PTR -7552[rbp], eax
	mov	edx, DWORD PTR -7592[rbp]
	mov	eax, DWORD PTR -7584[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	mov	DWORD PTR -7548[rbp], eax
	mov	r8d, DWORD PTR -7564[rbp]
	mov	edi, DWORD PTR -7572[rbp]
	mov	ecx, DWORD PTR -7568[rbp]
	mov	edx, DWORD PTR -7576[rbp]
	lea	rsi, -2512[rbp]
	lea	rax, -7536[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	copy_area
	mov	r8d, DWORD PTR -7548[rbp]
	mov	edi, DWORD PTR -7556[rbp]
	mov	ecx, DWORD PTR -7552[rbp]
	mov	edx, DWORD PTR -7560[rbp]
	lea	rsi, -2512[rbp]
	lea	rax, -7536[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	paste_area
	mov	DWORD PTR -7544[rbp], eax
	lea	rax, -7536[rbp]
	mov	rdi, rax
	call	print_array
	mov	eax, DWORD PTR -7544[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L102
.L98:
	lea	rdx, -5024[rbp]
	mov	eax, 0
	mov	ecx, 312
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	lea	rdx, -2512[rbp]
	mov	eax, 0
	mov	ecx, 312
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	lea	rdx, -7584[rbp]
	lea	rax, -7617[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -7608[rbp]
	lea	rcx, -7604[rbp]
	lea	rdx, -7616[rbp]
	lea	rax, -7612[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -7592[rbp]
	lea	rcx, -7588[rbp]
	lea	rdx, -7600[rbp]
	lea	rax, -7596[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	r8d, DWORD PTR -7604[rbp]
	mov	edi, DWORD PTR -7608[rbp]
	mov	ecx, DWORD PTR -7612[rbp]
	mov	edx, DWORD PTR -7616[rbp]
	lea	rsi, -5024[rbp]
	lea	rax, -7536[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	copy_area_for_rotate
	mov	eax, DWORD PTR -7604[rbp]
	mov	edx, DWORD PTR -7612[rbp]
	sub	eax, edx
	lea	r8d, 1[rax]
	mov	edi, DWORD PTR -7584[rbp]
	movzx	eax, BYTE PTR -7617[rbp]
	movsx	ecx, al
	lea	rdx, -2512[rbp]
	lea	rsi, -5024[rbp]
	lea	rax, -7536[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	rotate_area
	mov	r8d, DWORD PTR -7588[rbp]
	mov	edi, DWORD PTR -7592[rbp]
	mov	ecx, DWORD PTR -7596[rbp]
	mov	edx, DWORD PTR -7600[rbp]
	lea	rsi, -2512[rbp]
	lea	rax, -7536[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	paste_area_for_rotate
	mov	DWORD PTR -7580[rbp], eax
	lea	rax, -7536[rbp]
	mov	rdi, rax
	call	print_array
	mov	eax, DWORD PTR -7580[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L102
.L105:
	nop
.L102:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L104
	call	__stack_chk_fail@PLT
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"37638212.c"
	.text
	.align	2
	.global	fill_image
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_image, %function
fill_image:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	bgt	.L15
	ldr	r3, [fp, #-16]
	cmp	r3, #24
	bgt	.L15
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L15
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L15
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bne	.L16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L16
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #8]
	cmp	r3, #3
	beq	.L7
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	mov	r3, #7
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L7:
	ldr	r3, [fp, #8]
	cmp	r3, #4
	beq	.L8
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L8:
	ldr	r3, [fp, #8]
	cmp	r3, #5
	beq	.L9
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	mov	r3, #1
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L9:
	ldr	r3, [fp, #8]
	cmp	r3, #6
	beq	.L10
	ldr	r3, [fp, #-12]
	sub	r1, r3, #1
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	mov	r3, #2
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L10:
	ldr	r3, [fp, #8]
	cmp	r3, #7
	beq	.L11
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	mov	r3, #3
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L11:
	ldr	r3, [fp, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	mov	r3, #4
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L12:
	ldr	r3, [fp, #8]
	cmp	r3, #1
	beq	.L13
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	mov	r3, #5
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	fill_image
.L13:
	ldr	r3, [fp, #8]
	cmp	r3, #2
	beq	.L17
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	mov	r3, #6
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	fill_image
	b	.L17
.L15:
	nop
	b	.L1
.L16:
	nop
	b	.L1
.L17:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fill_image, .-fill_image
	.align	2
	.global	decide_color
	.syntax unified
	.arm
	.fpu softvfp
	.type	decide_color, %function
decide_color:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L19
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L20
	mov	r3, #0
	b	.L21
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L22
	mov	r3, #2
	b	.L21
.L22:
	mov	r3, #1
	b	.L21
.L19:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L24
	mov	r3, #0
	b	.L21
.L24:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L25
	mov	r3, #6
	b	.L21
.L25:
	mov	r3, #7
	b	.L21
.L23:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L26
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L27
	mov	r3, #6
	b	.L21
.L27:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L28
	mov	r3, #4
	b	.L21
.L28:
	mov	r3, #5
	b	.L21
.L26:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L30
	mov	r3, #2
	b	.L21
.L30:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #24
	ble	.L31
	mov	r3, #4
	b	.L21
.L31:
	mov	r3, #3
	b	.L21
.L29:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r2, r2, #4
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
.L21:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	decide_color, .-decide_color
	.align	2
	.global	copy_area
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_area, %function
copy_area:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	b	.L33
.L36:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	b	.L34
.L35:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r1, [fp, #-12]
	ldr	r2, [r2, r1, lsl #2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L34:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L35
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L33:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L36
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	copy_area, .-copy_area
	.align	2
	.global	paste_area
	.syntax unified
	.arm
	.fpu softvfp
	.type	paste_area, %function
paste_area:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	b	.L39
.L43:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L40
.L42:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L41
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r1, r2, r3
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r1, [r1]
	ldr	r2, [fp, #-16]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L42
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L39:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L43
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	paste_area, .-paste_area
	.align	2
	.global	copy_area_for_rotate
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_area_for_rotate, %function
copy_area_for_rotate:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	b	.L46
.L49:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L47
.L48:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r1, r3, r2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [r1, r2, lsl #2]
	ldr	r2, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L47:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L48
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L46:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L49
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	copy_area_for_rotate, .-copy_area_for_rotate
	.align	2
	.global	paste_area_for_rotate
	.syntax unified
	.arm
	.fpu softvfp
	.type	paste_area_for_rotate, %function
paste_area_for_rotate:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	b	.L52
.L56:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	b	.L53
.L55:
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r1, r3
	beq	.L54
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L54:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r1, r3, r2
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	ldr	r1, [r1, r2, lsl #2]
	ldr	r2, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L53:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L55
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L52:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L56
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	paste_area_for_rotate, .-paste_area_for_rotate
	.align	2
	.global	rotate_area
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate_area, %function
rotate_area:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	strb	r3, [fp, #-57]
	ldrb	r3, [fp, #-57]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L59
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L59
	ldr	r3, [fp, #4]
	rsb	r3, r3, #360
	str	r3, [fp, #4]
.L59:
	ldr	r3, [fp, #4]
	ldr	r2, .L70
	cmp	r3, r2
	beq	.L60
	ldr	r3, [fp, #4]
	ldr	r2, .L70
	cmp	r3, r2
	bgt	.L61
	ldr	r3, [fp, #4]
	cmp	r3, #90
	beq	.L62
	ldr	r3, [fp, #4]
	cmp	r3, #180
	beq	.L63
	b	.L61
.L62:
	ldr	r3, [fp, #8]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L64
.L63:
	ldr	r3, [fp, #8]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #8]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L64
.L60:
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #8]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L64
.L61:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	nop
.L64:
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-36]
	b	.L65
.L67:
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-24]
	ldr	r0, [fp, #4]
	bl	my_cos
	mov	r2, r0
	ldr	r3, [fp, #-40]
	mul	r4, r3, r2
	ldr	r0, [fp, #4]
	bl	my_sin
	mov	r2, r0
	ldr	r3, [fp, #-36]
	mul	r3, r2, r3
	sub	r3, r4, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r0, [fp, #4]
	bl	my_sin
	mov	r2, r0
	ldr	r3, [fp, #-40]
	mul	r4, r3, r2
	ldr	r0, [fp, #4]
	bl	my_cos
	mov	r2, r0
	ldr	r3, [fp, #-36]
	mul	r3, r2, r3
	add	r3, r4, r3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L66:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L67
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L65:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L66
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	270
	.size	rotate_area, .-rotate_area
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.text
	.align	2
	.global	print_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_array, %function
print_array:
	@ 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	.L73
.L76:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L74
.L75:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L78
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L74:
	ldr	r3, [fp, #-8]
	cmp	r3, #24
	ble	.L75
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L73:
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	ble	.L76
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC0
	.size	print_array, .-print_array
	.section	.rodata
	.align	2
.LC1:
	.ascii	" %d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_array, %function
read_array:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L81
.L84:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L82
.L83:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L87+4
	bl	__isoc99_scanf
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L82:
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	ble	.L83
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L81:
	ldr	r3, [fp, #-16]
	cmp	r3, #24
	ble	.L84
	nop
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC2
	.word	.LC1
	.size	read_array, .-read_array
	.align	2
	.global	my_cos
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_cos, %function
my_cos:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L96
	cmp	r3, r2
	beq	.L90
	ldr	r3, [fp, #-8]
	ldr	r2, .L96
	cmp	r3, r2
	bgt	.L91
	ldr	r3, [fp, #-8]
	cmp	r3, #180
	beq	.L92
	ldr	r3, [fp, #-8]
	cmp	r3, #180
	bgt	.L91
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	beq	.L94
	b	.L91
.L93:
	mov	r3, #1
	b	.L95
.L94:
	mov	r3, #0
	b	.L95
.L92:
	mvn	r3, #0
	b	.L95
.L90:
	mov	r3, #0
	b	.L95
.L91:
	mov	r3, #0
.L95:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L97:
	.align	2
.L96:
	.word	270
	.size	my_cos, .-my_cos
	.align	2
	.global	my_sin
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_sin, %function
my_sin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L105
	cmp	r3, r2
	beq	.L99
	ldr	r3, [fp, #-8]
	ldr	r2, .L105
	cmp	r3, r2
	bgt	.L100
	ldr	r3, [fp, #-8]
	cmp	r3, #180
	beq	.L101
	ldr	r3, [fp, #-8]
	cmp	r3, #180
	bgt	.L100
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #-8]
	cmp	r3, #90
	beq	.L103
	b	.L100
.L102:
	mov	r3, #0
	b	.L104
.L103:
	mov	r3, #1
	b	.L104
.L101:
	mov	r3, #0
	b	.L104
.L99:
	mvn	r3, #0
	b	.L104
.L100:
	mov	r3, #0
.L104:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L106:
	.align	2
.L105:
	.word	270
	.size	my_sin, .-my_sin
	.section	.rodata
	.align	2
.LC3:
	.ascii	" %c\000"
	.align	2
.LC4:
	.ascii	" %d %d\000"
	.align	2
.LC5:
	.ascii	" %d %d %d %d\000"
	.align	2
.LC6:
	.ascii	"%d\012\000"
	.align	2
.LC7:
	.ascii	" %c %d\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 7592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #7552
	sub	sp, sp, #52
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #7488
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r0, r3
	bl	read_array
	sub	r3, fp, #7552
	sub	r3, r3, #12
	sub	r3, r3, #34
	mov	r1, r3
	ldr	r0, .L116+4
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-3490]	@ zero_extendqisi2
	cmp	r3, #82
	beq	.L108
	cmp	r3, #82
	bgt	.L115
	cmp	r3, #70
	beq	.L110
	cmp	r3, #80
	beq	.L111
	b	.L115
.L110:
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r2, r3, #4
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L116+8
	bl	__isoc99_scanf
	sub	r3, fp, #2496
	sub	r3, r3, #12
	sub	r3, r3, #8
	add	r2, r3, #4
	sub	r3, fp, #2496
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L116+8
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #7488
	sub	r2, r2, #12
	sub	r2, r2, #16
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	decide_color
	str	r0, [r4, #-3412]
	ldr	ip, [fp, #-2516]
	ldr	lr, [fp, #-2512]
	ldr	r2, [fp, #-2516]
	ldr	r1, [fp, #-2512]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #-3408]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r0, fp, #7488
	sub	r0, r0, #12
	sub	r0, r0, #16
	mov	r2, #8
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r1, #-3412]
	mov	r2, lr
	mov	r1, ip
	bl	fill_image
	sub	r3, fp, #7488
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r0, r3
	bl	print_array
	b	.L112
.L111:
	sub	r0, fp, #7552
	sub	r0, r0, #12
	sub	r0, r0, #16
	sub	r2, fp, #7552
	sub	r2, r2, #12
	sub	r2, r2, #28
	sub	r1, fp, #7552
	sub	r1, r1, #12
	sub	r1, r1, #24
	sub	r3, fp, #7552
	sub	r3, r3, #12
	sub	r3, r3, #20
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L116+12
	bl	__isoc99_scanf
	sub	r0, fp, #7552
	sub	r0, r0, #12
	sub	r2, fp, #7552
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r1, fp, #7552
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #7552
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L116+12
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3476]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3484]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [r1, #-3448]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3484]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3476]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1, #-3444]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3472]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3480]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [r1, #-3440]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3480]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3472]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1, #-3436]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3460]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3468]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [r1, #-3432]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3468]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3460]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1, #-3428]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3456]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3464]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [r1, #-3424]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3464]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3456]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [r1, #-3420]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r1, fp, #2496
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r0, fp, #7488
	sub	r0, r0, #12
	sub	r0, r0, #16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3436]
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3444]
	str	r3, [sp]
	ldr	r3, [ip, #-3440]
	ldr	r2, [r2, #-3448]
	bl	copy_area
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r1, fp, #2496
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r0, fp, #7488
	sub	r0, r0, #12
	sub	r0, r0, #16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3420]
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3428]
	str	r3, [sp]
	ldr	r3, [ip, #-3424]
	ldr	r2, [r2, #-3432]
	bl	paste_area
	str	r0, [r4, #-3416]
	sub	r3, fp, #7488
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r0, r3
	bl	print_array
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-3416]
	ldr	r0, .L116+16
	bl	printf
	b	.L112
.L108:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #908
	ldr	r2, .L116+20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #2496
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, .L116+20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #7552
	sub	r2, r2, #12
	sub	r3, fp, #7552
	sub	r3, r3, #12
	sub	r3, r3, #33
	mov	r1, r3
	ldr	r0, .L116+24
	bl	__isoc99_scanf
	sub	r0, fp, #7552
	sub	r0, r0, #12
	sub	r0, r0, #20
	sub	r2, fp, #7552
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r1, fp, #7552
	sub	r1, r1, #12
	sub	r1, r1, #28
	sub	r3, fp, #7552
	sub	r3, r3, #12
	sub	r3, r3, #24
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L116+12
	bl	__isoc99_scanf
	sub	r0, fp, #7552
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r2, fp, #7552
	sub	r2, r2, #12
	sub	r2, r2, #16
	sub	r1, fp, #7552
	sub	r1, r1, #12
	sub	r1, r1, #12
	sub	r3, fp, #7552
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L116+12
	bl	__isoc99_scanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	ip, [r3, #-3488]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	lr, [r3, #-3484]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3480]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3476]
	sub	r1, fp, #4992
	sub	r1, r1, #12
	sub	r1, r1, #12
	sub	r0, fp, #7488
	sub	r0, r0, #12
	sub	r0, r0, #16
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	copy_area_for_rotate
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	lr, [r3, #-3489]	@ zero_extendqisi2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3456]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r2, #-3476]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3484]
	sub	r2, r1, r2
	add	ip, r2, #1
	sub	r2, fp, #2496
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r1, fp, #4992
	sub	r1, r1, #12
	sub	r1, r1, #12
	sub	r0, fp, #7488
	sub	r0, r0, #12
	sub	r0, r0, #16
	str	ip, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	bl	rotate_area
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	ip, [r3, #-3472]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	lr, [r3, #-3468]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3464]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3460]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	sub	r1, fp, #2496
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r0, fp, #7488
	sub	r0, r0, #12
	sub	r0, r0, #16
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	paste_area_for_rotate
	str	r0, [r4, #-3452]
	sub	r3, fp, #7488
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r0, r3
	bl	print_array
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-3452]
	ldr	r0, .L116+16
	bl	printf
	b	.L112
.L115:
	nop
.L112:
	mov	r3, #0
	ldr	r2, .L116
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC8
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	2500
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
