	.file	"75372.c"
	.intel_syntax noprefix
	.text
	.globl	file
	.bss
	.align 8
	.type	file, @object
	.size	file, 8
file:
	.zero	8
	.globl	fobj
	.align 8
	.type	fobj, @object
	.size	fobj, 8
fobj:
	.zero	8
	.globl	fmtl
	.align 8
	.type	fmtl, @object
	.size	fmtl, 8
fmtl:
	.zero	8
	.globl	meshver
	.align 4
	.type	meshver, @object
	.size	meshver, 4
meshver:
	.zero	4
	.globl	nverts
	.align 4
	.type	nverts, @object
	.size	nverts, 4
nverts:
	.zero	4
	.globl	nparts
	.align 4
	.type	nparts, @object
	.size	nparts, 4
nparts:
	.zero	4
	.globl	ntexc
	.align 4
	.type	ntexc, @object
	.size	ntexc, 4
ntexc:
	.zero	4
	.globl	nuvlist
	.align 4
	.type	nuvlist, @object
	.size	nuvlist, 4
nuvlist:
	.zero	4
	.globl	nnorm
	.align 4
	.type	nnorm, @object
	.size	nnorm, 4
nnorm:
	.zero	4
	.globl	nmat
	.align 4
	.type	nmat, @object
	.size	nmat, 4
nmat:
	.zero	4
	.globl	ntrilist
	.align 4
	.type	ntrilist, @object
	.size	ntrilist, 4
ntrilist:
	.zero	4
	.globl	ngrp
	.align 4
	.type	ngrp, @object
	.size	ngrp, 4
ngrp:
	.zero	4
	.globl	ngvertex
	.align 4
	.type	ngvertex, @object
	.size	ngvertex, 4
ngvertex:
	.zero	4
	.globl	sgrp
	.align 4
	.type	sgrp, @object
	.size	sgrp, 4
sgrp:
	.zero	4
	.globl	verts
	.align 8
	.type	verts, @object
	.size	verts, 8
verts:
	.zero	8
	.globl	dpverts
	.align 8
	.type	dpverts, @object
	.size	dpverts, 8
dpverts:
	.zero	8
	.globl	tbgo
	.align 8
	.type	tbgo, @object
	.size	tbgo, 8
tbgo:
	.zero	8
	.globl	reqtrilist
	.align 4
	.type	reqtrilist, @object
	.size	reqtrilist, 4
reqtrilist:
	.zero	4
	.globl	requvlist
	.align 4
	.type	requvlist, @object
	.size	requvlist, 4
requvlist:
	.zero	4
	.globl	secret
	.data
	.align 8
	.type	secret, @object
	.size	secret, 12
secret:
	.ascii	"\354\311\337\304\310\303\215\352\310\310\331\336"
	.text
	.globl	cexit
	.type	cexit, @function
cexit:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR verts[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR verts[rip]
	mov	rdi, rax
	call	free@PLT
.L2:
	mov	rax, QWORD PTR fobj[rip]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fclose@PLT
.L3:
	mov	rax, QWORD PTR fmtl[rip]
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR fmtl[rip]
	mov	rdi, rax
	call	fclose@PLT
.L4:
	mov	rax, QWORD PTR file[rip]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	cexit, .-cexit
	.section	.rodata
.LC0:
	.string	"Error %i\n"
	.text
	.globl	ferr
	.type	ferr, @function
ferr:
.LFB1:
	.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
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	cexit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	ferr, .-ferr
	.section	.rodata
	.align 8
.LC1:
	.string	"Warning (code %i), model may not be converted correctly.\n"
	.text
	.globl	warn
	.type	warn, @function
warn:
.LFB2:
	.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
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	warn, .-warn
	.globl	readchar
	.type	readchar, @function
readchar:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fgetc@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	readchar, .-readchar
	.globl	readshort
	.type	readshort, @function
readshort:
.LFB4:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR file[rip]
	lea	rax, -10[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, WORD PTR -10[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	readshort, .-readshort
	.globl	readint
	.type	readint, @function
readint:
.LFB5:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR file[rip]
	lea	rax, -12[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	readint, .-readint
	.globl	ignorestr
	.type	ignorestr, @function
ignorestr:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
.L17:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fgetc@PLT
	test	eax, eax
	jne	.L17
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ignorestr, .-ignorestr
	.globl	readprintstr
	.type	readprintstr, @function
readprintstr:
.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
	jmp	.L19
.L20:
	movsx	eax, BYTE PTR -1[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L19:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 0
	jne	.L20
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readprintstr, .-readprintstr
	.globl	fno
	.bss
	.align 32
	.type	fno, @object
	.size	fno, 256
fno:
	.zero	256
	.globl	fnm
	.align 32
	.type	fnm, @object
	.size	fnm, 256
fnm:
	.zero	256
	.section	.rodata
	.align 8
.LC3:
	.ascii	"mesh3 to obj+mtl converter by AdrienTD\nUsage: wkm2obj <inpu"
	.ascii	"t file.mesh3> <output name> [-u <number>] [-p <number>]\n-u:"
	.ascii	" Use particular UV list (model color)"
	.string	"\n-p: Use particular polygon list\nExamples: - wkm2obj input.mesh3 output\n            converts input.mesh3 to files output.obj and output.mtl.\n          - wkm2obj abc.mesh3 def -u 1\n            converts abc.mesh3 to files def.obj and def.mtl with blue color."
	.align 8
.LC4:
	.string	"Unknown parameter %c, ignoring it.\n"
.LC5:
	.string	"rb"
.LC6:
	.string	"w"
.LC7:
	.string	"mtllib %s\no wkobj\n"
.LC8:
	.string	"# %u particles:\n"
.LC9:
	.string	"# \""
.LC10:
	.string	"\", \""
.LC11:
	.string	"\"\n"
.LC12:
	.string	"\nv"
.LC13:
	.string	" %f"
.LC14:
	.string	"\n# Sphere:"
.LC15:
	.string	"\n# %u materials:"
	.align 8
.LC16:
	.string	"\nnewmtl wkmat%u\nNs 96.078431\nKa 0.000000 0.000000 0.000000\nKd 0.640000 0.640000 0.640000\nKs 0.500000 0.500000 0.500000\nNi 1.000000\nd 1.000000\nillum 2\nmap_Kd "
.LC17:
	.string	"\nvt"
.LC19:
	.string	"\nusemtl wkmat%u"
.LC20:
	.string	"\nf"
.LC21:
	.string	" %u/%u"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	mov	eax, eax
	test	rax, rax
	js	.L22
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L23
.L22:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L23:
	movss	xmm1, DWORD PTR .LC2[rip]
	addss	xmm0, xmm1
	cvttss2si	rax, xmm0
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -52[rbp], 2
	jg	.L24
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L25
.L24:
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -36[rbp], 1
	jmp	.L26
.L36:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L27
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 112
	je	.L28
	cmp	eax, 117
	je	.L29
	jmp	.L84
.L28:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	jle	.L85
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR reqtrilist[rip], eax
	add	DWORD PTR -36[rbp], 1
	jmp	.L34
.L29:
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	jle	.L86
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR requvlist[rip], eax
	add	DWORD PTR -36[rbp], 1
	jmp	.L34
.L84:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L34
.L27:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L35
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L34
.L85:
	nop
	jmp	.L34
.L86:
	nop
.L34:
	add	DWORD PTR -36[rbp], 1
.L26:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L36
	cmp	DWORD PTR -28[rbp], 0
	je	.L37
	cmp	DWORD PTR -24[rbp], 0
	jne	.L38
.L37:
	mov	edi, -7
	call	ferr
.L38:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file[rip], rax
	mov	rax, QWORD PTR file[rip]
	test	rax, rax
	jne	.L39
	mov	edi, -2
	call	ferr
.L39:
	mov	eax, 0
	call	readint
	cmp	eax, 1752393037
	je	.L40
	mov	edi, -1
	call	ferr
.L40:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, fno[rip]
	call	strcpy@PLT
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, fnm[rip]
	call	strcpy@PLT
	lea	rdi, fno[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, fno[rip]
	add	rax, rdx
	mov	DWORD PTR [rax], 1784835886
	mov	BYTE PTR 4[rax], 0
	lea	rdi, fnm[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, fnm[rip]
	add	rax, rdx
	mov	DWORD PTR [rax], 1819569454
	mov	BYTE PTR 4[rax], 0
	lea	rsi, .LC6[rip]
	lea	rdi, fno[rip]
	call	fopen@PLT
	mov	QWORD PTR fobj[rip], rax
	mov	rax, QWORD PTR fobj[rip]
	test	rax, rax
	jne	.L41
	mov	edi, -4
	call	ferr
.L41:
	lea	rsi, .LC6[rip]
	lea	rdi, fnm[rip]
	call	fopen@PLT
	mov	QWORD PTR fmtl[rip], rax
	mov	rax, QWORD PTR fmtl[rip]
	test	rax, rax
	jne	.L42
	mov	edi, -5
	call	ferr
.L42:
	mov	rax, QWORD PTR fobj[rip]
	lea	rdx, fnm[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR file[rip]
	mov	edx, 0
	mov	esi, 4
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, 0
	call	readint
	mov	DWORD PTR meshver[rip], eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 0
	mov	esi, 12
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR nparts[rip], eax
	mov	edx, DWORD PTR nparts[rip]
	mov	rax, QWORD PTR fobj[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L43
.L44:
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	readprintstr
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	esi, 29
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	readprintstr
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -36[rbp], 1
.L43:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR nparts[rip]
	cmp	edx, eax
	jb	.L44
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR nverts[rip], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L45
.L48:
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L46
.L47:
	mov	eax, 0
	call	readint
	mov	DWORD PTR -40[rbp], eax
	lea	rax, -40[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	rax, QWORD PTR fobj[rip]
	movq	xmm0, rdx
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -32[rbp], 1
.L46:
	cmp	DWORD PTR -32[rbp], 2
	jle	.L47
	add	DWORD PTR -36[rbp], 1
.L45:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR nverts[rip]
	cmp	edx, eax
	jb	.L48
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L49
.L50:
	mov	eax, 0
	call	readint
	mov	DWORD PTR -40[rbp], eax
	lea	rax, -40[rbp]
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rdx, xmm3
	mov	rax, QWORD PTR fobj[rip]
	movq	xmm0, rdx
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -36[rbp], 1
.L49:
	cmp	DWORD PTR -36[rbp], 3
	jle	.L50
	mov	eax, DWORD PTR meshver[rip]
	cmp	eax, 3
	ja	.L51
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	movsx	rcx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L51:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR nnorm[rip], eax
	mov	eax, 0
	call	readint
	add	eax, eax
	mov	ecx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR nmat[rip], eax
	mov	edx, DWORD PTR nmat[rip]
	mov	rax, QWORD PTR fobj[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L52
.L53:
	mov	eax, 0
	call	readchar
	mov	rax, QWORD PTR fmtl[rip]
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fmtl[rip]
	mov	rdi, rax
	call	readprintstr
	add	DWORD PTR -36[rbp], 1
.L52:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR nmat[rip]
	cmp	edx, eax
	jb	.L53
	mov	eax, 0
	call	readint
	mov	DWORD PTR nuvlist[rip], eax
	mov	edx, DWORD PTR requvlist[rip]
	mov	eax, DWORD PTR nuvlist[rip]
	cmp	edx, eax
	jb	.L54
	mov	edi, -8
	call	ferr
.L54:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L55
.L56:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	sal	eax, 3
	movsx	rcx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	add	DWORD PTR -36[rbp], 1
.L55:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR requvlist[rip]
	cmp	edx, eax
	jb	.L56
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR ntexc[rip], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L57
.L61:
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L58
.L60:
	mov	eax, 0
	call	readint
	mov	DWORD PTR -40[rbp], eax
	lea	rax, -40[rbp]
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -16[rbp], xmm0
	cmp	DWORD PTR -32[rbp], 1
	jne	.L59
	movss	xmm0, DWORD PTR .LC18[rip]
	subss	xmm0, DWORD PTR -16[rbp]
	movss	DWORD PTR -16[rbp], xmm0
.L59:
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -16[rbp]
	movq	rdx, xmm4
	mov	rax, QWORD PTR fobj[rip]
	movq	xmm0, rdx
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -32[rbp], 1
.L58:
	cmp	DWORD PTR -32[rbp], 1
	jle	.L60
	add	DWORD PTR -36[rbp], 1
.L57:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR ntexc[rip]
	cmp	edx, eax
	jb	.L61
	mov	eax, DWORD PTR requvlist[rip]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L62
.L63:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	sal	eax, 3
	movsx	rcx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	add	DWORD PTR -36[rbp], 1
.L62:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR nuvlist[rip]
	cmp	edx, eax
	jb	.L63
	mov	eax, 0
	call	readint
	mov	DWORD PTR ngrp[rip], eax
	mov	edx, DWORD PTR ngrp[rip]
	mov	eax, DWORD PTR nmat[rip]
	cmp	edx, eax
	je	.L64
	mov	edi, 2
	call	warn
.L64:
	mov	eax, DWORD PTR ngrp[rip]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR tbgo[rip], rax
	mov	rax, QWORD PTR tbgo[rip]
	test	rax, rax
	jne	.L65
	mov	edi, -6
	call	ferr
.L65:
	mov	rax, QWORD PTR file[rip]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR ngvertex[rip], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L66
.L67:
	mov	rdx, QWORD PTR tbgo[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR ngvertex[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR ngvertex[rip]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR ngvertex[rip], eax
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	movsx	rcx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	add	DWORD PTR -36[rbp], 1
.L66:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR ngrp[rip]
	cmp	edx, eax
	jb	.L67
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edx, DWORD PTR ngvertex[rip]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR verts[rip], rax
	mov	rax, QWORD PTR verts[rip]
	mov	QWORD PTR dpverts[rip], rax
	mov	rax, QWORD PTR verts[rip]
	test	rax, rax
	jne	.L68
	mov	edi, -3
	call	ferr
.L68:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L69
.L70:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -32[rbp], eax
	mov	rdx, QWORD PTR file[rip]
	mov	ecx, DWORD PTR -32[rbp]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	movsx	rsi, eax
	mov	rax, QWORD PTR dpverts[rip]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rcx, QWORD PTR dpverts[rip]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	cdqe
	add	rax, rcx
	mov	QWORD PTR dpverts[rip], rax
	add	DWORD PTR -36[rbp], 1
.L69:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR ngrp[rip]
	cmp	edx, eax
	jb	.L70
	mov	eax, 0
	call	readint
	mov	DWORD PTR ntrilist[rip], eax
	mov	edx, DWORD PTR reqtrilist[rip]
	mov	eax, DWORD PTR ntrilist[rip]
	cmp	edx, eax
	jb	.L71
	mov	edi, -9
	call	ferr
.L71:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L72
.L82:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -32[rbp], eax
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -24[rbp], eax
	mov	eax, 0
	call	readint
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L73
.L81:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR sgrp[rip], eax
	mov	eax, 0
	call	readshort
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L74
	cmp	DWORD PTR -36[rbp], 0
	je	.L74
	mov	edi, 1
	call	warn
.L74:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR reqtrilist[rip]
	cmp	edx, eax
	je	.L75
	mov	edx, DWORD PTR sgrp[rip]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	rax, QWORD PTR file[rip]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L76
.L75:
	mov	rax, QWORD PTR fobj[rip]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L77
.L80:
	mov	rax, QWORD PTR fobj[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L78
.L79:
	mov	eax, 0
	call	readshort
	movzx	eax, ax
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR verts[rip]
	mov	rcx, QWORD PTR tbgo[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	mov	ecx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR 4[rax]
	movzx	eax, ax
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR verts[rip]
	mov	rsi, QWORD PTR tbgo[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, esi
	mov	esi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	lea	edx, 1[rax]
	mov	rax, QWORD PTR fobj[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR fobj[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -32[rbp], 1
.L78:
	cmp	DWORD PTR -32[rbp], 2
	jle	.L79
	add	DWORD PTR -36[rbp], 1
.L77:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR sgrp[rip]
	cmp	edx, eax
	jb	.L80
.L76:
	add	DWORD PTR -20[rbp], 1
.L73:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR nmat[rip]
	cmp	edx, eax
	jb	.L81
	add	DWORD PTR -28[rbp], 1
.L72:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR ntrilist[rip]
	cmp	edx, eax
	jb	.L82
	mov	edi, 0
	call	cexit
	mov	eax, 0
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC2:
	.long	1056964608
	.align 4
.LC18:
	.long	1065353216
	.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	"75372.c"
	.text
	.global	file
	.bss
	.align	2
	.type	file, %object
	.size	file, 4
file:
	.space	4
	.global	fobj
	.align	2
	.type	fobj, %object
	.size	fobj, 4
fobj:
	.space	4
	.global	fmtl
	.align	2
	.type	fmtl, %object
	.size	fmtl, 4
fmtl:
	.space	4
	.comm	meshver,4,4
	.comm	nverts,4,4
	.comm	nparts,4,4
	.comm	ntexc,4,4
	.comm	nuvlist,4,4
	.comm	nnorm,4,4
	.comm	nmat,4,4
	.comm	ntrilist,4,4
	.comm	ngrp,4,4
	.comm	ngvertex,4,4
	.comm	sgrp,4,4
	.global	verts
	.align	2
	.type	verts, %object
	.size	verts, 4
verts:
	.space	4
	.comm	dpverts,4,4
	.comm	tbgo,4,4
	.global	reqtrilist
	.align	2
	.type	reqtrilist, %object
	.size	reqtrilist, 4
reqtrilist:
	.space	4
	.global	requvlist
	.align	2
	.type	requvlist, %object
	.size	requvlist, 4
requvlist:
	.space	4
	.global	secret
	.data
	.align	2
	.type	secret, %object
	.size	secret, 12
secret:
	.ascii	"\354\311\337\304\310\303\215\352\310\310\331\336"
	.text
	.align	2
	.global	cexit
	.syntax unified
	.arm
	.fpu softvfp
	.type	cexit, %function
cexit:
	@ 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	r3, .L6
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L2:
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L3:
	ldr	r3, .L6+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L6+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L4:
	ldr	r3, .L6+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L5:
	ldr	r0, [fp, #-8]
	bl	exit
.L7:
	.align	2
.L6:
	.word	verts
	.word	fobj
	.word	fmtl
	.word	file
	.size	cexit, .-cexit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error %i\012\000"
	.text
	.align	2
	.global	ferr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ferr, %function
ferr:
	@ 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, .L9
	bl	printf
	ldr	r0, [fp, #-8]
	bl	cexit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	ferr, .-ferr
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Warning (code %i), model may not be converted corre"
	.ascii	"ctly.\012\000"
	.text
	.align	2
	.global	warn
	.syntax unified
	.arm
	.fpu softvfp
	.type	warn, %function
warn:
	@ 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, .L12
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	warn, .-warn
	.align	2
	.global	readchar
	.syntax unified
	.arm
	.fpu softvfp
	.type	readchar, %function
readchar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	and	r3, r3, #255
	mov	r0, r3
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	file
	.size	readchar, .-readchar
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readshort
	.syntax unified
	.arm
	.fpu softvfp
	.type	readshort, %function
readshort:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	ldr	r3, [r3]
	sub	r0, fp, #10
	mov	r2, #1
	mov	r1, #2
	bl	fread
	ldrh	r3, [fp, #-10]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	file
	.size	readshort, .-readshort
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readint
	.syntax unified
	.arm
	.fpu softvfp
	.type	readint, %function
readint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L26+4
	ldr	r3, [r3]
	sub	r0, fp, #12
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-12]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC3
	.word	file
	.size	readint, .-readint
	.align	2
	.global	ignorestr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ignorestr, %function
ignorestr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	nop
.L29:
	ldr	r3, .L30
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	nop
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	file
	.size	ignorestr, .-ignorestr
	.align	2
	.global	readprintstr
	.syntax unified
	.arm
	.fpu softvfp
	.type	readprintstr, %function
readprintstr:
	@ 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]
	b	.L33
.L34:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	fputc
.L33:
	ldr	r3, .L35
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	file
	.size	readprintstr, .-readprintstr
	.comm	fno,256,4
	.comm	fnm,256,4
	.global	__aeabi_ui2f
	.global	__aeabi_fadd
	.global	__aeabi_f2uiz
	.section	.rodata
	.align	2
.LC4:
	.ascii	"mesh3 to obj+mtl converter by AdrienTD\012Usage: wk"
	.ascii	"m2obj <input file.mesh3> <output name> [-u <number>"
	.ascii	"] [-p <number>]\012-u: Use particular UV list (mode"
	.ascii	"l color)\012-p: Use particular polygon list\012Exam"
	.ascii	"ples: - wkm2obj input.mesh3 output\012            c"
	.ascii	"onverts input.mesh3 to files output.obj and output."
	.ascii	"mtl.\012          - wkm2obj abc.mesh3 def -u 1\012 "
	.ascii	"           converts abc.mesh3 to files def.obj and "
	.ascii	"def.mtl with blue color.\000"
	.align	2
.LC5:
	.ascii	"Unknown parameter %c, ignoring it.\012\000"
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	".obj\000"
	.align	2
.LC8:
	.ascii	".mtl\000"
	.align	2
.LC9:
	.ascii	"w\000"
	.align	2
.LC10:
	.ascii	"mtllib %s\012o wkobj\012\000"
	.align	2
.LC11:
	.ascii	"# %u particles:\012\000"
	.align	2
.LC12:
	.ascii	"# \"\000"
	.align	2
.LC13:
	.ascii	"\", \"\000"
	.align	2
.LC14:
	.ascii	"\"\012\000"
	.align	2
.LC15:
	.ascii	"\012v\000"
	.global	__aeabi_f2d
	.align	2
.LC16:
	.ascii	" %f\000"
	.align	2
.LC17:
	.ascii	"\012# Sphere:\000"
	.align	2
.LC18:
	.ascii	"\012# %u materials:\000"
	.align	2
.LC19:
	.ascii	"\012newmtl wkmat%u\012Ns 96.078431\012Ka 0.000000 0"
	.ascii	".000000 0.000000\012Kd 0.640000 0.640000 0.640000\012"
	.ascii	"Ks 0.500000 0.500000 0.500000\012Ni 1.000000\012d 1"
	.ascii	".000000\012illum 2\012map_Kd \000"
	.align	2
.LC20:
	.ascii	"\012vt\000"
	.global	__aeabi_fsub
	.align	2
.LC21:
	.ascii	"\012usemtl wkmat%u\000"
	.align	2
.LC22:
	.ascii	"\012f\000"
	.align	2
.LC23:
	.ascii	" %u/%u\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.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]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, #1056964608
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2uiz
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	bgt	.L38
	ldr	r0, .L101+4
	bl	puts
	mvn	r3, #0
	b	.L39
.L38:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L40
.L50:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L41
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #112
	beq	.L42
	cmp	r3, #117
	beq	.L43
	b	.L98
.L42:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L99
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+8
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L48
.L43:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L100
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+12
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L48
.L98:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L101+16
	bl	printf
	b	.L48
.L41:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-36]
	b	.L48
.L49:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-32]
	b	.L48
.L99:
	nop
	b	.L48
.L100:
	nop
.L48:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L40:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L50
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L52
.L51:
	mvn	r0, #6
	bl	ferr
.L52:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L101+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L101+24
	str	r3, [r2]
	ldr	r3, .L101+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L53
	mvn	r0, #1
	bl	ferr
.L53:
	bl	readint
	mov	r3, r0
	ldr	r2, .L101+28
	cmp	r3, r2
	beq	.L54
	mvn	r0, #0
	bl	ferr
.L54:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L101+32
	bl	strcpy
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L101+36
	bl	strcpy
	ldr	r0, .L101+32
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+32
	add	r3, r2, r3
	ldr	r2, .L101+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r0, .L101+36
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+36
	add	r3, r2, r3
	ldr	r2, .L101+44
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L101+48
	ldr	r0, .L101+32
	bl	fopen
	mov	r3, r0
	ldr	r2, .L101+52
	str	r3, [r2]
	ldr	r3, .L101+52
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L55
	mvn	r0, #3
	bl	ferr
.L55:
	ldr	r1, .L101+48
	ldr	r0, .L101+36
	bl	fopen
	mov	r3, r0
	ldr	r2, .L101+56
	str	r3, [r2]
	ldr	r3, .L101+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L56
	mvn	r0, #4
	bl	ferr
.L56:
	ldr	r3, .L101+52
	ldr	r3, [r3]
	ldr	r2, .L101+36
	ldr	r1, .L101+60
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L101+24
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #4
	mov	r0, r3
	bl	fseek
	bl	readint
	mov	r3, r0
	ldr	r2, .L101+64
	str	r3, [r2]
	ldr	r3, .L101+24
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #12
	mov	r0, r3
	bl	fseek
	bl	readshort
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+68
	str	r2, [r3]
	ldr	r3, .L101+52
	ldr	r3, [r3]
	ldr	r2, .L101+68
	ldr	r2, [r2]
	ldr	r1, .L101+72
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L57
.L58:
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L101+76
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	readprintstr
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L101+80
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L101+24
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #29
	mov	r0, r3
	bl	fseek
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	readprintstr
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L101+84
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L57:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+68
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L58
	bl	readshort
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+88
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L59
.L62:
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L101+92
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L60
.L61:
	bl	readint
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, .L101+52
	ldr	r4, [r3]
	sub	r3, fp, #48
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L101+96
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L60:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L61
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L59:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+88
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L62
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L101+100
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L63
.L64:
	bl	readint
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, .L101+52
	ldr	r4, [r3]
	sub	r3, fp, #48
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L101+96
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L63:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	ble	.L64
	ldr	r3, .L101+64
	ldr	r3, [r3]
	cmp	r3, #3
	bhi	.L65
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, .L101+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	bl	fseek
.L65:
	bl	readshort
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+104
	str	r2, [r3]
	ldr	r3, .L101+24
	ldr	r4, [r3]
	bl	readint
	mov	r3, r0
	lsl	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	mov	r0, r4
	bl	fseek
	bl	readshort
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+108
	str	r2, [r3]
	ldr	r3, .L101+52
	ldr	r3, [r3]
	ldr	r2, .L101+108
	ldr	r2, [r2]
	ldr	r1, .L101+112
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L66
.L67:
	bl	readchar
	ldr	r3, .L101+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	ldr	r1, .L101+116
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L101+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	readprintstr
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L66:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+108
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L67
	bl	readint
	mov	r3, r0
	ldr	r2, .L101+120
	str	r3, [r2]
	ldr	r3, .L101+12
	ldr	r2, [r3]
	ldr	r3, .L101+120
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L68
	mvn	r0, #7
	bl	ferr
.L68:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L69
.L70:
	ldr	r3, .L101+24
	ldr	r4, [r3]
	bl	readshort
	mov	r3, r0
	lsl	r3, r3, #3
	mov	r2, #1
	mov	r1, r3
	mov	r0, r4
	bl	fseek
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L69:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+12
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L70
	bl	readshort
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+124
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L71
.L75:
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L101+128
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L72
.L74:
	bl	readint
	mov	r3, r0
	str	r3, [fp, #-48]
	sub	r3, fp, #48
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bne	.L73
	ldr	r1, [fp, #-24]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
.L73:
	ldr	r3, .L101+52
	ldr	r4, [r3]
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L101+96
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L72:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L74
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L71:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+124
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L75
	ldr	r3, .L101+12
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L76
.L77:
	ldr	r3, .L101+24
	ldr	r4, [r3]
	bl	readshort
	mov	r3, r0
	lsl	r3, r3, #3
	mov	r2, #1
	mov	r1, r3
	mov	r0, r4
	bl	fseek
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L76:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+120
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L77
	bl	readint
	mov	r3, r0
	ldr	r2, .L101+132
	str	r3, [r2]
	ldr	r3, .L101+132
	ldr	r2, [r3]
	ldr	r3, .L101+108
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L78
	mov	r0, #2
	bl	warn
.L78:
	ldr	r3, .L101+132
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+136
	str	r2, [r3]
	ldr	r3, .L101+136
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L79
	mvn	r0, #5
	bl	ferr
.L79:
	ldr	r3, .L101+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	ftell
	str	r0, [fp, #-36]
	ldr	r3, .L101+140
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L80
.L81:
	ldr	r3, .L101+136
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L101+140
	ldr	r2, [r2]
	str	r2, [r3]
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L101+140
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, .L101+140
	str	r3, [r2]
	ldr	r3, .L101+24
	ldr	r0, [r3]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	bl	fseek
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L80:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+132
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L81
	ldr	r3, .L101+24
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	fseek
	ldr	r3, .L101+144
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L101+140
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+148
	str	r2, [r3]
	ldr	r3, .L101+148
	ldr	r3, [r3]
	ldr	r2, .L101+152
	str	r3, [r2]
	ldr	r3, .L101+148
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L82
	mvn	r0, #2
	bl	ferr
.L82:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L83
.L84:
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, .L101+152
	ldr	r0, [r3]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L101+24
	ldr	r3, [r3]
	mov	r2, #1
	bl	fread
	ldr	r3, .L101+152
	ldr	r1, [r3]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldr	r2, .L101+152
	str	r3, [r2]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L83:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+132
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L84
	bl	readint
	mov	r3, r0
	ldr	r2, .L101+156
	str	r3, [r2]
	ldr	r3, .L101+8
	ldr	r2, [r3]
	ldr	r3, .L101+156
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L85
	mvn	r0, #8
	bl	ferr
.L85:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L86
.L96:
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-44]
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-40]
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-32]
	bl	readint
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L87
.L95:
	bl	readshort
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L101+160
	str	r2, [r3]
	bl	readshort
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L88
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L88
	mov	r0, #1
	bl	warn
.L88:
	ldr	r2, [fp, #-36]
	ldr	r3, .L101+8
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L89
	ldr	r3, .L101+24
	ldr	r0, [r3]
	ldr	r3, .L101+160
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, #1
	mov	r1, r3
	bl	fseek
	b	.L90
.L89:
	ldr	r3, .L101+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L101+164
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L91
.L94:
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L101+168
	bl	fwrite
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L92
.L93:
	bl	readshort
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, .L101+52
	ldr	r0, [r3]
	ldr	r3, .L101+148
	ldr	r1, [r3]
	ldr	r3, .L101+136
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	ip, r3, #1
	ldr	r3, .L101+148
	ldr	r1, [r3]
	ldr	r3, .L101+136
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	mov	r2, ip
	ldr	r1, .L101+172
	bl	fprintf
	ldr	r3, .L101+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L92:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L93
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L91:
	ldr	r2, [fp, #-44]
	ldr	r3, .L101+160
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L94
.L90:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L87:
	ldr	r2, [fp, #-28]
	ldr	r3, .L101+108
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L95
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L86:
	ldr	r2, [fp, #-36]
	ldr	r3, .L101+156
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L96
	mov	r0, #0
	bl	cexit
	mov	r3, #0
.L39:
	ldr	r2, .L101
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC24
	.word	.LC4
	.word	reqtrilist
	.word	requvlist
	.word	.LC5
	.word	.LC6
	.word	file
	.word	1752393037
	.word	fno
	.word	fnm
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	fobj
	.word	fmtl
	.word	.LC10
	.word	meshver
	.word	nparts
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	nverts
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	nnorm
	.word	nmat
	.word	.LC18
	.word	.LC19
	.word	nuvlist
	.word	ntexc
	.word	.LC20
	.word	ngrp
	.word	tbgo
	.word	ngvertex
	.word	stdout
	.word	verts
	.word	dpverts
	.word	ntrilist
	.word	sgrp
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
