	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddTriangleModels              ## -- Begin function AddTriangleModels
	.p2align	4, 0x90
_AddTriangleModels:                     ## @AddTriangleModels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_num_entities@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	jl	LBB0_14
## %bb.1:
	movl	$1, %r15d
	movl	$4, %r12d
	movq	_entities@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_InsertMD3Model
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_num_entities@GOTPCREL(%rip), %r13
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_ValueForKey
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_FloatForKey
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_GetVectorForKey
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_ValueForKey
	cmpb	$0, (%rax)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_InsertASEModel
	jmp	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	__printf
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.11(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	__printf
	jmp	LBB0_12
LBB0_14:
	movq	_c_triangleModels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_c_triangleSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_c_triangleVertexes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.14(%rip), %rdi
	xorl	%eax, %eax
	callq	_qprintf
	movq	_c_triangleIndexes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"----- AddTriangleModels -----\n"

	.comm	_num_entities,4,2               ## @num_entities
	.comm	_entities,8,3                   ## @entities
L_.str.1:                               ## @.str.1
	.asciz	"misc_model"

L_.str.2:                               ## @.str.2
	.asciz	"classname"

L_.str.3:                               ## @.str.3
	.asciz	"angle"

L_.str.4:                               ## @.str.4
	.asciz	"origin"

L_.str.5:                               ## @.str.5
	.asciz	"model"

L_.str.6:                               ## @.str.6
	.asciz	"WARNING: misc_model at %i %i %i without a model key\n"

L_.str.7:                               ## @.str.7
	.asciz	".md3"

L_.str.8:                               ## @.str.8
	.asciz	".MD3"

L_.str.9:                               ## @.str.9
	.asciz	".ase"

L_.str.10:                              ## @.str.10
	.asciz	".ASE"

L_.str.11:                              ## @.str.11
	.asciz	"Unknown misc_model type: %s\n"

L_.str.12:                              ## @.str.12
	.asciz	"%5i triangle models\n"

	.comm	_c_triangleModels,4,2           ## @c_triangleModels
L_.str.13:                              ## @.str.13
	.asciz	"%5i triangle surfaces\n"

	.comm	_c_triangleSurfaces,4,2         ## @c_triangleSurfaces
L_.str.14:                              ## @.str.14
	.asciz	"%5i triangle vertexes\n"

	.comm	_c_triangleVertexes,4,2         ## @c_triangleVertexes
L_.str.15:                              ## @.str.15
	.asciz	"%5i triangle indexes\n"

	.comm	_c_triangleIndexes,4,2          ## @c_triangleIndexes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddTriangleModels              ; -- Begin function AddTriangleModels
	.p2align	2
_AddTriangleModels:                     ; @AddTriangleModels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qprintf
Lloh2:
	adrp	x27, _num_entities@GOTPAGE
Lloh3:
	ldr	x27, [x27, _num_entities@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.1:
	mov	w25, #1
	mov	w26, #4
Lloh4:
	adrp	x22, _entities@GOTPAGE
Lloh5:
	ldr	x22, [x22, _entities@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.2@PAGE
Lloh7:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x23, l_.str.4@PAGE
Lloh11:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh12:
	adrp	x24, l_.str.5@PAGE
Lloh13:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	fmov	s0, s8
	mov	x2, x19
	bl	_InsertMD3Model
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x27]
	add	x26, x26, #4
	cmp	x25, x8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x28, x8, x26
	mov	x0, x28
	mov	x1, x20
	bl	_ValueForKey
	mov	x1, x0
	mov	x0, x21
	bl	_Q_stricmp
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_FloatForKey
	fmov	s8, s0
	mov	x0, x28
	mov	x1, x23
	bl	_GetVectorForKey
	mov	x0, x28
	mov	x1, x24
	bl	_ValueForKey
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strstr
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	fmov	s0, s8
	mov	x2, x19
	bl	_InsertASEModel
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	__printf
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x28, [sp]
Lloh26:
	adrp	x0, l_.str.11@PAGE
Lloh27:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_12
LBB0_14:
Lloh28:
	adrp	x8, _c_triangleModels@GOTPAGE
Lloh29:
	ldr	x8, [x8, _c_triangleModels@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.12@PAGE
Lloh32:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_qprintf
Lloh33:
	adrp	x8, _c_triangleSurfaces@GOTPAGE
Lloh34:
	ldr	x8, [x8, _c_triangleSurfaces@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh36:
	adrp	x0, l_.str.13@PAGE
Lloh37:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_qprintf
Lloh38:
	adrp	x8, _c_triangleVertexes@GOTPAGE
Lloh39:
	ldr	x8, [x8, _c_triangleVertexes@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh41:
	adrp	x0, l_.str.14@PAGE
Lloh42:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_qprintf
Lloh43:
	adrp	x8, _c_triangleIndexes@GOTPAGE
Lloh44:
	ldr	x8, [x8, _c_triangleIndexes@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh46:
	adrp	x0, l_.str.15@PAGE
Lloh47:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_qprintf
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"----- AddTriangleModels -----\n"

	.comm	_num_entities,4,2               ; @num_entities
	.comm	_entities,8,3                   ; @entities
l_.str.1:                               ; @.str.1
	.asciz	"misc_model"

l_.str.2:                               ; @.str.2
	.asciz	"classname"

l_.str.3:                               ; @.str.3
	.asciz	"angle"

l_.str.4:                               ; @.str.4
	.asciz	"origin"

l_.str.5:                               ; @.str.5
	.asciz	"model"

l_.str.6:                               ; @.str.6
	.asciz	"WARNING: misc_model at %i %i %i without a model key\n"

l_.str.7:                               ; @.str.7
	.asciz	".md3"

l_.str.8:                               ; @.str.8
	.asciz	".MD3"

l_.str.9:                               ; @.str.9
	.asciz	".ase"

l_.str.10:                              ; @.str.10
	.asciz	".ASE"

l_.str.11:                              ; @.str.11
	.asciz	"Unknown misc_model type: %s\n"

l_.str.12:                              ; @.str.12
	.asciz	"%5i triangle models\n"

	.comm	_c_triangleModels,4,2           ; @c_triangleModels
l_.str.13:                              ; @.str.13
	.asciz	"%5i triangle surfaces\n"

	.comm	_c_triangleSurfaces,4,2         ; @c_triangleSurfaces
l_.str.14:                              ; @.str.14
	.asciz	"%5i triangle vertexes\n"

	.comm	_c_triangleVertexes,4,2         ; @c_triangleVertexes
l_.str.15:                              ; @.str.15
	.asciz	"%5i triangle indexes\n"

	.comm	_c_triangleIndexes,4,2          ; @c_triangleIndexes
.subsections_via_symbols
