	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SubdivideMeshQuads             ## -- Begin function SubdivideMeshQuads
	.p2align	4, 0x90
_SubdivideMeshQuads:                    ## @SubdivideMeshQuads
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -368(%rbp)                ## 8-byte Spill
	movq	%rdx, -360(%rbp)                ## 8-byte Spill
	movl	%esi, -140(%rbp)                ## 4-byte Spill
	movss	%xmm0, -252(%rbp)               ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, -336(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_EXPANDED_AXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	imulq	%rax, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r10
	movl	(%rbx), %r8d
	movl	%r8d, -160(%rbp)
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	movl	4(%rbx), %r12d
	movl	%r12d, -156(%rbp)
	testl	%r8d, %r8d
	movq	%r10, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	leaq	-1(%r12), %rax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	movl	%r12d, %eax
	andl	$3, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r9d
	andl	$-4, %r9d
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	(%r10,%rdx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	shlq	$4, %rbx
	leaq	(%r8,%r8), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r8, %rcx
	shlq	$4, %rcx
	leaq	(%r10,%rdx,4), %rax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%r10,%rax,4), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	leaq	(%r8,%r8,2), %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	leaq	(,%r8,4), %r11
	leaq	(,%rdx,4), %r13
	xorl	%r14d, %r14d
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	addq	$4, %r14
	addq	$4, -56(%rbp)                   ## 8-byte Folded Spill
	movq	%rdx, %rax
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%r8, %rdx
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rdx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rsi
	cmpq	$3, -248(%rbp)                  ## 8-byte Folded Reload
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rsi,%rax,4), %r11
	leaq	(%rsi,%r8,4), %r12
	movq	-224(%rbp), %rax                ## 8-byte Reload
	leaq	(%rsi,%rax,4), %r13
	movq	%r10, %rdi
	movq	%rsi, %r10
	movq	-232(%rbp), %r8                 ## 8-byte Reload
	movq	-240(%rbp), %r9                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r10,%r14), %eax
	movl	%eax, (%rdi,%r14)
	movl	(%r12,%r14), %eax
	movl	%eax, (%r9,%r14)
	movl	(%r11,%r14), %eax
	movl	%eax, (%rsi,%r14)
	movl	(%r13,%r14), %eax
	movl	%eax, (%r8,%r14)
	addq	$4, %r15
	addq	%rbx, %rsi
	addq	%rcx, %r11
	addq	%rbx, %r9
	addq	%rcx, %r12
	addq	%rbx, %r8
	addq	%rcx, %r13
	addq	%rcx, %r10
	addq	%rbx, %rdi
	cmpq	%r15, %rdx
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-168(%rbp), %r8                 ## 8-byte Reload
	movq	%rdx, %r9
	movq	-128(%rbp), %r11                ## 8-byte Reload
	movq	-120(%rbp), %r13                ## 8-byte Reload
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rax
	imulq	%r15, %rax
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rsi
	imulq	-104(%rbp), %r15                ## 8-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,4), %rdi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi), %edx
	movl	%edx, (%rdi)
	addq	%r11, %rsi
	addq	%r13, %rdi
	decq	%rax
	jne	LBB0_10
	jmp	LBB0_2
LBB0_11:
	movl	-140(%rbp), %eax                ## 4-byte Reload
	movq	_MAX_EXPANDED_AXIS@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jge	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %r8d
LBB0_13:
	movl	-140(%rbp), %eax                ## 4-byte Reload
	subl	%r8d, %eax
	leal	-1(%r8), %ecx
	cltd
	idivl	%ecx
	movl	%eax, -328(%rbp)                ## 4-byte Spill
	cmpl	$2, %r8d
	jl	LBB0_71
## %bb.14:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(,%rax,4), %r13
	leaq	-12(%r10), %rax
	movq	%rax, -352(%rbp)                ## 8-byte Spill
	leaq	4(%r10), %rax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	movq	%r13, -320(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	movq	-200(%rbp), %rdx                ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rcx
	addl	%ebx, %edx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax), %rax
	decq	%rax
	cmpq	%rax, %rcx
	jge	LBB0_71
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
                                        ##     Child Loop BB0_43 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
                                        ##     Child Loop BB0_50 Depth 2
                                        ##     Child Loop BB0_53 Depth 2
                                        ##       Child Loop BB0_61 Depth 3
                                        ##       Child Loop BB0_66 Depth 3
                                        ##       Child Loop BB0_68 Depth 3
	movslq	%edx, %r11
	testl	%r12d, %r12d
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	movq	%rdx, -200(%rbp)                ## 8-byte Spill
	jle	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	leal	1(%rdx), %eax
	movslq	%eax, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %r15
	xorps	%xmm0, %xmm0
	movq	%r10, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	movl	(%rbx,%r14,4), %edi
	movl	(%rbx,%r11,4), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	maxss	-72(%rbp), %xmm0                ## 4-byte Folded Reload
	incq	%r12
	addq	%r13, %rbx
	cmpq	%r15, %r12
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	xorps	%xmm0, %xmm0
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	divss	-252(%rbp), %xmm0               ## 4-byte Folded Reload
	cvttss2si	%xmm0, %r14d
	movl	-328(%rbp), %eax                ## 4-byte Reload
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	leal	1(%r14), %ebx
	movq	-360(%rbp), %rax                ## 8-byte Reload
	movl	%ebx, (%rax,%rcx,4)
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-160(%rbp), %ecx
	leal	(%rcx,%r14), %eax
	movl	%eax, -160(%rbp)
	leal	(%r14,%rdx), %esi
	movl	%esi, -240(%rbp)                ## 4-byte Spill
	movslq	%esi, %r12
	cmpl	%edx, %ecx
	jle	LBB0_44
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_originalWidths@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movslq	%eax, %rdi
	movl	%r14d, %r8d
	leaq	-1(%rdi), %rax
	cmpq	%r12, %rax
	movq	%r12, %rcx
	cmovlq	%rax, %rcx
	movq	%rdi, %r11
	subq	%rcx, %r11
	cmpq	$8, %r11
	jb	LBB0_41
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %r15d
	cmpq	%r12, %rax
	cmovgeq	%r12, %rax
	notq	%rax
	addq	%rdi, %rax
	movl	$4, %ecx
	mulq	%rcx
	leaq	-4(%rsi,%rdi,4), %rbx
	seto	%cl
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_39
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	testb	%cl, %cl
	jne	LBB0_39
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rdi, %rdx
	subq	%r8, %rdx
	leaq	(%rsi,%rdx,4), %rbx
	addq	$-4, %rbx
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_39
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	testb	%cl, %cl
	movl	%r15d, %ebx
	jne	LBB0_41
## %bb.30:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	(,%r8,4), %rax
	negq	%rax
	cmpq	$32, %rax
	jb	LBB0_41
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r11, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rcx
	movq	%rcx, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r10, %rdx
	movabsq	$4611686018427387902, %rcx      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%rcx, %rdx
	leaq	(%rsi,%rdi,4), %rcx
	leaq	(%rsi,%rdi,4), %rbx
	addq	$-16, %rbx
	addq	%rax, %rcx
	addq	$-16, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rcx,%rax,4), %xmm0
	movups	(%rcx,%rax,4), %xmm1
	movups	%xmm1, (%rbx,%rax,4)
	movups	%xmm0, -16(%rbx,%rax,4)
	movups	-48(%rcx,%rax,4), %xmm0
	movups	-32(%rcx,%rax,4), %xmm1
	movups	%xmm1, -32(%rbx,%rax,4)
	movups	%xmm0, -48(%rbx,%rax,4)
	addq	$-16, %rax
	addq	$-2, %rdx
	jne	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_17 Depth=1
	negq	%rax
	movl	%r15d, %ebx
	testb	$1, %r10b
	je	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_17 Depth=1
	notq	%rax
	addq	%rdi, %rax
	movq	%rax, %rcx
	subq	%r8, %rcx
	movups	-28(%rsi,%rcx,4), %xmm0
	movups	-12(%rsi,%rcx,4), %xmm1
	movups	%xmm1, -12(%rsi,%rax,4)
	movups	%xmm0, -28(%rsi,%rax,4)
LBB0_36:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%r9, %r11
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_17 Depth=1
	subq	%r9, %rdi
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-56(%rbp), %r11                 ## 8-byte Reload
LBB0_42:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$-4, %rsi
	shlq	$2, %r8
	movq	%rsi, %rax
	subq	%r8, %rax
	.p2align	4, 0x90
LBB0_43:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %ecx
	movl	%ecx, (%rsi,%rdi,4)
	leaq	-1(%rdi), %rcx
	movq	%rcx, %rdi
	cmpq	%r12, %rcx
	jg	LBB0_43
LBB0_44:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_originalWidths@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %r15d
	leaq	-1(%r15), %rdi
	leaq	-2(%r15), %rcx
	movl	%edi, %edx
	andl	$3, %edx
	movl	$1, %esi
	cmpq	$3, %rcx
	jb	LBB0_48
## %bb.45:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %r8d
	andq	$-4, %rdi
	leaq	(%rax,%r11,4), %rcx
	addq	$16, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r11,4), %ebx
	movl	%ebx, -12(%rcx,%rsi,4)
	movl	(%rax,%r11,4), %ebx
	movl	%ebx, -8(%rcx,%rsi,4)
	movl	(%rax,%r11,4), %ebx
	movl	%ebx, -4(%rcx,%rsi,4)
	movl	(%rax,%r11,4), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rsi
	movl	%r8d, %ebx
LBB0_48:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	%r11, %rsi
	leaq	(%rax,%rsi,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_50:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r11,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_50
LBB0_51:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	-156(%rbp), %r12
	testq	%r12, %r12
	jle	LBB0_15
## %bb.52:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, -324(%rbp)                ## 4-byte Spill
	cvtsi2ss	%ebx, %xmm2
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	leal	1(%rdx), %eax
	cltq
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movslq	%r14d, %rcx
	movl	-160(%rbp), %eax
	decl	%eax
	movl	%eax, -224(%rbp)                ## 4-byte Spill
	movslq	%eax, %rdi
	movq	%rdx, %rax
	notq	%rax
	addq	%rdi, %rax
	movq	%rdi, %r8
	subq	%rcx, %r8
	movq	%rcx, -272(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %r9
	movq	%r9, %rbx
	negq	%rbx
	movq	%rbx, -296(%rbp)                ## 8-byte Spill
	movq	%rdi, %rsi
	subq	%rdx, %rsi
	leaq	-8(%rsi), %rdx
	movq	%rdx, -288(%rbp)                ## 8-byte Spill
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	$4, %edx
	mulq	%rdx
	seto	-216(%rbp)                      ## 1-byte Folded Spill
	negq	%rax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	movq	%r10, %rbx
	subq	%r9, %rbx
	movq	%rsi, -264(%rbp)                ## 8-byte Spill
	andq	$-8, %rsi
	movq	%rdi, %rax
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	subq	%rsi, %rax
	movq	%rax, -280(%rbp)                ## 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	movabsq	$4611686018427387902, %rax      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%rax, %rcx
	movq	%rcx, -376(%rbp)                ## 8-byte Spill
	movq	-352(%rbp), %rax                ## 8-byte Reload
	movq	%r8, -312(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r8,4), %rcx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdi,4), %rdx
	movq	-344(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r11,4), %r8
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movss	%xmm2, -72(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_61 Depth 3
                                        ##       Child Loop BB0_66 Depth 3
                                        ##       Child Loop BB0_68 Depth 3
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	%rax, %r12
	imulq	-104(%rbp), %r12                ## 8-byte Folded Reload
	movl	-224(%rbp), %ecx                ## 4-byte Reload
	cmpl	-240(%rbp), %ecx                ## 4-byte Folded Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	jle	LBB0_67
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$8, -264(%rbp)                  ## 8-byte Folded Reload
	jb	LBB0_65
## %bb.55:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	%r8, %rax
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	leaq	(%r12,%r8), %rcx
	movq	-312(%rbp), %rdx                ## 8-byte Reload
	addq	%r12, %rdx
	leaq	(%r10,%rcx,4), %rcx
	leaq	(%r10,%rdx,4), %r9
	movq	-304(%rbp), %r14                ## 8-byte Reload
	leaq	(%rcx,%r14), %rsi
	cmpq	%rcx, %rsi
	seta	%dl
	orb	-216(%rbp), %dl                 ## 1-byte Folded Reload
	leaq	(%r9,%r14), %rcx
	cmpq	%r9, %rcx
	seta	%sil
	movq	%r8, %rcx
	movq	%rax, %r8
	testb	%dl, %dl
	jne	LBB0_65
## %bb.56:                              ##   in Loop: Header=BB0_53 Depth=2
	orb	-216(%rbp), %sil                ## 1-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_65
## %bb.57:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$32, -296(%rbp)                 ## 8-byte Folded Reload
	jb	LBB0_65
## %bb.58:                              ##   in Loop: Header=BB0_53 Depth=2
	cmpq	$8, -288(%rbp)                  ## 8-byte Folded Reload
	jae	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_53 Depth=2
	xorl	%ecx, %ecx
	testb	$1, -184(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_63
	jmp	LBB0_64
LBB0_60:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-376(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-136(%rbp), %rax                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_61:                                ##   Parent Loop BB0_17 Depth=1
                                        ##     Parent Loop BB0_53 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movups	-16(%rsi,%rcx,4), %xmm0
	movups	(%rsi,%rcx,4), %xmm1
	movups	%xmm1, (%rax,%rcx,4)
	movups	%xmm0, -16(%rax,%rcx,4)
	movups	-48(%rsi,%rcx,4), %xmm0
	movups	-32(%rsi,%rcx,4), %xmm1
	movups	%xmm1, -32(%rax,%rcx,4)
	movups	%xmm0, -48(%rax,%rcx,4)
	addq	$-16, %rcx
	addq	$-2, %rdx
	jne	LBB0_61
## %bb.62:                              ##   in Loop: Header=BB0_53 Depth=2
	negq	%rcx
	testb	$1, -184(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_64
LBB0_63:                                ##   in Loop: Header=BB0_53 Depth=2
	leaq	(%r10,%r12,4), %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	subq	%rcx, %rsi
	movq	%rsi, %rcx
	subq	-272(%rbp), %rcx                ## 8-byte Folded Reload
	movups	-28(%rdx,%rcx,4), %xmm0
	movups	-12(%rdx,%rcx,4), %xmm1
	movups	%xmm1, -12(%rdx,%rsi,4)
	movups	%xmm0, -28(%rdx,%rsi,4)
LBB0_64:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-280(%rbp), %rcx                ## 8-byte Reload
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, -264(%rbp)                ## 8-byte Folded Reload
	je	LBB0_67
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdx
	.p2align	4, 0x90
LBB0_66:                                ##   Parent Loop BB0_17 Depth=1
                                        ##     Parent Loop BB0_53 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rbx,%rcx,4), %esi
	movl	%esi, (%rdx)
	decq	%rcx
	addq	$-4, %rdx
	cmpq	%rdi, %rcx
	jg	LBB0_66
LBB0_67:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	leaq	(%r10,%r12,4), %rax
	leaq	(%rax,%r11,4), %r14
	movq	-232(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r12
	movl	$1, %ebx
	movq	%r8, -248(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	.p2align	4, 0x90
LBB0_68:                                ##   Parent Loop BB0_17 Depth=1
                                        ##     Parent Loop BB0_53 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	divss	%xmm2, %xmm0
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_LerpDrawVertAmount
	movss	-72(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	incq	%rbx
	addq	$4, %r13
	cmpq	%rbx, %r15
	jne	LBB0_68
## %bb.69:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	movq	-320(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	%r13, %rcx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	addq	%r13, %rdx
	addq	%r13, -120(%rbp)                ## 8-byte Folded Spill
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	addq	%r13, %rbx
	movq	-248(%rbp), %r8                 ## 8-byte Reload
	addq	%r13, %r8
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r12, %rax
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	jl	LBB0_53
## %bb.70:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	movl	-324(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_16
LBB0_39:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movl	%r15d, %ebx
	jmp	LBB0_42
LBB0_40:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%eax, %eax
	testb	$1, %r10b
	jne	LBB0_35
	jmp	LBB0_36
LBB0_71:
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %ecx
	movl	-140(%rbp), %eax                ## 4-byte Reload
	subl	%ecx, %eax
	leal	-1(%rcx), %esi
	cltd
	idivl	%esi
	movl	%eax, -280(%rbp)                ## 4-byte Spill
	cmpl	$2, %ecx
	jl	LBB0_122
## %bb.72:
	movl	-160(%rbp), %esi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(,%rax,4), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rax, %r14
	shlq	$4, %r14
	negq	%r14
	xorl	%r11d, %r11d
	xorl	%edx, %edx
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_75
	.p2align	4, 0x90
LBB0_73:                                ##   in Loop: Header=BB0_75 Depth=1
	movq	-184(%rbp), %rdx                ## 8-byte Reload
LBB0_74:                                ##   in Loop: Header=BB0_75 Depth=1
	incq	%r11
	addl	%r9d, %edx
	movq	-192(%rbp), %rax                ## 8-byte Reload
	movslq	4(%rax), %rax
	decq	%rax
	cmpq	%rax, %r11
	jge	LBB0_121
LBB0_75:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_77 Depth 2
                                        ##     Child Loop BB0_91 Depth 2
                                        ##     Child Loop BB0_98 Depth 2
                                        ##     Child Loop BB0_101 Depth 2
                                        ##     Child Loop BB0_105 Depth 2
                                        ##     Child Loop BB0_108 Depth 2
                                        ##       Child Loop BB0_111 Depth 3
                                        ##       Child Loop BB0_115 Depth 3
                                        ##       Child Loop BB0_117 Depth 3
	movslq	%edx, %r15
	testl	%esi, %esi
	movq	%r11, -176(%rbp)                ## 8-byte Spill
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	jle	LBB0_79
## %bb.76:                              ##   in Loop: Header=BB0_75 Depth=1
	leal	1(%r15), %eax
	cltq
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	imulq	%rcx, %rax
	leaq	(%r10,%rax,4), %r14
	movq	%r15, %rax
	imulq	%rcx, %rax
	leaq	(%r10,%rax,4), %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r13
	xorps	%xmm0, %xmm0
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_77:                                ##   Parent Loop BB0_75 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	movl	(%r14,%rbx,4), %edi
	movl	(%r12,%rbx,4), %esi
	callq	_VectorSubtract
	callq	_VectorLength
	maxss	-72(%rbp), %xmm0                ## 4-byte Folded Reload
	incq	%rbx
	cmpq	%r13, %rbx
	jl	LBB0_77
## %bb.78:                              ##   in Loop: Header=BB0_75 Depth=1
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	-176(%rbp), %r11                ## 8-byte Reload
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_80
	.p2align	4, 0x90
LBB0_79:                                ##   in Loop: Header=BB0_75 Depth=1
	xorps	%xmm0, %xmm0
LBB0_80:                                ##   in Loop: Header=BB0_75 Depth=1
	divss	-252(%rbp), %xmm0               ## 4-byte Folded Reload
	cvttss2si	%xmm0, %r12d
	movl	-280(%rbp), %eax                ## 4-byte Reload
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	leal	1(%r12), %r9d
	movq	-368(%rbp), %rax                ## 8-byte Reload
	movl	%r9d, (%rax,%r11,4)
	testl	%r12d, %r12d
	jle	LBB0_74
## %bb.81:                              ##   in Loop: Header=BB0_75 Depth=1
	movl	-156(%rbp), %ecx
	leal	(%rcx,%r12), %eax
	movl	%eax, -156(%rbp)
	leal	(%r12,%rdx), %esi
	movl	%esi, -240(%rbp)                ## 4-byte Spill
	movslq	%esi, %r13
	cmpl	%edx, %ecx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_99
## %bb.82:                              ##   in Loop: Header=BB0_75 Depth=1
	movq	%r13, %rdx
	movl	%r9d, %r13d
	movq	_originalHeights@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movslq	%eax, %rdi
	movl	%r12d, %r8d
	leaq	-1(%rdi), %rax
	cmpq	%rdx, %rax
	movq	%rdx, %rcx
	cmovlq	%rax, %rcx
	movq	%rdi, %r9
	subq	%rcx, %r9
	cmpq	$8, %r9
	jae	LBB0_84
## %bb.83:                              ##   in Loop: Header=BB0_75 Depth=1
	movl	%r13d, %r9d
	movq	%rdx, %r13
	jmp	LBB0_97
LBB0_84:                                ##   in Loop: Header=BB0_75 Depth=1
	cmpq	%rdx, %rax
	cmovgeq	%rdx, %rax
	notq	%rax
	addq	%rdi, %rax
	movl	$4, %ecx
	mulq	%rcx
	leaq	-4(%rsi,%rdi,4), %rbx
	seto	%cl
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_96
## %bb.85:                              ##   in Loop: Header=BB0_75 Depth=1
	testb	%cl, %cl
	jne	LBB0_96
## %bb.86:                              ##   in Loop: Header=BB0_75 Depth=1
	movq	%rdi, %rdx
	subq	%r8, %rdx
	leaq	(%rsi,%rdx,4), %rbx
	addq	$-4, %rbx
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	%rbx, %rdx
	ja	LBB0_96
## %bb.87:                              ##   in Loop: Header=BB0_75 Depth=1
	testb	%cl, %cl
	jne	LBB0_96
## %bb.88:                              ##   in Loop: Header=BB0_75 Depth=1
	leaq	(,%r8,4), %rax
	negq	%rax
	cmpq	$32, %rax
	jb	LBB0_96
## %bb.89:                              ##   in Loop: Header=BB0_75 Depth=1
	movq	%r9, %r10
	andq	$-8, %r10
	leaq	-8(%r10), %rcx
	movq	%rcx, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rcx, %rcx
	je	LBB0_120
## %bb.90:                              ##   in Loop: Header=BB0_75 Depth=1
	movq	%r11, %rdx
	movabsq	$4611686018427387902, %rcx      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%rcx, %rdx
	leaq	(%rsi,%rdi,4), %rcx
	leaq	(%rsi,%rdi,4), %rbx
	addq	$-16, %rbx
	addq	%rax, %rcx
	addq	$-16, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_91:                                ##   Parent Loop BB0_75 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rcx,%rax,4), %xmm0
	movups	(%rcx,%rax,4), %xmm1
	movups	%xmm1, (%rbx,%rax,4)
	movups	%xmm0, -16(%rbx,%rax,4)
	movups	-48(%rcx,%rax,4), %xmm0
	movups	-32(%rcx,%rax,4), %xmm1
	movups	%xmm1, -32(%rbx,%rax,4)
	movups	%xmm0, -48(%rbx,%rax,4)
	addq	$-16, %rax
	addq	$-2, %rdx
	jne	LBB0_91
## %bb.92:                              ##   in Loop: Header=BB0_75 Depth=1
	negq	%rax
	testb	$1, %r11b
	je	LBB0_94
LBB0_93:                                ##   in Loop: Header=BB0_75 Depth=1
	notq	%rax
	addq	%rdi, %rax
	movq	%rax, %rcx
	subq	%r8, %rcx
	movups	-28(%rsi,%rcx,4), %xmm0
	movups	-12(%rsi,%rcx,4), %xmm1
	movups	%xmm1, -12(%rsi,%rax,4)
	movups	%xmm0, -28(%rsi,%rax,4)
LBB0_94:                                ##   in Loop: Header=BB0_75 Depth=1
	cmpq	%r10, %r9
	movq	-176(%rbp), %r11                ## 8-byte Reload
	movl	%r13d, %r9d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_99
## %bb.95:                              ##   in Loop: Header=BB0_75 Depth=1
	subq	%r10, %rdi
	jmp	LBB0_97
LBB0_96:                                ##   in Loop: Header=BB0_75 Depth=1
	movl	%r13d, %r9d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_97:                                ##   in Loop: Header=BB0_75 Depth=1
	addq	$-4, %rsi
	shlq	$2, %r8
	movq	%rsi, %rax
	subq	%r8, %rax
	.p2align	4, 0x90
LBB0_98:                                ##   Parent Loop BB0_75 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %ecx
	movl	%ecx, (%rsi,%rdi,4)
	leaq	-1(%rdi), %rcx
	movq	%rcx, %rdi
	cmpq	%r13, %rcx
	jg	LBB0_98
LBB0_99:                                ##   in Loop: Header=BB0_75 Depth=1
	movq	_originalHeights@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r9d, %r8d
	leaq	-1(%r8), %rdi
	leaq	-2(%r8), %rcx
	movl	%edi, %edx
	andl	$3, %edx
	movl	$1, %esi
	cmpq	$3, %rcx
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	jb	LBB0_103
## %bb.100:                             ##   in Loop: Header=BB0_75 Depth=1
	andq	$-4, %rdi
	leaq	(%rax,%r15,4), %rcx
	addq	$16, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_101:                               ##   Parent Loop BB0_75 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r15,4), %ebx
	movl	%ebx, -12(%rcx,%rsi,4)
	movl	(%rax,%r15,4), %ebx
	movl	%ebx, -8(%rcx,%rsi,4)
	movl	(%rax,%r15,4), %ebx
	movl	%ebx, -4(%rcx,%rsi,4)
	movl	(%rax,%r15,4), %ebx
	movl	%ebx, (%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_101
## %bb.102:                             ##   in Loop: Header=BB0_75 Depth=1
	incq	%rsi
LBB0_103:                               ##   in Loop: Header=BB0_75 Depth=1
	testq	%rdx, %rdx
	je	LBB0_106
## %bb.104:                             ##   in Loop: Header=BB0_75 Depth=1
	addq	%r15, %rsi
	leaq	(%rax,%rsi,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_105:                               ##   Parent Loop BB0_75 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r15,4), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_105
LBB0_106:                               ##   in Loop: Header=BB0_75 Depth=1
	movslq	-160(%rbp), %rsi
	testq	%rsi, %rsi
	jle	LBB0_73
## %bb.107:                             ##   in Loop: Header=BB0_75 Depth=1
	movq	%r8, -232(%rbp)                 ## 8-byte Spill
	movl	%r9d, -272(%rbp)                ## 4-byte Spill
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r9d, %xmm1
	movq	%r15, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	imulq	%rcx, %rax
	leaq	(%r10,%rax,4), %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	leal	1(%r13), %eax
	cltq
	imulq	%rcx, %rax
	leaq	(%r10,%rax,4), %rax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	movslq	%r12d, %rdx
	movl	-156(%rbp), %eax
	decl	%eax
	movl	%eax, -264(%rbp)                ## 4-byte Spill
	movslq	%eax, %rdi
	movl	%edi, %eax
	subl	%r13d, %eax
	movq	%r13, %rbx
	notq	%rbx
	addq	%rdi, %rbx
	movq	%rbx, -304(%rbp)                ## 8-byte Spill
	andl	$3, %eax
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	subq	%rdx, %rax
	imulq	%rcx, %rax
	leaq	(%r10,%rax,4), %r12
	movq	%rcx, %rax
	movq	%rdi, -216(%rbp)                ## 8-byte Spill
	imulq	%rdi, %rax
	leaq	(%r10,%rax,4), %rax
	movq	$-3, %rdi
	subq	%rdx, %rdi
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	movq	$-2, %rdi
	subq	%rdx, %rdi
	movq	%rdi, -200(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	negq	%rdi
	movq	%rdi, -288(%rbp)                ## 8-byte Spill
	notq	%rdx
	movq	%rdx, -296(%rbp)                ## 8-byte Spill
	incq	%r15
	imulq	%rcx, %r15
	leaq	(%r10,%r15,4), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_108:                               ##   Parent Loop BB0_75 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_111 Depth 3
                                        ##       Child Loop BB0_115 Depth 3
                                        ##       Child Loop BB0_117 Depth 3
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	-264(%rbp), %eax                ## 4-byte Reload
	cmpl	-240(%rbp), %eax                ## 4-byte Folded Reload
	jle	LBB0_116
## %bb.109:                             ##   in Loop: Header=BB0_108 Depth=2
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_113
## %bb.110:                             ##   in Loop: Header=BB0_108 Depth=2
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_111:                               ##   Parent Loop BB0_75 Depth=1
                                        ##     Parent Loop BB0_108 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r12,%rax), %edx
	movl	%edx, (%rbx,%rax)
	incq	%rcx
	subq	%rsi, %rax
	cmpq	%rcx, %rdi
	jne	LBB0_111
## %bb.112:                             ##   in Loop: Header=BB0_108 Depth=2
	movq	-216(%rbp), %rax                ## 8-byte Reload
	subq	%rcx, %rax
LBB0_113:                               ##   in Loop: Header=BB0_108 Depth=2
	cmpq	$3, -304(%rbp)                  ## 8-byte Folded Reload
	jb	LBB0_116
## %bb.114:                             ##   in Loop: Header=BB0_108 Depth=2
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %r8
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	imulq	%rdi, %r8
	leaq	-3(%rax), %r9
	imulq	%rdi, %r9
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %r10
	imulq	%rdi, %r10
	leaq	-2(%rax), %r11
	imulq	%rdi, %r11
	movq	%rdi, %r15
	imulq	%rax, %r15
	movq	-288(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, %rcx
	imulq	%rdi, %rcx
	movq	-296(%rbp), %rdx                ## 8-byte Reload
	addq	%rax, %rdx
	imulq	%rdi, %rdx
	leaq	-1(%rax), %rsi
	imulq	%rdi, %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_115:                               ##   Parent Loop BB0_75 Depth=1
                                        ##     Parent Loop BB0_108 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdi,%rcx), %ebx
	movl	%ebx, (%rdi,%r15)
	movl	(%rdi,%rdx), %ebx
	movl	%ebx, (%rdi,%rsi)
	movl	(%rdi,%r10), %ebx
	movl	%ebx, (%rdi,%r11)
	movl	(%rdi,%r8), %ebx
	movl	%ebx, (%rdi,%r9)
	addq	$-4, %rax
	addq	%r14, %rdi
	cmpq	%r13, %rax
	jg	LBB0_115
LBB0_116:                               ##   in Loop: Header=BB0_108 Depth=2
	movq	%r12, -248(%rbp)                ## 8-byte Spill
	movq	-224(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-320(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r12
	movl	$1, %r13d
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	-232(%rbp), %r15                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_117:                               ##   Parent Loop BB0_75 Depth=1
                                        ##     Parent Loop BB0_108 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r13d, %xmm0
	divss	%xmm1, %xmm0
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_LerpDrawVertAmount
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	incq	%r13
	addq	%r14, %rbx
	cmpq	%r13, %r15
	jne	LBB0_117
## %bb.118:                             ##   in Loop: Header=BB0_108 Depth=2
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-248(%rbp), %r12                ## 8-byte Reload
	addq	$4, %r12
	movq	-136(%rbp), %rax                ## 8-byte Reload
	addq	$4, %rax
	addq	$4, -120(%rbp)                  ## 8-byte Folded Spill
	addq	$4, -168(%rbp)                  ## 8-byte Folded Spill
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, %rcx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	cmpq	%rsi, %rdx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_108
## %bb.119:                             ##   in Loop: Header=BB0_75 Depth=1
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-176(%rbp), %r11                ## 8-byte Reload
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movl	-272(%rbp), %r9d                ## 4-byte Reload
	jmp	LBB0_74
LBB0_120:                               ##   in Loop: Header=BB0_75 Depth=1
	xorl	%eax, %eax
	testb	$1, %r11b
	jne	LBB0_93
	jmp	LBB0_94
LBB0_121:
	movl	-156(%rbp), %r12d
LBB0_122:
	movq	%r10, -152(%rbp)
	cmpl	$2, %r12d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	jl	LBB0_125
## %bb.123:
	movl	-160(%rbp), %r14d
	leal	(,%r14,4), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movslq	%r12d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%rax,4), %r13
	shlq	$2, %rax
	movl	$1, %ebx
	movl	%r14d, %r15d
	.p2align	4, 0x90
LBB0_124:                               ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %r15
	leaq	(%r10,%r15,4), %rdi
	movq	%r13, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %r12
	callq	_memmove
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	%r12, %rax
	incq	%rbx
	addl	%r14d, %r15d
	addq	%r12, %r13
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jl	LBB0_124
LBB0_125:
	leaq	-160(%rbp), %rdi
	callq	_CopyMesh
	movq	-336(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_127
## %bb.126:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_127:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EXPANDED_AXIS,4,2          ## @MAX_EXPANDED_AXIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SubdivideMeshQuads: maxsize > MAX_EXPANDED_AXIS"

	.comm	_originalWidths,8,3             ## @originalWidths
	.comm	_originalHeights,8,3            ## @originalHeights
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SubdivideMeshQuads             ; -- Begin function SubdivideMeshQuads
	.p2align	2
_SubdivideMeshQuads:                    ; @SubdivideMeshQuads
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #256
	sub	x8, x29, #24
	stur	x3, [x8, #-256]                 ; 8-byte Folded Spill
	sub	x8, x29, #32
	stur	x2, [x8, #-256]                 ; 8-byte Folded Spill
	mov	x20, x1
	fmov	s8, s0
	mov	x24, x0
	mov	x8, sp
	sub	x9, x29, #80
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
Lloh3:
	adrp	x12, _MAX_EXPANDED_AXIS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_EXPANDED_AXIS@GOTPAGEOFF]
	ldr	w13, [x12]
	mul	x8, x13, x13
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldp	w8, w19, [x0]
	stp	w8, w19, [x29, #-128]
	stur	x13, [x29, #-168]               ; 8-byte Folded Spill
	lsl	x0, x13, #2
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	lsl	x10, x8, #2
	mov	x11, x21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x11, x11, #4
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x24, #8]
	add	x13, x13, x9, lsl #2
	mov	x14, x19
	mov	x15, x11
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x13]
	str	w16, [x15]
	add	x13, x13, x10
	add	x15, x15, x0
	subs	x14, x14, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	w9, [x12]
	cmp	w9, w20
	stur	x0, [x29, #-136]                ; 8-byte Folded Spill
	b.ge	LBB0_8
; %bb.7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	ldr	w8, [x24]
LBB0_8:
	stur	x21, [x29, #-152]               ; 8-byte Folded Spill
	cmp	w8, #2
	sub	x9, x29, #8
	stur	x24, [x9, #-256]                ; 8-byte Folded Spill
	sub	x9, x29, #84
	stur	w20, [x9, #-256]                ; 4-byte Folded Spill
	b.lt	LBB0_48
; %bb.9:
	mov	x25, #0
	mov	w26, #0
	sub	w9, w20, w8
	sub	w8, w8, #1
	ldur	x11, [x29, #-152]               ; 8-byte Folded Reload
	sub	x10, x11, #28
	sub	x12, x29, #64
	stur	x10, [x12, #-256]               ; 8-byte Folded Spill
	add	x10, x11, #4
	sub	x11, x29, #72
	stur	x10, [x11, #-256]               ; 8-byte Folded Spill
Lloh9:
	adrp	x27, _originalWidths@GOTPAGE
Lloh10:
	ldr	x27, [x27, _originalWidths@GOTPAGEOFF]
	mov	x28, x19
	sdiv	w8, w9, w8
	sub	x9, x29, #36
	stur	w8, [x9, #-256]                 ; 4-byte Folded Spill
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x19, x9
	sub	x8, x29, #8
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
	sub	x8, x29, #16
	ldur	x25, [x8, #-256]                ; 8-byte Folded Reload
	mov	x28, x9
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #1
	add	w26, w20, w26
	ldrsw	x8, [x24]
	sub	x8, x8, #1
	cmp	x25, x8
	b.ge	LBB0_49
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
                                        ;     Child Loop BB0_34 Depth 2
                                        ;       Child Loop BB0_40 Depth 3
                                        ;       Child Loop BB0_43 Depth 3
                                        ;       Child Loop BB0_45 Depth 3
	cmp	w19, #1
	b.lt	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x19, #0
	add	w8, w26, #1
	sxtw	x20, w8
	mov	x8, x26
	sxtw	x21, w8
	sxtw	x22, w28
	movi	d9, #0000000000000000
	ldur	x23, [x29, #-152]               ; 8-byte Folded Reload
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x23, x20, lsl #2]
	ldr	w1, [x23, x21, lsl #2]
	bl	_VectorSubtract
	bl	_VectorLength
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	fcmp	s0, s9
	fcsel	s9, s0, s9, gt
	add	x19, x19, #1
	add	x23, x23, x0
	cmp	x19, x22
	b.lt	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x19, x28
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	movi	d9, #0000000000000000
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	fdiv	s0, s9, s8
	fcvtzs	w8, s0
	sub	x9, x29, #36
	ldur	w9, [x9, #-256]                 ; 4-byte Folded Reload
	cmp	w9, w8
	csel	w8, w9, w8, lt
	add	w20, w8, #1
	sub	x9, x29, #32
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	str	w20, [x9, x25, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w9, [x29, #-128]
	add	w10, w9, w8
	stur	w10, [x29, #-128]
	add	w11, w8, w26
	stur	x11, [x29, #-160]               ; 8-byte Folded Spill
	cmp	w9, w26
	b.le	LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x27]
	sxtw	x11, w10
	ldur	x10, [x29, #-160]               ; 8-byte Folded Reload
	sxtw	x10, w10
	sub	x13, x11, #1
	cmp	x13, x10
	csel	x12, x13, x10, lt
	sub	x12, x11, x12
	cmp	x12, #16
	b.lo	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	x13, x10
	csel	x13, x13, x10, lt
	mvn	x13, x13
	add	x15, x13, x11
	sub	x14, x9, #4
	add	x16, x14, x11, lsl #2
	cmp	xzr, x15, lsr #62
	cset	w13, ne
	lsl	x15, x15, #2
	sub	x17, x16, x15
	cmp	x17, x16
	b.hi	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	tbnz	w13, #0, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x16, x11, x8
	add	x14, x14, x16, lsl #2
	sub	x15, x14, x15
	cmp	x15, x14
	b.hi	LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	tbnz	w13, #0, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_12 Depth=1
	neg	x13, x8, lsl #2
	cmp	x13, #64
	b.lo	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	and	x14, x12, #0xfffffffffffffff0
	sub	x15, x11, x14
	add	x11, x9, x11, lsl #2
	sub	x11, x11, #32
	mov	x16, x14
LBB0_26:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x17, x11, x13
	ldp	q1, q0, [x17]
	ldp	q3, q2, [x17, #-32]
	stp	q1, q0, [x11]
	stp	q3, q2, [x11, #-32]
	sub	x11, x11, #64
	sub	x16, x16, #16
	cbnz	x16, LBB0_26
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x11, x15
	cmp	x12, x14
	b.eq	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x11, x11, #1
	sub	x12, x9, x8, lsl #2
LBB0_29:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x11, #2
	ldr	w14, [x12, x13]
	str	w14, [x9, x13]
	sub	x13, x11, #1
	cmp	x11, x10
	mov	x11, x13
	b.gt	LBB0_29
LBB0_30:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x9, x29, #16
	stur	x25, [x9, #-256]                ; 8-byte Folded Spill
	ldr	x9, [x27]
	sxtw	x13, w26
	add	x10, x9, w26, sxtw #2
	add	x10, x10, #4
	sub	x11, x20, #1
LBB0_31:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x9, x13, lsl #2]
	str	w12, [x10], #4
	subs	x11, x11, #1
	b.ne	LBB0_31
; %bb.32:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	w9, [x29, #-124]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.33:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x10, x29, #48
	stur	x26, [x10, #-256]               ; 8-byte Folded Spill
	mov	x21, #0
	sub	x10, x29, #56
	stur	x9, [x10, #-256]                ; 8-byte Folded Spill
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x11, w9
	scvtf	s9, w20
	ldur	x10, [x29, #-160]               ; 8-byte Folded Reload
	add	w9, w10, #1
	sxtw	x9, w9
	stp	x9, x11, [x29, #-184]           ; 16-byte Folded Spill
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x9, w8
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	sxtw	x22, w10
	ldur	w10, [x29, #-128]
	sub	w10, w10, #1
	sxtw	x14, w10
	mvn	x11, x22
	sbfiz	x8, x8, #2, #32
	add	x11, x11, x14
	sub	x9, x14, x9
	stur	x9, [x29, #-232]                ; 8-byte Folded Spill
	cmp	xzr, x11, lsr #62
	neg	x9, x8
	stur	x9, [x29, #-224]                ; 8-byte Folded Spill
	sub	x9, x14, x22
	neg	x11, x11, lsl #2
	stur	x11, [x29, #-240]               ; 8-byte Folded Spill
	cset	w11, ne
	stur	w11, [x29, #-216]               ; 4-byte Folded Spill
	stur	x9, [x29, #-208]                ; 8-byte Folded Spill
	and	x9, x9, #0xfffffffffffffff0
	stur	x9, [x29, #-248]                ; 8-byte Folded Spill
	sub	x9, x14, x9
	stur	x9, [x29, #-256]                ; 8-byte Folded Spill
	sub	x9, x29, #64
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	add	x28, x9, w10, sxtw #2
	ldur	x9, [x29, #-152]                ; 8-byte Folded Reload
	sub	x19, x9, x8
	sub	x8, x29, #72
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	add	x27, x8, x13, lsl #2
	mov	x17, x9
	stp	x13, x14, [x29, #-200]          ; 16-byte Folded Spill
LBB0_34:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_40 Depth 3
                                        ;       Child Loop BB0_43 Depth 3
                                        ;       Child Loop BB0_45 Depth 3
	ldp	x8, x9, [x29, #-168]            ; 16-byte Folded Reload
	mul	x8, x21, x8
	cmp	w14, w9
	ldur	x12, [x29, #-152]               ; 8-byte Folded Reload
	b.le	LBB0_44
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	mov	x9, x14
	ldur	x10, [x29, #-208]               ; 8-byte Folded Reload
	cmp	x10, #16
	b.lo	LBB0_42
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x9, x8, x14
	add	x9, x12, x9, lsl #2
	ldp	x15, x10, [x29, #-240]          ; 16-byte Folded Reload
	add	x10, x10, x8
	add	x10, x12, x10, lsl #2
	add	x11, x9, x15
	cmp	x11, x9
	cset	w9, hi
	ldur	w11, [x29, #-216]               ; 4-byte Folded Reload
	orr	w11, w9, w11
	add	x9, x10, x15
	cmp	x9, x10
	cset	w10, hi
	mov	x9, x14
	tbnz	w11, #0, LBB0_42
; %bb.37:                               ;   in Loop: Header=BB0_34 Depth=2
	ldur	w9, [x29, #-216]                ; 4-byte Folded Reload
	orr	w10, w10, w9
	mov	x9, x14
	tbnz	w10, #0, LBB0_42
; %bb.38:                               ;   in Loop: Header=BB0_34 Depth=2
	mov	x9, x14
	ldur	x10, [x29, #-224]               ; 8-byte Folded Reload
	cmp	x10, #64
	b.lo	LBB0_42
; %bb.39:                               ;   in Loop: Header=BB0_34 Depth=2
	mov	x9, x28
	ldur	x10, [x29, #-248]               ; 8-byte Folded Reload
	ldur	x15, [x29, #-224]               ; 8-byte Folded Reload
LBB0_40:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_34 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x11, x9, x15
	ldp	q1, q0, [x11]
	ldp	q3, q2, [x11, #-32]
	stp	q1, q0, [x9]
	stp	q3, q2, [x9, #-32]
	sub	x9, x9, #64
	sub	x10, x10, #16
	cbnz	x10, LBB0_40
; %bb.41:                               ;   in Loop: Header=BB0_34 Depth=2
	ldp	x9, x11, [x29, #-256]           ; 16-byte Folded Reload
	ldur	x10, [x29, #-208]               ; 8-byte Folded Reload
	cmp	x10, x11
	b.eq	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_34 Depth=2
	add	x10, x17, x9, lsl #2
LBB0_43:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_34 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x19, x9, lsl #2]
	str	w11, [x10], #-4
	sub	x9, x9, #1
	cmp	x9, x22
	b.gt	LBB0_43
LBB0_44:                                ;   in Loop: Header=BB0_34 Depth=2
	stur	x17, [x29, #-144]               ; 8-byte Folded Spill
	add	x8, x12, x8, lsl #2
	add	x23, x8, x13, lsl #2
	ldur	x9, [x29, #-184]                ; 8-byte Folded Reload
	add	x24, x8, x9, lsl #2
	mov	x25, x27
	mov	w26, #1
LBB0_45:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_34 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	scvtf	s0, w26
	fdiv	s0, s0, s9
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_LerpDrawVertAmount
	add	x26, x26, #1
	add	x25, x25, #4
	cmp	x20, x26
	b.ne	LBB0_45
; %bb.46:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x21, x21, #1
	ldp	x17, x0, [x29, #-144]           ; 16-byte Folded Reload
	add	x28, x28, x0
	add	x17, x17, x0
	add	x19, x19, x0
	add	x27, x27, x0
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	cmp	x21, x8
	ldp	x13, x14, [x29, #-200]          ; 16-byte Folded Reload
	b.lt	LBB0_34
; %bb.47:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x8, x29, #56
	ldur	x28, [x8, #-256]                ; 8-byte Folded Reload
	mov	x19, x28
	sub	x8, x29, #8
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
	sub	x8, x29, #16
	ldur	x25, [x8, #-256]                ; 8-byte Folded Reload
	sub	x8, x29, #48
	ldur	x26, [x8, #-256]                ; 8-byte Folded Reload
Lloh11:
	adrp	x27, _originalWidths@GOTPAGE
Lloh12:
	ldr	x27, [x27, _originalWidths@GOTPAGEOFF]
	b	LBB0_11
LBB0_48:
	mov	x28, x19
LBB0_49:
	ldr	w8, [x24, #4]
	cmp	w8, #2
	b.lt	LBB0_83
; %bb.50:
	mov	x23, #0
	mov	w25, #0
	sub	x9, x29, #84
	ldur	w9, [x9, #-256]                 ; 4-byte Folded Reload
	sub	w9, w9, w8
	sub	w8, w8, #1
	ldur	w27, [x29, #-128]
Lloh13:
	adrp	x26, _originalHeights@GOTPAGE
Lloh14:
	ldr	x26, [x26, _originalHeights@GOTPAGEOFF]
	sdiv	w8, w9, w8
	stur	w8, [x29, #-200]                ; 4-byte Folded Spill
	b	LBB0_53
LBB0_51:                                ;   in Loop: Header=BB0_53 Depth=1
	sub	x8, x29, #8
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
LBB0_52:                                ;   in Loop: Header=BB0_53 Depth=1
	add	x23, x23, #1
	add	w25, w20, w25
	ldrsw	x8, [x24, #4]
	sub	x8, x8, #1
	cmp	x23, x8
	b.ge	LBB0_82
LBB0_53:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_55 Depth 2
                                        ;     Child Loop BB0_67 Depth 2
                                        ;     Child Loop BB0_70 Depth 2
                                        ;     Child Loop BB0_72 Depth 2
                                        ;     Child Loop BB0_75 Depth 2
                                        ;       Child Loop BB0_77 Depth 3
                                        ;       Child Loop BB0_79 Depth 3
	cmp	w27, #1
	b.lt	LBB0_57
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=1
	mov	x19, #0
	add	w8, w25, #1
	sxtw	x8, w8
	ldur	x9, [x29, #-168]                ; 8-byte Folded Reload
	mul	x8, x8, x9
	ldur	x10, [x29, #-152]               ; 8-byte Folded Reload
	add	x20, x10, x8, lsl #2
	mov	x8, x25
	sxtw	x8, w8
	mul	x8, x8, x9
	add	x21, x10, x8, lsl #2
	sxtw	x22, w27
	movi	d9, #0000000000000000
LBB0_55:                                ;   Parent Loop BB0_53 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x19, #2
	ldr	w0, [x20, x8]
	ldr	w1, [x21, x8]
	bl	_VectorSubtract
	bl	_VectorLength
	fcmp	s0, s9
	fcsel	s9, s0, s9, gt
	add	x19, x19, #1
	cmp	x19, x22
	b.lt	LBB0_55
; %bb.56:                               ;   in Loop: Header=BB0_53 Depth=1
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	b	LBB0_58
LBB0_57:                                ;   in Loop: Header=BB0_53 Depth=1
	movi	d9, #0000000000000000
LBB0_58:                                ;   in Loop: Header=BB0_53 Depth=1
	fdiv	s0, s9, s8
	fcvtzs	w8, s0
	ldur	w9, [x29, #-200]                ; 4-byte Folded Reload
	cmp	w9, w8
	csel	w8, w9, w8, lt
	add	w20, w8, #1
	sub	x9, x29, #24
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	str	w20, [x9, x23, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_52
; %bb.59:                               ;   in Loop: Header=BB0_53 Depth=1
	ldur	w9, [x29, #-124]
	add	w10, w9, w8
	stur	w10, [x29, #-124]
	add	w11, w8, w25
	stur	x11, [x29, #-160]               ; 8-byte Folded Spill
	cmp	w9, w25
	b.le	LBB0_71
; %bb.60:                               ;   in Loop: Header=BB0_53 Depth=1
	ldr	x9, [x26]
	sxtw	x11, w10
	ldur	x10, [x29, #-160]               ; 8-byte Folded Reload
	sxtw	x10, w10
	sub	x13, x11, #1
	cmp	x13, x10
	csel	x12, x13, x10, lt
	sub	x12, x11, x12
	cmp	x12, #16
	b.lo	LBB0_69
; %bb.61:                               ;   in Loop: Header=BB0_53 Depth=1
	cmp	x13, x10
	csel	x13, x13, x10, lt
	mvn	x13, x13
	add	x15, x13, x11
	sub	x14, x9, #4
	add	x16, x14, x11, lsl #2
	cmp	xzr, x15, lsr #62
	cset	w13, ne
	lsl	x15, x15, #2
	sub	x17, x16, x15
	cmp	x17, x16
	b.hi	LBB0_69
; %bb.62:                               ;   in Loop: Header=BB0_53 Depth=1
	tbnz	w13, #0, LBB0_69
; %bb.63:                               ;   in Loop: Header=BB0_53 Depth=1
	sub	x16, x11, x8
	add	x14, x14, x16, lsl #2
	sub	x15, x14, x15
	cmp	x15, x14
	b.hi	LBB0_69
; %bb.64:                               ;   in Loop: Header=BB0_53 Depth=1
	tbnz	w13, #0, LBB0_69
; %bb.65:                               ;   in Loop: Header=BB0_53 Depth=1
	neg	x13, x8, lsl #2
	cmp	x13, #64
	b.lo	LBB0_69
; %bb.66:                               ;   in Loop: Header=BB0_53 Depth=1
	and	x14, x12, #0xfffffffffffffff0
	sub	x15, x11, x14
	add	x11, x9, x11, lsl #2
	sub	x11, x11, #32
	mov	x16, x14
LBB0_67:                                ;   Parent Loop BB0_53 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x17, x11, x13
	ldp	q1, q0, [x17]
	ldp	q3, q2, [x17, #-32]
	stp	q1, q0, [x11]
	stp	q3, q2, [x11, #-32]
	sub	x11, x11, #64
	sub	x16, x16, #16
	cbnz	x16, LBB0_67
; %bb.68:                               ;   in Loop: Header=BB0_53 Depth=1
	mov	x11, x15
	cmp	x12, x14
	b.eq	LBB0_71
LBB0_69:                                ;   in Loop: Header=BB0_53 Depth=1
	sub	x11, x11, #1
	sub	x12, x9, x8, lsl #2
LBB0_70:                                ;   Parent Loop BB0_53 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x11, #2
	ldr	w14, [x12, x13]
	str	w14, [x9, x13]
	sub	x13, x11, #1
	cmp	x11, x10
	mov	x11, x13
	b.gt	LBB0_70
LBB0_71:                                ;   in Loop: Header=BB0_53 Depth=1
	ldr	x10, [x26]
	sxtw	x9, w25
	add	x11, x10, w25, sxtw #2
	add	x11, x11, #4
	sub	x12, x20, #1
LBB0_72:                                ;   Parent Loop BB0_53 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x10, x9, lsl #2]
	str	w13, [x11], #4
	subs	x12, x12, #1
	b.ne	LBB0_72
; %bb.73:                               ;   in Loop: Header=BB0_53 Depth=1
	ldur	w27, [x29, #-128]
	cmp	w27, #1
	b.lt	LBB0_51
; %bb.74:                               ;   in Loop: Header=BB0_53 Depth=1
	stp	x25, x23, [x29, #-216]          ; 16-byte Folded Spill
	mov	x26, #0
	stur	x27, [x29, #-224]               ; 8-byte Folded Spill
	mov	x10, x27
	sxtw	x10, w10
	stur	x10, [x29, #-176]               ; 8-byte Folded Spill
	scvtf	s9, w20
	ldp	x11, x13, [x29, #-168]          ; 16-byte Folded Reload
	mul	x9, x9, x11
	ldur	x12, [x29, #-152]               ; 8-byte Folded Reload
	add	x10, x12, x9, lsl #2
	stur	x10, [x29, #-184]               ; 8-byte Folded Spill
	add	w10, w13, #1
	sxtw	x10, w10
	mul	x10, x10, x11
	add	x10, x12, x10, lsl #2
	stur	x10, [x29, #-192]               ; 8-byte Folded Spill
	mov	x10, x13
	sxtw	x25, w10
	ldur	w10, [x29, #-124]
	sub	w10, w10, #1
	sxtw	x13, w10
	mul	x10, x11, x13
	add	x19, x12, x10, lsl #2
	stur	x13, [x29, #-144]               ; 8-byte Folded Spill
	sub	x8, x13, w8, sxtw
	mul	x8, x11, x8
	add	x24, x12, x8, lsl #2
	add	x8, x11, x9
	add	x27, x12, x8, lsl #2
LBB0_75:                                ;   Parent Loop BB0_53 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_77 Depth 3
                                        ;       Child Loop BB0_79 Depth 3
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
	cmp	w9, w8
	b.le	LBB0_78
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=2
	mov	x8, #0
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
LBB0_77:                                ;   Parent Loop BB0_53 Depth=1
                                        ;     Parent Loop BB0_75 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w10, [x24, x8]
	str	w10, [x19, x8]
	sub	x9, x9, #1
	sub	x8, x8, x0
	cmp	x9, x25
	b.gt	LBB0_77
LBB0_78:                                ;   in Loop: Header=BB0_75 Depth=2
	lsl	x8, x26, #2
	ldur	x9, [x29, #-184]                ; 8-byte Folded Reload
	add	x21, x9, x8
	ldur	x9, [x29, #-192]                ; 8-byte Folded Reload
	add	x22, x9, x8
	mov	x23, x27
	mov	w28, #1
LBB0_79:                                ;   Parent Loop BB0_53 Depth=1
                                        ;     Parent Loop BB0_75 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	scvtf	s0, w28
	fdiv	s0, s0, s9
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_LerpDrawVertAmount
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	add	x28, x28, #1
	add	x23, x23, x0
	cmp	x20, x28
	b.ne	LBB0_79
; %bb.80:                               ;   in Loop: Header=BB0_75 Depth=2
	add	x26, x26, #1
	add	x19, x19, #4
	add	x24, x24, #4
	add	x27, x27, #4
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	cmp	x26, x8
	b.lt	LBB0_75
; %bb.81:                               ;   in Loop: Header=BB0_53 Depth=1
	sub	x8, x29, #8
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
	ldp	x25, x23, [x29, #-216]          ; 16-byte Folded Reload
Lloh15:
	adrp	x26, _originalHeights@GOTPAGE
Lloh16:
	ldr	x26, [x26, _originalHeights@GOTPAGEOFF]
	ldur	x27, [x29, #-224]               ; 8-byte Folded Reload
	b	LBB0_52
LBB0_82:
	ldur	w28, [x29, #-124]
LBB0_83:
	ldur	x25, [x29, #-152]               ; 8-byte Folded Reload
	stur	x25, [x29, #-120]
	cmp	w28, #2
	b.lt	LBB0_86
; %bb.84:
	ldur	w21, [x29, #-128]
	lsl	w19, w21, #2
	mov	x8, x28
	sxtw	x22, w8
	add	x20, x25, x0
	mov	w23, #1
	mov	x24, x21
LBB0_85:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x25, w24, sxtw #2
	mov	x1, x20
	mov	x2, x19
	bl	_memmove
	add	x23, x23, #1
	add	w24, w24, w21
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	add	x20, x20, x8
	cmp	x23, x22
	b.lt	LBB0_85
LBB0_86:
	sub	x0, x29, #128
	bl	_CopyMesh
	sub	x8, x29, #80
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-112]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_88
; %bb.87:
	sub	sp, x29, #96
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_88:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EXPANDED_AXIS,4,2          ; @MAX_EXPANDED_AXIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SubdivideMeshQuads: maxsize > MAX_EXPANDED_AXIS"

	.comm	_originalWidths,8,3             ; @originalWidths
	.comm	_originalHeights,8,3            ; @originalHeights
.subsections_via_symbols
