	.file	"829558.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	print_arr
	.type	print_arr, @function
print_arr:
.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 -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_arr, .-print_arr
	.section	.rodata
.LC1:
	.string	"error %d: %s\n"
	.text
	.globl	error_check
	.type	error_check, @function
error_check:
.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	error_check, .-error_check
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"%s %s %s "
	.text
	.globl	get_color
	.type	get_color, @function
get_color:
.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	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	mov	edi, 15
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	movsx	rax, edx
	imul	rax, rax, -2139062143
	shr	rax, 32
	add	eax, edx
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 8
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cdq
	xor	eax, edx
	sub	eax, edx
	lea	rcx, -20[rbp]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 6
	sar	eax, 31
	sub	edx, eax
	movsx	rax, edx
	imul	rax, rax, -2139062143
	shr	rax, 32
	add	eax, edx
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 8
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cdq
	xor	eax, edx
	sub	eax, edx
	lea	rcx, -16[rbp]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1125899907
	shr	rdx, 32
	sar	edx, 18
	sar	eax, 31
	sub	edx, eax
	movsx	rax, edx
	imul	rax, rax, -2139062143
	shr	rax, 32
	add	eax, edx
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 8
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cdq
	xor	eax, edx
	sub	eax, edx
	lea	rcx, -12[rbp]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, -12[rbp]
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_color, .-get_color
	.globl	strprefix
	.type	strprefix, @function
strprefix:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -36[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rbx, [rdx+rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	r12, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, [r12+rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rbx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -36[rbp], 1
.L11:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	cmp	QWORD PTR -24[rbp], rax
	ja	.L12
	mov	DWORD PTR -36[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -36[rbp], 1
.L13:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L14
	mov	rax, QWORD PTR -56[rbp]
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	strprefix, .-strprefix
	.section	.rodata
.LC4:
	.string	"%s%s "
.LC5:
	.string	" "
	.text
	.globl	y_reflect
	.type	y_reflect, @function
y_reflect:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	edi, 13
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L17
.L18:
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	DWORD PTR -44[rbp], 1
	mov	edx, DWORD PTR -44[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	add	ecx, ecx
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L17
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strprefix
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
.L17:
	lea	rax, -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	y_reflect, .-y_reflect
	.section	.rodata
.LC6:
	.string	"\n"
	.text
	.globl	x_reflect
	.type	x_reflect, @function
x_reflect:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strprefix
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strprefix
.L22:
	lea	rax, -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	x_reflect, .-x_reflect
	.section	.rodata
.LC7:
	.string	"/dev/urandom"
.LC8:
	.string	"pic.ppm"
.LC9:
	.string	"P3\n500 500\n255\n"
.LC10:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 80
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	esi, 0
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	open@PLT
	mov	edi, eax
	call	error_check
	mov	DWORD PTR -64[rbp], eax
	mov	edx, 420
	mov	esi, 66
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	edi, eax
	call	error_check
	mov	DWORD PTR -60[rbp], eax
	mov	QWORD PTR -56[rbp], 0
	mov	edi, 3
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	esi, 1
	mov	edi, 20
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, eax
	call	error_check
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -84[rbp], 1
	jle	.L27
	mov	DWORD PTR -72[rbp], 0
	jmp	.L28
.L31:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 1000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edi, eax
	call	error_check
	mov	DWORD PTR -68[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -68[rbp], 1
.L29:
	cmp	DWORD PTR -68[rbp], 249
	jle	.L30
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -72[rbp], 1
.L28:
	cmp	DWORD PTR -72[rbp], 249
	jle	.L31
	jmp	.L32
.L27:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L33
.L36:
	mov	esi, 1
	mov	edi, 1020
	call	calloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	esi, 4
	mov	edi, 250
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, 1000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edi, eax
	call	error_check
	mov	DWORD PTR -72[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	get_color
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	add	DWORD PTR -72[rbp], 1
.L34:
	cmp	DWORD PTR -72[rbp], 254
	jle	.L35
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, eax
	call	error_check
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	r12, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	y_reflect
	mov	rbx, rax
	mov	rdi, rbx
	call	strlen@PLT
	add	rax, rbx
	mov	WORD PTR [rax], 10
	mov	eax, DWORD PTR -60[rbp]
	mov	rdx, r12
	mov	rsi, rbx
	mov	edi, eax
	call	write@PLT
	mov	edi, eax
	call	error_check
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -68[rbp], 1
.L33:
	cmp	DWORD PTR -68[rbp], 499
	jle	.L36
.L32:
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	add	rsp, 80
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"829558.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	print_arr
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_arr, %function
print_arr:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	print_arr, .-print_arr
	.section	.rodata
	.align	2
.LC1:
	.ascii	"error %d: %s\012\000"
	.text
	.align	2
	.global	error_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_check, %function
error_check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L9
	bl	printf
.L7:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.size	error_check, .-error_check
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"%s %s %s \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_color
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_color, %function
get_color:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	mov	r0, #15
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	ldr	r3, .L14+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	eor	r2, r1, r1, asr #31
	sub	r2, r2, r1, asr #31
	sub	r3, fp, #20
	ldr	r1, .L14+8
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-32]
	ldr	r2, .L14+12
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L14+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	eor	r2, r1, r1, asr #31
	sub	r2, r2, r1, asr #31
	sub	r3, fp, #16
	ldr	r1, .L14+8
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-32]
	ldr	r2, .L14+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L14+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	eor	r2, r1, r1, asr #31
	sub	r2, r2, r1, asr #31
	sub	r3, fp, #12
	ldr	r1, .L14+8
	mov	r0, r3
	bl	sprintf
	sub	r1, fp, #16
	sub	r2, fp, #20
	sub	r3, fp, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L14+20
	ldr	r0, [fp, #-24]
	bl	sprintf
	ldr	r3, [fp, #-24]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	-2139062143
	.word	.LC2
	.word	274877907
	.word	1125899907
	.word	.LC3
	.size	get_color, .-get_color
	.align	2
	.global	strprefix
	.syntax unified
	.arm
	.fpu softvfp
	.type	strprefix, %function
strprefix:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	strlen
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L17
.L18:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r4]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bhi	.L18
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L19
.L20:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L19:
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bhi	.L20
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	strprefix, .-strprefix
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s%s \000"
	.align	2
.LC6:
	.ascii	" \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	y_reflect
	.syntax unified
	.arm
	.fpu softvfp
	.type	y_reflect, %function
y_reflect:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r0, #13
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L23
.L24:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, .L27+4
	ldr	r0, [fp, #-16]
	bl	sprintf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r3, .L27+8
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L23
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strprefix
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
.L23:
	sub	r3, fp, #28
	ldr	r1, .L27+12
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC7
	.word	.LC5
	.word	1431655766
	.word	.LC6
	.size	y_reflect, .-y_reflect
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	x_reflect
	.syntax unified
	.arm
	.fpu softvfp
	.type	x_reflect, %function
x_reflect:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	b	.L30
.L31:
	ldr	r1, .L34+4
	ldr	r0, [fp, #-20]
	bl	strprefix
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	strprefix
.L30:
	sub	r3, fp, #24
	ldr	r1, .L34+4
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L31
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, [fp, #-20]
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC9
	.word	.LC8
	.size	x_reflect, .-x_reflect
	.section	.rodata
	.align	2
.LC10:
	.ascii	"/dev/urandom\000"
	.align	2
.LC11:
	.ascii	"pic.ppm\000"
	.align	2
.LC12:
	.ascii	"P3\012500 500\012255\012\000"
	.align	2
.LC13:
	.ascii	"%d \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, 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, #-56]
	str	r1, [fp, #-60]
	mov	r1, #0
	ldr	r0, .L48
	bl	open
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	str	r0, [fp, #-40]
	mov	r2, #420
	mov	r1, #66
	ldr	r0, .L48+4
	bl	open
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	str	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r0, #3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r1, #1
	mov	r0, #20
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, .L48+8
	ldr	r0, [fp, #-24]
	bl	sprintf
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	write
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	ldr	r0, [fp, #-24]
	bl	free
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	ble	.L37
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L38
.L41:
	mov	r2, #1000
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	read
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L39
.L40:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L48+12
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L39:
	ldr	r3, [fp, #-44]
	cmp	r3, #249
	ble	.L40
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L38:
	ldr	r3, [fp, #-48]
	cmp	r3, #249
	ble	.L41
	b	.L42
.L37:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L43
.L46:
	mov	r1, #1
	mov	r0, #1020
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r1, #4
	mov	r0, #250
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r2, #1000
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-40]
	bl	read
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L44
.L45:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	get_color
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcat
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L44:
	ldr	r3, [fp, #-48]
	cmp	r3, #254
	ble	.L45
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, .L48+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r4, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-36]
	bl	write
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	ldr	r0, [fp, #-20]
	bl	y_reflect
	mov	r4, r0
	mov	r0, r4
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, .L48+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-36]
	bl	write
	mov	r3, r0
	mov	r0, r3
	bl	error_check
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L43:
	ldr	r3, [fp, #-44]
	cmp	r3, #500
	blt	.L46
.L42:
	ldr	r0, [fp, #-40]
	bl	close
	ldr	r0, [fp, #-36]
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC6
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
