	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetGrid
_SetGrid:                               ## @SetGrid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_YCELLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r12
	movq	_XCELLS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %r13
	cmpq	%rax, %r8
	jae	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	leaq	1(%r13), %r8
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	%rcx, %rdx
	imulq	%r15, %rdx
	incq	%rdx
	movq	(%rax,%r13,8), %rax
	leaq	(%rax,%r14), %rdi
	leaq	(%rax,%r14), %rsi
	addq	$8, %rsi
	movq	%rdx, 8(%rax,%r14)
	movq	16(%r12), %rbx
	movq	%rbx, %rdx
	imulq	%r13, %rdx
	incq	%rdx
	movq	%rdx, 16(%rax,%r14)
	incq	%r15
	imulq	%r15, %rcx
	addq	$2, %rcx
	movq	%rcx, 24(%rax,%r14)
	imulq	%r8, %rbx
	addq	$2, %rbx
	movq	%rbx, 32(%rax,%r14)
	movq	%r8, %rbx
	callq	_CopyRect
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	addq	%r14, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	callq	_InflateRect
	movq	%rbx, %r8
	movq	_XCELLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$40, %r14
	cmpq	%rcx, %r15
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_YCELLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YCELLS,8,3                     ## @YCELLS
	.comm	_XCELLS,8,3                     ## @XCELLS
	.no_dead_strip	_SetGrid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetGrid
_SetGrid:                               ; @SetGrid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x20, _YCELLS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _YCELLS@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x25, #0
Lloh2:
	adrp	x21, _XCELLS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _XCELLS@GOTPAGEOFF]
	ldr	x9, [x21]
	orr	x22, xzr, #0x1
	orr	x23, xzr, #0x2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x24
	cmp	x24, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x24, x25, #1
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	mov	x27, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x19]
	madd	x10, x8, x27, x22
	lsl	x28, x25, #3
	ldr	x9, [x9, x28]
	add	x0, x9, x26
	mov	x1, x0
	str	x10, [x1, #8]!
	ldr	x9, [x19, #16]
	madd	x10, x9, x25, x22
	add	x27, x27, #1
	madd	x8, x8, x27, x23
	stp	x10, x8, [x0, #16]
	madd	x8, x9, x24, x23
	str	x8, [x0, #32]
	bl	_CopyRect
	ldr	x8, [x19]
	ldr	x8, [x8, x28]
	add	x0, x8, x26
	mov	w1, #-1
	mov	w2, #-1
	bl	_InflateRect
	ldr	x9, [x21]
	add	x26, x26, #40
	cmp	x27, x9
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_YCELLS,8,3                     ; @YCELLS
	.comm	_XCELLS,8,3                     ; @XCELLS
	.no_dead_strip	_SetGrid
.subsections_via_symbols
