	.file	"extr_misc_model.c_AddTriangleModels.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"----- AddTriangleModels -----\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"classname"
.LC2:
	.string	"misc_model"
.LC3:
	.string	"angle"
.LC4:
	.string	"origin"
.LC5:
	.string	"model"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"WARNING: misc_model at %i %i %i without a model key\n"
	.section	.rodata.str1.1
.LC7:
	.string	".md3"
.LC8:
	.string	".MD3"
.LC9:
	.string	".ase"
.LC10:
	.string	".ASE"
.LC11:
	.string	"Unknown misc_model type: %s\n"
.LC12:
	.string	"%5i triangle models\n"
.LC13:
	.string	"%5i triangle surfaces\n"
.LC14:
	.string	"%5i triangle vertexes\n"
.LC15:
	.string	"%5i triangle indexes\n"
	.text
	.p2align 4
	.globl	AddTriangleModels
	.type	AddTriangleModels, @function
AddTriangleModels:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	lea	rdi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	call	qprintf@PLT
	cmp	DWORD PTR num_entities[rip], 1
	jle	.L2
	mov	ebp, 4
	mov	ebx, 1
	lea	r12, .LC1[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	add	ebx, 1
	add	rbp, 4
	cmp	DWORD PTR num_entities[rip], ebx
	jle	.L2
.L9:
	mov	r14, QWORD PTR entities[rip]
	mov	rsi, r12
	add	r14, rbp
	mov	rdi, r14
	call	ValueForKey@PLT
	lea	rdi, .LC2[rip]
	mov	rsi, rax
	call	Q_stricmp@PLT
	test	eax, eax
	jne	.L3
	mov	rdi, r14
	lea	rsi, .LC3[rip]
	call	FloatForKey@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	rdx, rsi
	lea	rsi, .LC4[rip]
	movss	DWORD PTR 12[rsp], xmm0
	call	GetVectorForKey@PLT
	mov	rdi, r14
	lea	rsi, .LC5[rip]
	call	ValueForKey@PLT
	cmp	BYTE PTR [rax], 0
	mov	r14, rax
	je	.L13
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L5
	lea	rsi, .LC8[rip]
	mov	rdi, r14
	call	strstr@PLT
	test	rax, rax
	jne	.L5
	lea	rsi, .LC9[rip]
	mov	rdi, r14
	call	strstr@PLT
	test	rax, rax
	jne	.L7
	lea	rsi, .LC10[rip]
	mov	rdi, r14
	call	strstr@PLT
	test	rax, rax
	je	.L8
.L7:
	movss	xmm0, DWORD PTR 12[rsp]
	xor	esi, esi
	mov	rdx, r13
	mov	rdi, r14
	add	ebx, 1
	add	rbp, 4
	call	InsertASEModel@PLT
	cmp	DWORD PTR num_entities[rip], ebx
	jg	.L9
.L2:
	mov	esi, DWORD PTR c_triangleModels[rip]
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	esi, DWORD PTR c_triangleSurfaces[rip]
	lea	rdi, .LC13[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	esi, DWORD PTR c_triangleVertexes[rip]
	lea	rdi, .LC14[rip]
	xor	eax, eax
	call	qprintf@PLT
	mov	esi, DWORD PTR c_triangleIndexes[rip]
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rdi, .LC15[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	qprintf@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movss	xmm0, DWORD PTR 12[rsp]
	mov	rdx, r13
	xor	esi, esi
	mov	rdi, r14
	call	InsertMD3Model@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	xor	esi, esi
	lea	rdi, .LC6[rip]
	xor	eax, eax
	mov	rcx, QWORD PTR 16[rsi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	rsi, QWORD PTR [rsi]
	call	_printf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r14
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	_printf@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	AddTriangleModels, .-AddTriangleModels
	.comm	num_entities,4,4
	.comm	entities,8,8
	.comm	c_triangleVertexes,4,4
	.comm	c_triangleSurfaces,4,4
	.comm	c_triangleModels,4,4
	.comm	c_triangleIndexes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_misc_model.c_AddTriangleModels.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"----- AddTriangleModels -----\012\000"
	.align	2
.LC1:
	.ascii	"classname\000"
	.align	2
.LC2:
	.ascii	"misc_model\000"
	.align	2
.LC3:
	.ascii	"angle\000"
	.align	2
.LC4:
	.ascii	"origin\000"
	.align	2
.LC5:
	.ascii	"model\000"
	.align	2
.LC6:
	.ascii	"WARNING: misc_model at %i %i %i without a model key"
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	".md3\000"
	.align	2
.LC8:
	.ascii	".MD3\000"
	.align	2
.LC9:
	.ascii	".ase\000"
	.align	2
.LC10:
	.ascii	".ASE\000"
	.align	2
.LC11:
	.ascii	"Unknown misc_model type: %s\012\000"
	.align	2
.LC12:
	.ascii	"%5i triangle models\012\000"
	.align	2
.LC13:
	.ascii	"%5i triangle surfaces\012\000"
	.align	2
.LC14:
	.ascii	"%5i triangle vertexes\012\000"
	.align	2
.LC15:
	.ascii	"%5i triangle indexes\012\000"
	.text
	.align	2
	.global	AddTriangleModels
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddTriangleModels, %function
AddTriangleModels:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L14
	sub	sp, sp, #12
	ldr	r0, .L14+4
	str	r3, [sp, #4]
	bl	qprintf
	ldr	r3, [r5]
	cmp	r3, #1
	ble	.L2
	mov	r4, #1
	ldr	r9, .L14+8
	ldr	r8, .L14+12
	ldr	r7, .L14+16
	ldr	fp, .L14+20
	b	.L9
.L3:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L9:
	ldr	r3, [r9]
	mov	r1, r8
	add	r10, r3, r4, lsl #2
	mov	r0, r10
	bl	ValueForKey
	mov	r1, r0
	mov	r0, r7
	bl	Q_stricmp
	cmp	r0, #0
	bne	.L3
	mov	r1, fp
	mov	r0, r10
	bl	FloatForKey
	mov	r2, #0
	ldr	r1, .L14+24
	mov	r6, r0
	mov	r0, r10
	bl	GetVectorForKey
	mov	r0, r10
	ldr	r1, .L14+28
	bl	ValueForKey
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r10, r0
	cmp	r2, #0
	beq	.L13
	ldr	r1, .L14+32
	bl	strstr
	cmp	r0, #0
	bne	.L5
	mov	r0, r10
	ldr	r1, .L14+36
	bl	strstr
	cmp	r0, #0
	bne	.L5
	mov	r0, r10
	ldr	r1, .L14+40
	bl	strstr
	cmp	r0, #0
	bne	.L7
	mov	r0, r10
	ldr	r1, .L14+44
	bl	strstr
	cmp	r0, #0
	beq	.L8
.L7:
	ldr	r3, [sp, #4]
	mov	r2, r6
	mov	r0, r10
	mov	r1, #0
	bl	InsertASEModel
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L9
.L2:
	ldr	r3, .L14+48
	ldr	r0, .L14+52
	ldr	r1, [r3]
	bl	qprintf
	ldr	r3, .L14+56
	ldr	r0, .L14+60
	ldr	r1, [r3]
	bl	qprintf
	ldr	r3, .L14+64
	ldr	r0, .L14+68
	ldr	r1, [r3]
	bl	qprintf
	ldr	r3, .L14+72
	ldr	r0, .L14+76
	ldr	r1, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	qprintf
.L5:
	mov	r2, r6
	mov	r0, r10
	mov	r1, #0
	ldr	r3, [sp, #4]
	bl	InsertMD3Model
	b	.L3
.L13:
	mov	r1, #0
	ldr	r0, .L14+80
	ldm	r1, {r1, r2, r3}
	bl	_printf
	b	.L3
.L8:
	mov	r1, r10
	ldr	r0, .L14+84
	bl	_printf
	b	.L3
.L15:
	.align	2
.L14:
	.word	num_entities
	.word	.LC0
	.word	entities
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	c_triangleModels
	.word	.LC12
	.word	c_triangleSurfaces
	.word	.LC13
	.word	c_triangleVertexes
	.word	.LC14
	.word	c_triangleIndexes
	.word	.LC15
	.word	.LC6
	.word	.LC11
	.size	AddTriangleModels, .-AddTriangleModels
	.comm	num_entities,4,4
	.comm	entities,4,4
	.comm	c_triangleVertexes,4,4
	.comm	c_triangleSurfaces,4,4
	.comm	c_triangleModels,4,4
	.comm	c_triangleIndexes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
