	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CM_SubdivideGridColumns
_CM_SubdivideGridColumns:               ## @CM_SubdivideGridColumns
	.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
	cmpl	$3, (%rdi)
	jl	LBB0_23
## %bb.1:
	movq	%rdi, %r15
	movl	4(%rdi), %eax
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_12 Depth 4
                                        ##     Child Loop BB0_17 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	movq	%rbx, %rdx
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	incq	%rbx
	leaq	2(%rdx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	3(%rdx), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	movslq	(%r15), %rcx
	leal	2(%rcx), %edx
	movl	%edx, (%r15)
	cmpq	%rcx, -56(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_23
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_12 Depth 4
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rcx
	movl	(%rcx,%r13,4), %edi
	movq	(%rax,%rbx,8), %rcx
	movl	(%rcx,%r13,4), %esi
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r13,4), %edx
	callq	_CM_NeedsSubdivision
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	incq	%r13
	movslq	4(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	4(%r15), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%eax, %r13d
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%eax, %eax
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=3
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movl	(%rcx,%r13,4), %ecx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdx
	movl	(%rdx,%r13,4), %r8d
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rax
	movl	(%rax,%r13,4), %r9d
	callq	_CM_Subdivide
	incq	%r13
	movslq	4(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_12 Depth 4
	movq	8(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%r13,4), %edi
	callq	_VectorCopy
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r13,4), %edi
	callq	_VectorCopy
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r13,4), %edi
	callq	_VectorCopy
	movl	(%r15), %r14d
	leal	-1(%r14), %eax
	movslq	%eax, %r12
	cmpq	%r12, %rbx
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	incl	%r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rcx
	movl	(%rcx,%r13,4), %edi
	movslq	%r14d, %r14
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r13,4), %esi
	callq	_VectorCopy
	decq	%r12
	decl	%r14d
	cmpq	%rbx, %r12
	jg	LBB0_12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	testl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%r14
	movslq	%eax, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_22
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	movslq	%ecx, %rdx
	cmpq	%rdx, -72(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %r12
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r15), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rcx
	movl	(%rcx,%r14,4), %edi
	movq	-8(%rax,%rbx,8), %rax
	movl	(%rax,%r14,4), %esi
	callq	_VectorCopy
	incq	%rbx
	movslq	(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	4(%r15), %eax
	movq	%r12, %rbx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rcx), %edx
	movl	%edx, (%r15)
	addl	$-3, %ecx
	movslq	%ecx, %rcx
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	cmpq	%rcx, %rbx
	jl	LBB0_2
LBB0_23:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_CM_SubdivideGridColumns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CM_SubdivideGridColumns
_CM_SubdivideGridColumns:               ; @CM_SubdivideGridColumns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	ldr	w8, [x0]
	cmp	w8, #3
	b.lt	LBB0_27
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	ldr	w8, [x0, #4]
	mov	w9, #2
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
                                        ;         Child Loop BB0_17 Depth 4
                                        ;     Child Loop BB0_21 Depth 2
                                        ;       Child Loop BB0_23 Depth 3
	mov	x23, x20
	sxtw	x9, w9
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x20, x20, #1
	add	x22, x23, #2
	and	x24, x22, #0xffffffff
	add	w25, w23, #3
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrsw	x9, [x19]
	add	w10, w9, #2
	str	w10, [x19]
	cmp	x23, x9
	b.ge	LBB0_27
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
                                        ;         Child Loop BB0_17 Depth 4
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x26, #0
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x23, lsl #3]
	lsl	x10, x26, #2
	ldr	w0, [x9, x10]
	ldr	x9, [x8, x20, lsl #3]
	ldr	w1, [x9, x10]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w2, [x8, x10]
	bl	_CM_NeedsSubdivision
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	add	x26, x26, #1
	ldrsw	x8, [x19, #4]
	cmp	x26, x8
	b.lt	LBB0_7
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	w26, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w26, w8
	b.ne	LBB0_12
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x19, #4]
	cmp	w26, w8
	b.eq	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x26, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20, lsl #3]
	ldr	w3, [x9, x27]
	ldr	x9, [x8, x24, lsl #3]
	ldr	w4, [x9, x27]
	ldr	x8, [x8, x25, lsl #3]
	ldr	w5, [x8, x27]
	bl	_CM_Subdivide
	add	x26, x26, #1
	ldrsw	x8, [x19, #4]
	cmp	x26, x8
	b.ge	LBB0_3
LBB0_15:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_17 Depth 4
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23, lsl #3]
	lsl	x27, x26, #2
	ldr	w0, [x8, x27]
	bl	_VectorCopy
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8, x27]
	bl	_VectorCopy
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w0, [x8, x27]
	bl	_VectorCopy
	ldr	w8, [x19]
	sub	w9, w8, #1
	sxtw	x28, w9
	cmp	x20, x28
	b.ge	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	add	w21, w8, #1
LBB0_17:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ;       Parent Loop BB0_15 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x28, lsl #3]
	ldr	w0, [x9, x27]
	ldr	x8, [x8, w21, sxtw #3]
	ldr	w1, [x8, x27]
	bl	_VectorCopy
	sub	x28, x28, #1
	sub	w21, w21, #1
	cmp	x28, x20
	b.gt	LBB0_17
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_26
LBB0_21:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_23 Depth 3
	cmp	x22, w9, sxtw
	b.ge	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x21, x24
LBB0_23:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_21 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #8]
	ldr	x9, [x8, w21, uxtw #3]
	lsl	x10, x23, #2
	ldr	w0, [x9, x10]
	add	x8, x8, x21, lsl #3
	ldur	x8, [x8, #-8]
	ldr	w1, [x8, x10]
	bl	_VectorCopy
	add	x21, x21, #1
	ldrsw	x9, [x19]
	cmp	x21, x9
	b.lt	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	w8, [x19, #4]
	b	LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w9, #1
	str	w10, [x19]
	sub	w10, w9, #3
	add	w9, w24, #1
	cmp	x20, w10, sxtw
	b.lt	LBB0_2
LBB0_27:
	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
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_CM_SubdivideGridColumns
.subsections_via_symbols
