	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmlab_serialise_model          ## -- Begin function dmlab_serialise_model
	.p2align	4, 0x90
_dmlab_serialise_model:                 ## @dmlab_serialise_model
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_MD3_IDENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LittleLong
	movl	%eax, (%rbx)
	movq	_MD3_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LittleLong
	movl	%eax, 4(%rbx)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %edx
	movq	%r15, %rdi
	callq	*16(%r13)
	movq	$0, 48(%rbx)
	movl	$1, %edi
	callq	_LittleLong
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	*(%r13)
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_LittleLong
	movl	%eax, 12(%rbx)
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %r12
	callq	*8(%r13)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_LittleLong
	movl	%eax, 16(%rbx)
	movq	$0, 40(%rbx)
	movl	$56, %edi
	callq	_LittleLong
	movl	%eax, 20(%rbx)
	movl	$88, %edi
	callq	_LittleLong
	movl	%eax, 24(%rbx)
	leaq	88(,%r14,4), %r13
	movq	%r13, %rdi
	callq	_LittleLong
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, 28(%rbx)
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	88(%rax), %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_SerialiseTag
	incq	%r15
	addq	$4, %rbx
	cmpq	%r15, %r14
	jne	LBB0_2
LBB0_3:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	leaq	-64(%rbp), %rdi
	callq	_AABBClear
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %r13
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_SerialiseSurface
	movq	(%r13), %rdi
	callq	_LittleLong
	cltq
	leaq	(%r13,%rax,4), %r13
	incq	%rbx
	cmpq	%rbx, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.6:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	leaq	-64(%rbp), %rdi
	callq	_AABBUpdateRadius
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	(%rax), %rdi
	subq	(%rcx), %rdi
	callq	_LittleFloat
	movq	80(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_LittleFloat
	movq	80(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	72(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	8(%rax), %rdi
	subq	8(%rcx), %rdi
	callq	_LittleFloat
	movq	80(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rdi
	addq	8(%rax), %rdi
	callq	_LittleFloat
	movq	80(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	-56(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	72(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	16(%rax), %rdi
	subq	16(%rcx), %rdi
	callq	_LittleFloat
	movq	80(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	16(%rcx), %rdi
	addq	16(%rax), %rdi
	callq	_LittleFloat
	movq	80(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 16(%rcx)
	movq	-56(%rbp), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	72(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	-64(%rbp), %rdi
	callq	_LittleFloat
	movq	%rax, 64(%rbx)
	movl	36(%rbx), %esi
	movl	56(%rbx), %edi
	movl	$4, %edx
	callq	_Q_strncpyz
	subq	%rbx, %r13
	sarq	$2, %r13
	movq	%r13, %rdi
	callq	_LittleLong
	movl	%eax, 32(%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD3_IDENT,8,3                  ## @MD3_IDENT
	.comm	_MD3_VERSION,8,3                ## @MD3_VERSION
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmlab_serialise_model          ; -- Begin function dmlab_serialise_model
	.p2align	2
_dmlab_serialise_model:                 ; @dmlab_serialise_model
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MD3_IDENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD3_IDENT@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_LittleLong
	str	w0, [x19]
Lloh3:
	adrp	x8, _MD3_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD3_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_LittleLong
	str	w0, [x19, #4]
	ldr	x8, [x22, #16]
Lloh6:
	adrp	x9, _MAX_QPATH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_QPATH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldr	w2, [x19, #36]
	mov	x0, x21
	blr	x8
	str	xzr, [x19, #48]
	mov	w0, #1
	bl	_LittleLong
	str	w0, [x19, #8]
	ldr	x8, [x22]
	mov	x0, x21
	blr	x8
	mov	x20, x0
	bl	_LittleLong
	str	w0, [x19, #12]
	ldr	x8, [x22, #8]
	mov	x0, x21
	blr	x8
	mov	x23, x0
	bl	_LittleLong
	str	w0, [x19, #16]
	str	xzr, [x19, #40]
	mov	w0, #56
	bl	_LittleLong
	str	w0, [x19, #20]
	mov	w0, #88
	bl	_LittleLong
	str	w0, [x19, #24]
	lsl	x8, x20, #2
	add	x24, x8, #88
	mov	x0, x24
	bl	_LittleLong
	str	w0, [x19, #28]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x25, #0
	add	x26, x19, #88
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	bl	_SerialiseTag
	add	x25, x25, #1
	add	x26, x26, #4
	cmp	x20, x25
	b.ne	LBB0_2
LBB0_3:
	add	x0, sp, #8
	bl	_AABBClear
	add	x20, x19, x24
	cbz	x23, LBB0_6
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x4, sp, #8
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_SerialiseSurface
	ldr	x0, [x20]
	bl	_LittleLong
	add	x20, x20, w0, sxtw #2
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_5
LBB0_6:
	add	x0, sp, #8
	bl	_AABBUpdateRadius
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8]
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_LittleFloat
	ldr	x8, [x19, #80]
	ldr	x8, [x8]
	str	x0, [x8]
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_LittleFloat
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [sp, #16]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x19, #72]
	str	x0, [x8]
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x9, #8]
	sub	x0, x8, x9
	bl	_LittleFloat
	ldr	x8, [x19, #80]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x9, #8]
	add	x0, x9, x8
	bl	_LittleFloat
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x19, #72]
	str	x0, [x8, #8]
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	sub	x0, x8, x9
	bl	_LittleFloat
	ldr	x8, [x19, #80]
	ldr	x8, [x8]
	str	x0, [x8, #16]
	ldp	x8, x9, [sp, #16]
	ldr	x8, [x8, #16]
	ldr	x9, [x9, #16]
	add	x0, x9, x8
	bl	_LittleFloat
	ldr	x8, [x19, #80]
	ldr	x8, [x8, #8]
	str	x0, [x8, #16]
	ldr	x8, [sp, #16]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x19, #72]
	str	x0, [x8, #16]
	ldr	x0, [sp, #8]
	bl	_LittleFloat
	str	x0, [x19, #64]
	ldr	w0, [x19, #56]
	ldr	w1, [x19, #36]
	mov	w2, #4
	bl	_Q_strncpyz
	sub	x8, x20, x19
	asr	x0, x8, #2
	bl	_LittleLong
	str	w0, [x19, #32]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MD3_IDENT,8,3                  ; @MD3_IDENT
	.comm	_MD3_VERSION,8,3                ; @MD3_VERSION
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
.subsections_via_symbols
