	.file	"173601.c"
	.intel_syntax noprefix
	.text
	.globl	idx
	.bss
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.globl	tr
	.align 8
	.type	tr, @object
	.size	tr, 8
tr:
	.zero	8
	.globl	tg
	.align 8
	.type	tg, @object
	.size	tg, 8
tg:
	.zero	8
	.globl	tb
	.align 8
	.type	tb, @object
	.size	tb, 8
tb:
	.zero	8
	.globl	sr
	.align 8
	.type	sr, @object
	.size	sr, 8
sr:
	.zero	8
	.globl	sg
	.align 8
	.type	sg, @object
	.size	sg, 8
sg:
	.zero	8
	.globl	sb
	.align 8
	.type	sb, @object
	.size	sb, 8
sb:
	.zero	8
	.globl	cr
	.align 8
	.type	cr, @object
	.size	cr, 8
cr:
	.zero	8
	.globl	cg
	.align 8
	.type	cg, @object
	.size	cg, 8
cg:
	.zero	8
	.globl	cb
	.align 8
	.type	cb, @object
	.size	cb, 8
cb:
	.zero	8
	.globl	fr
	.align 8
	.type	fr, @object
	.size	fr, 8
fr:
	.zero	8
	.globl	fg
	.align 8
	.type	fg, @object
	.size	fg, 8
fg:
	.zero	8
	.globl	fb
	.align 8
	.type	fb, @object
	.size	fb, 8
fb:
	.zero	8
	.globl	sf
	.align 8
	.type	sf, @object
	.size	sf, 8
sf:
	.zero	8
	.globl	tid
	.align 4
	.type	tid, @object
	.size	tid, 4
tid:
	.zero	4
	.globl	fac
	.align 4
	.type	fac, @object
	.size	fac, 4
fac:
	.zero	4
	.globl	ran
	.align 4
	.type	ran, @object
	.size	ran, 4
ran:
	.zero	4
	.globl	hdr
	.align 4
	.type	hdr, @object
	.size	hdr, 4
hdr:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Error at %s: %d\n"
	.text
	.globl	err
	.type	err, @function
err:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	err, .-err
	.globl	d_rand
	.type	d_rand, @function
d_rand:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	d_rand, .-d_rand
	.globl	i_rand
	.type	i_rand, @function
i_rand:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	call	rand@PLT
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	i_rand, .-i_rand
	.section	.rodata
.LC2:
	.string	"Screen: (800,600)"
.LC4:
	.string	"MinShadow: %f\n"
.LC6:
	.string	"Ambient: %f\n"
.LC7:
	.string	"MaxRecurse: %d\n"
.LC8:
	.string	"Backup: 200"
.LC11:
	.string	"Observer: Vertex: (%f,%f,%f)\n"
.LC15:
	.string	"LookZ: %f%%\n"
.LC19:
	.string	"Light: Vertex: (%f,%f,%f)\n"
.LC20:
	.string	"TexDirectory: textures"
.LC21:
	.string	"NumTextures: %d\n"
.LC22:
	.string	"nTriangles: %d\n"
.LC23:
	.string	"ListTransform: [%d,%d]\n"
.LC24:
	.string	"{"
.LC25:
	.string	"} "
.LC26:
	.string	"Triangle: %d\n"
.LC27:
	.string	" a: Vertex: (%f,%f,%f)\n"
.LC28:
	.string	" b: Vertex: (%f,%f,%f)\n"
.LC29:
	.string	" c: Vertex: (%f,%f,%f)\n"
.LC30:
	.string	" texA: TexCoord: (%f,%f)\n"
.LC31:
	.string	" texB: TexCoord: (%f,%f)\n"
.LC32:
	.string	" texC: TexCoord: (%f,%f)\n"
.LC33:
	.string	" na: Vector: (%f,%f,%f)\n"
.LC34:
	.string	" nb: Vector: (%f,%f,%f)\n"
.LC35:
	.string	" nc: Vector: (%f,%f,%f)\n"
	.align 8
.LC36:
	.string	" transparency: RGB: (%f,%f,%f)\n"
.LC37:
	.string	" specular: RGB: (%f,%f,%f)\n"
.LC38:
	.string	" diffuse: RGB: (%f,%f,%f)\n"
.LC40:
	.string	" transparencyFactR: (1,%f)\n"
.LC41:
	.string	" transparencyFactG: (1,%f)\n"
.LC42:
	.string	" transparencyFactB: (1,%f)\n"
.LC43:
	.string	" normalDist: %f%%\n"
.LC44:
	.string	" specularFact: %f\n"
.LC45:
	.string	" faces: %d\n"
.LC46:
	.string	" texture: %d\n"
.LC47:
	.string	"  }"
	.text
	.globl	write_triangles
	.type	write_triangles, @function
write_triangles:
.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -20[rbp], 18
	mov	eax, DWORD PTR hdr[rip]
	test	eax, eax
	je	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	call	d_rand
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movq	xmm3, rax
	divsd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movq	xmm1, rax
	divsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edi, 5
	call	i_rand
	add	eax, 5
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC10[rip]
	subsd	xmm0, xmm1
	movapd	xmm2, xmm0
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	lea	rdi, .LC11[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC13[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC14[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC16[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC18[rip]
	movapd	xmm4, xmm0
	subsd	xmm4, xmm1
	movsd	QWORD PTR -64[rbp], xmm4
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC18[rip]
	movapd	xmm5, xmm0
	subsd	xmm5, xmm1
	movq	rax, xmm5
	movsd	xmm2, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR -64[rbp]
	movq	xmm0, rax
	lea	rdi, .LC19[rip]
	mov	eax, 3
	call	printf@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	edx, DWORD PTR idx[rip]
	mov	eax, DWORD PTR -44[rbp]
	add	eax, edx
	lea	edx, -1[rax]
	mov	eax, DWORD PTR idx[rip]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L8
.L11:
	mov	edx, DWORD PTR idx[rip]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC27[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm1, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC28[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	movsd	xmm1, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	movsd	xmm0, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC29[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR 56[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 48[rax]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC30[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR 56[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 48[rax]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC31[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	movsd	xmm0, QWORD PTR 56[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 48[rax]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC32[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 24[rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC33[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm1, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	movsd	xmm0, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 24[rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC34[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	movsd	xmm1, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	movsd	xmm0, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 24[rax]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC35[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR ran[rip]
	test	eax, eax
	je	.L9
	mov	eax, 0
	call	d_rand
	movq	r12, xmm0
	mov	eax, 0
	call	d_rand
	movq	rbx, xmm0
	mov	eax, 0
	call	d_rand
	movq	rax, xmm0
	movq	xmm2, r12
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rdi, .LC36[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movq	r12, xmm0
	mov	eax, 0
	call	d_rand
	movq	rbx, xmm0
	mov	eax, 0
	call	d_rand
	movq	rax, xmm0
	movq	xmm2, r12
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rdi, .LC37[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movq	r12, xmm0
	mov	eax, 0
	call	d_rand
	movq	rbx, xmm0
	mov	eax, 0
	call	d_rand
	movq	rax, xmm0
	movq	xmm2, r12
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rdi, .LC38[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC39[rip]
	addsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC40[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC39[rip]
	addsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC41[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC39[rip]
	addsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC42[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC43[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	call	d_rand
	movsd	xmm1, QWORD PTR .LC17[rip]
	mulsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC44[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR fac[rip]
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	edi, eax
	call	i_rand
	mov	esi, eax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	movsd	xmm1, QWORD PTR tb[rip]
	movsd	xmm0, QWORD PTR tg[rip]
	mov	rax, QWORD PTR tr[rip]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC36[rip]
	mov	eax, 3
	call	printf@PLT
	movsd	xmm1, QWORD PTR sb[rip]
	movsd	xmm0, QWORD PTR sg[rip]
	mov	rax, QWORD PTR sr[rip]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC37[rip]
	mov	eax, 3
	call	printf@PLT
	movsd	xmm1, QWORD PTR cb[rip]
	movsd	xmm0, QWORD PTR cg[rip]
	mov	rax, QWORD PTR cr[rip]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC38[rip]
	mov	eax, 3
	call	printf@PLT
	mov	rax, QWORD PTR fr[rip]
	movq	xmm0, rax
	lea	rdi, .LC40[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR fg[rip]
	movq	xmm0, rax
	lea	rdi, .LC41[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR fb[rip]
	movq	xmm0, rax
	lea	rdi, .LC42[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR sf[rip]
	movq	xmm0, rax
	lea	rdi, .LC44[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR fac[rip]
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR tid[rip]
	mov	esi, eax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	lea	rdi, .LC47[rip]
	call	puts@PLT
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L11
	nop
	nop
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	write_triangles, .-write_triangles
	.section	.rodata
.LC48:
	.string	"%d\n"
.LC49:
	.string	"the_stack_data/173601.c"
	.align 8
.LC50:
	.string	"%lf %lf %lf %lf %lf %lf %lf %lf\n"
.LC51:
	.string	"%d %d %d\n"
	.text
	.globl	uli2dat
	.type	uli2dat, @function
uli2dat:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -52[rbp]
	mov	rsi, rax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 1
	je	.L13
	mov	esi, 137
	lea	rdi, .LC49[rip]
	call	err
.L13:
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jns	.L14
	mov	esi, 138
	lea	rdi, .LC49[rip]
	call	err
.L14:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	r9, 56[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	r8, 48[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdi, 40[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	r11, 32[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	r10, 24[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rcx, 16[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 3
	add	rax, rsi
	sal	rax, 3
	mov	rsi, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rsi
	sub	rsp, 8
	push	r9
	push	r8
	push	rdi
	mov	r9, r11
	mov	r8, r10
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	rsp, 32
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 8
	je	.L16
	mov	esi, 143
	lea	rdi, .LC49[rip]
	call	err
.L16:
	add	DWORD PTR -32[rbp], 1
.L15:
	mov	eax, DWORD PTR -52[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L17
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 1
	je	.L18
	mov	esi, 146
	lea	rdi, .LC49[rip]
	call	err
.L18:
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jns	.L19
	mov	esi, 147
	lea	rdi, .LC49[rip]
	call	err
.L19:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L20
.L28:
	lea	rcx, -36[rbp]
	lea	rdx, -40[rbp]
	lea	rax, -44[rbp]
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 3
	je	.L21
	mov	esi, 152
	lea	rdi, .LC49[rip]
	call	err
.L21:
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	jle	.L22
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cmp	edx, eax
	jle	.L23
.L22:
	mov	esi, 153
	lea	rdi, .LC49[rip]
	call	err
.L23:
	mov	eax, DWORD PTR -40[rbp]
	test	eax, eax
	jle	.L24
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cmp	edx, eax
	jle	.L25
.L24:
	mov	esi, 154
	lea	rdi, .LC49[rip]
	call	err
.L25:
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	jle	.L26
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cmp	edx, eax
	jle	.L27
.L26:
	mov	esi, 155
	lea	rdi, .LC49[rip]
	call	err
.L27:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	lea	rcx, -72[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	lea	rcx, -72[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	lea	rcx, -72[rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	QWORD PTR 16[rax], rdx
	add	DWORD PTR -32[rbp], 1
.L20:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L28
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	write_triangles
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	uli2dat, .-uli2dat
	.section	.rodata
.LC52:
	.string	"usage: %s params\n"
	.align 8
.LC53:
	.string	"params: idx,t(rgb),s(rgb),d(rgb),tf(rgb)"
.LC54:
	.string	"sf,tid,fac,rand,hdr"
	.text
	.globl	help
	.type	help, @function
help:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC53[rip]
	call	puts@PLT
	lea	rdi, .LC54[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	help, .-help
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, eax
	call	srand@PLT
	cmp	DWORD PTR -20[rbp], 19
	je	.L32
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	help
	mov	esi, 175
	lea	rdi, .LC49[rip]
	call	err
.L32:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR idx[rip], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR tr[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR tg[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR tb[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR sr[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 48
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR sg[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 56
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR sb[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 64
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR cr[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 72
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR cg[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 80
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR cb[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 88
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR fr[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 96
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR fg[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 104
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR fb[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 112
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR sf[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 120
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR tid[rip], eax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, -128
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR fac[rip], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 136
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR ran[rip], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 144
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR hdr[rip], eax
	mov	eax, 0
	call	uli2dat
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	-4194304
	.long	1105199103
	.align 8
.LC3:
	.long	0
	.long	1074003968
	.align 8
.LC5:
	.long	-1717986918
	.long	1070176665
	.align 8
.LC9:
	.long	0
	.long	1080213504
	.align 8
.LC10:
	.long	0
	.long	-1066860544
	.align 8
.LC13:
	.long	0
	.long	1077149696
	.align 8
.LC14:
	.long	0
	.long	1077805056
	.align 8
.LC16:
	.long	0
	.long	-1065811968
	.align 8
.LC17:
	.long	0
	.long	1080623104
	.align 8
.LC18:
	.long	0
	.long	1079574528
	.align 8
.LC39:
	.long	0
	.long	1072693248
	.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	"173601.c"
	.text
	.comm	idx,4,4
	.comm	tr,8,8
	.comm	tg,8,8
	.comm	tb,8,8
	.comm	sr,8,8
	.comm	sg,8,8
	.comm	sb,8,8
	.comm	cr,8,8
	.comm	cg,8,8
	.comm	cb,8,8
	.comm	fr,8,8
	.comm	fg,8,8
	.comm	fb,8,8
	.comm	sf,8,8
	.comm	tid,4,4
	.comm	fac,4,4
	.comm	ran,4,4
	.comm	hdr,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error at %s: %d\012\000"
	.text
	.align	2
	.global	err
	.syntax unified
	.arm
	.fpu softvfp
	.type	err, %function
err:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	err, .-err
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
	.global	d_rand
	.syntax unified
	.arm
	.fpu softvfp
	.type	d_rand, %function
d_rand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L6
	ldr	r3, .L6+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	-4194304
	.word	1105199103
	.size	d_rand, .-d_rand
	.global	__aeabi_idivmod
	.align	2
	.global	i_rand
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_rand, %function
i_rand:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	i_rand, .-i_rand
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Screen: (800,600)\000"
	.align	2
.LC2:
	.ascii	"MinShadow: %f\012\000"
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"Ambient: %f\012\000"
	.align	2
.LC4:
	.ascii	"MaxRecurse: %d\012\000"
	.align	2
.LC5:
	.ascii	"Backup: 200\000"
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.align	2
.LC6:
	.ascii	"Observer: Vertex: (%f,%f,%f)\012\000"
	.align	2
.LC7:
	.ascii	"LookZ: %f%%\012\000"
	.align	2
.LC8:
	.ascii	"Light: Vertex: (%f,%f,%f)\012\000"
	.align	2
.LC9:
	.ascii	"TexDirectory: textures\000"
	.align	2
.LC10:
	.ascii	"NumTextures: %d\012\000"
	.align	2
.LC11:
	.ascii	"nTriangles: %d\012\000"
	.align	2
.LC12:
	.ascii	"ListTransform: [%d,%d]\012\000"
	.align	2
.LC13:
	.ascii	"{\000"
	.align	2
.LC14:
	.ascii	"} \000"
	.align	2
.LC15:
	.ascii	"Triangle: %d\012\000"
	.align	2
.LC16:
	.ascii	" a: Vertex: (%f,%f,%f)\012\000"
	.align	2
.LC17:
	.ascii	" b: Vertex: (%f,%f,%f)\012\000"
	.align	2
.LC18:
	.ascii	" c: Vertex: (%f,%f,%f)\012\000"
	.align	2
.LC19:
	.ascii	" texA: TexCoord: (%f,%f)\012\000"
	.align	2
.LC20:
	.ascii	" texB: TexCoord: (%f,%f)\012\000"
	.align	2
.LC21:
	.ascii	" texC: TexCoord: (%f,%f)\012\000"
	.align	2
.LC22:
	.ascii	" na: Vector: (%f,%f,%f)\012\000"
	.align	2
.LC23:
	.ascii	" nb: Vector: (%f,%f,%f)\012\000"
	.align	2
.LC24:
	.ascii	" nc: Vector: (%f,%f,%f)\012\000"
	.align	2
.LC25:
	.ascii	" transparency: RGB: (%f,%f,%f)\012\000"
	.align	2
.LC26:
	.ascii	" specular: RGB: (%f,%f,%f)\012\000"
	.align	2
.LC27:
	.ascii	" diffuse: RGB: (%f,%f,%f)\012\000"
	.align	2
.LC28:
	.ascii	" transparencyFactR: (1,%f)\012\000"
	.align	2
.LC29:
	.ascii	" transparencyFactG: (1,%f)\012\000"
	.align	2
.LC30:
	.ascii	" transparencyFactB: (1,%f)\012\000"
	.align	2
.LC31:
	.ascii	" normalDist: %f%%\012\000"
	.align	2
.LC32:
	.ascii	" specularFact: %f\012\000"
	.align	2
.LC33:
	.ascii	" faces: %d\012\000"
	.align	2
.LC34:
	.ascii	" texture: %d\012\000"
	.align	2
.LC35:
	.ascii	"  }\000"
	.text
	.align	2
	.global	write_triangles
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_triangles, %function
write_triangles:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #18
	str	r3, [fp, #-24]
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L16+4
	bl	puts
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+12
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L16+16
	ldr	r3, .L16+20
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+24
	bl	printf
	mov	r0, #5
	bl	i_rand
	mov	r3, r0
	add	r3, r3, #5
	mov	r1, r3
	ldr	r0, .L16+28
	bl	printf
	ldr	r0, .L16+32
	bl	puts
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+36
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L16+40
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	mov	r2, #0
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	ldr	r0, .L16+44
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+52
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+56
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+60
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+64
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+60
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+64
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+68
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L16+72
	bl	printf
	ldr	r0, .L16+76
	bl	puts
	ldr	r1, [fp, #-24]
	ldr	r0, .L16+80
	bl	printf
	ldr	r1, [fp, #-36]
	ldr	r0, .L16+84
	bl	printf
.L11:
	ldr	r3, .L16+88
	ldr	r1, [r3]
	ldr	r3, .L16+88
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L16+92
	bl	printf
	ldr	r0, .L16+96
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L16+100
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L12
.L15:
	ldr	r3, .L16+88
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L16+104
	bl	printf
	ldr	r0, .L16+96
	bl	puts
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+108
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+112
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	ldmia	r3, {r4-r5}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r1, r3, #8
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+116
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r1, r3, #48
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r3, r3, #56
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+120
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r1, r3, #48
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r3, r3, #56
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+124
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r1, r3, #48
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r3, r3, #56
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+128
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+132
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #4]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+136
	bl	printf
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r5, r3, #24
	ldmia	r5, {r4-r5}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	ldr	r3, [r3, #8]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+140
	bl	printf
	ldr	r3, .L16+144
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	bl	d_rand
	mov	r6, r0
	mov	r7, r1
	bl	d_rand
	mov	r4, r0
	mov	r5, r1
	bl	d_rand
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L16+148
	bl	printf
	bl	d_rand
	mov	r6, r0
	mov	r7, r1
	bl	d_rand
	mov	r4, r0
	mov	r5, r1
	bl	d_rand
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L16+152
	bl	printf
	bl	d_rand
	mov	r6, r0
	mov	r7, r1
	bl	d_rand
	mov	r4, r0
	mov	r5, r1
	bl	d_rand
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L16+156
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+160
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+164
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+160
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+168
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+160
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+172
	bl	printf
	bl	d_rand
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+176
	bl	printf
	bl	d_rand
	mov	r2, #0
	ldr	r3, .L16+60
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L16+180
	bl	printf
	ldr	r3, .L16+184
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+188
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r0, r3
	bl	i_rand
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+192
	bl	printf
	b	.L14
.L13:
	ldr	r3, .L16+196
	ldmia	r3, {r4-r5}
	ldr	r3, .L16+200
	ldmia	r3, {r2-r3}
	ldr	r1, .L16+204
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+148
	bl	printf
	ldr	r3, .L16+208
	ldmia	r3, {r4-r5}
	ldr	r3, .L16+212
	ldmia	r3, {r2-r3}
	ldr	r1, .L16+216
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+152
	bl	printf
	ldr	r3, .L16+220
	ldmia	r3, {r4-r5}
	ldr	r3, .L16+224
	ldmia	r3, {r2-r3}
	ldr	r1, .L16+228
	ldmia	r1, {r0-r1}
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L16+156
	bl	printf
	ldr	r3, .L16+232
	ldmia	r3, {r2-r3}
	ldr	r0, .L16+164
	bl	printf
	ldr	r3, .L16+236
	ldmia	r3, {r2-r3}
	ldr	r0, .L16+168
	bl	printf
	ldr	r3, .L16+240
	ldmia	r3, {r2-r3}
	ldr	r0, .L16+172
	bl	printf
	ldr	r3, .L16+244
	ldmia	r3, {r2-r3}
	ldr	r0, .L16+180
	bl	printf
	ldr	r3, .L16+184
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+188
	bl	printf
	ldr	r3, .L16+248
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+192
	bl	printf
.L14:
	ldr	r0, .L16+252
	bl	puts
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L12:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L15
	nop
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L17:
	.align	2
.L16:
	.word	hdr
	.word	.LC1
	.word	1074003968
	.word	.LC2
	.word	-1717986918
	.word	1070176665
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1080213504
	.word	-1066860544
	.word	.LC6
	.word	1077149696
	.word	1077805056
	.word	.LC7
	.word	1080623104
	.word	1079574528
	.word	-1065811968
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	idx
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	ran
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	1072693248
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	fac
	.word	.LC33
	.word	.LC34
	.word	tr
	.word	tg
	.word	tb
	.word	sr
	.word	sg
	.word	sb
	.word	cr
	.word	cg
	.word	cb
	.word	fr
	.word	fg
	.word	fb
	.word	sf
	.word	tid
	.word	.LC35
	.size	write_triangles, .-write_triangles
	.section	.rodata
	.align	2
.LC36:
	.ascii	"%d\012\000"
	.align	2
.LC37:
	.ascii	"the_stack_data/173601.c\000"
	.align	2
.LC38:
	.ascii	"%lf %lf %lf %lf %lf %lf %lf %lf\012\000"
	.align	2
.LC39:
	.ascii	"%d %d %d\012\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	uli2dat
	.syntax unified
	.arm
	.fpu softvfp
	.type	uli2dat, %function
uli2dat:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #68
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L36+4
	bl	__isoc99_scanf
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L19
	mov	r1, #137
	ldr	r0, .L36+8
	bl	err
.L19:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L20
	mov	r1, #138
	ldr	r0, .L36+8
	bl	err
.L20:
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L21
.L23:
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	mov	r6, r3
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r4, r3, #8
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r5, r3, #16
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r1, r3, #24
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r0, r3, #32
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	ip, r3, #40
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	lr, r3, #48
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	add	r3, r3, #56
	str	r3, [sp, #16]
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r3, r5
	mov	r2, r4
	mov	r1, r6
	ldr	r0, .L36+12
	bl	__isoc99_scanf
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #8
	beq	.L22
	mov	r1, #143
	ldr	r0, .L36+8
	bl	err
.L22:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L21:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L23
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L36+4
	bl	__isoc99_scanf
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L24
	mov	r1, #146
	ldr	r0, .L36+8
	bl	err
.L24:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L25
	mov	r1, #147
	ldr	r0, .L36+8
	bl	err
.L25:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L26
.L34:
	sub	r3, fp, #44
	sub	r2, fp, #48
	sub	r1, fp, #52
	ldr	r0, .L36+16
	bl	__isoc99_scanf
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	beq	.L27
	mov	r1, #152
	ldr	r0, .L36+8
	bl	err
.L27:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	ble	.L28
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	ble	.L29
.L28:
	mov	r1, #153
	ldr	r0, .L36+8
	bl	err
.L29:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L30
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	ble	.L31
.L30:
	mov	r1, #154
	ldr	r0, .L36+8
	bl	err
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	ble	.L32
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	ble	.L33
.L32:
	mov	r1, #155
	ldr	r0, .L36+8
	bl	err
.L33:
	ldr	r3, [fp, #-52]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r1, r3, #72
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r2, r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r1, r3, #72
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r2, r2, r1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r1, r3, #72
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	add	r2, r2, r1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L26:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	write_triangles
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC40
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.size	uli2dat, .-uli2dat
	.section	.rodata
	.align	2
.LC41:
	.ascii	"usage: %s params\012\000"
	.align	2
.LC42:
	.ascii	"params: idx,t(rgb),s(rgb),d(rgb),tf(rgb)\000"
	.align	2
.LC43:
	.ascii	"sf,tid,fac,rand,hdr\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L39
	bl	printf
	ldr	r0, .L39+4
	bl	puts
	ldr	r0, .L39+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	help, .-help
	.section	.rodata
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	time
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	beq	.L42
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	help
	mov	r1, #175
	ldr	r0, .L45+4
	bl	err
.L42:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L45+8
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+12
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+16
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+20
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+24
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #24
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+28
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #28
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+32
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #32
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+36
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #36
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+40
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #40
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+44
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #44
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+48
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #48
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+52
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #52
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+56
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #56
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L45+60
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-20]
	add	r3, r3, #60
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L45+64
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #64
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L45+68
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #68
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L45+72
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #72
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L45+76
	str	r3, [r2]
	bl	uli2dat
	mov	r3, #0
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC44
	.word	.LC37
	.word	idx
	.word	tr
	.word	tg
	.word	tb
	.word	sr
	.word	sg
	.word	sb
	.word	cr
	.word	cg
	.word	cb
	.word	fr
	.word	fg
	.word	fb
	.word	sf
	.word	tid
	.word	fac
	.word	ran
	.word	hdr
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
