	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnClick
_OnClick:                               ## @OnClick
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_XCELLS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_XCELLS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_YCELLS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rax
	leaq	(%rbx,%rbx,2), %r14
	leaq	(%rax,%r14,8), %rdi
	addq	$16, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_PtInRect
	testq	%rax, %rax
	jne	LBB0_5
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	incq	%r12
	movq	_YCELLS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jb	LBB0_4
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rsi
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rcx
	cmpq	$0, 8(%rcx,%r14,8)
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rsi)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	callq	_DestroyWindow
	movq	$0, 8(%r13)
	jmp	LBB0_16
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rsi)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r13), %edi
	addq	$16, %rsi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_InvalidateRect
	movq	(%r13), %rsi
	movq	16(%r13), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rsi)
	movq	%rcx, (%rsi)
	movq	(%rax,%r12,8), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%r14,8), %rax
	movq	%rax, (%r13)
	movq	_TRUE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	%rax, 8(%rcx,%r14,8)
	movq	(%rdx), %rax
	movq	%rax, (%rcx,%r14,8)
	cmpq	$0, 8(%r13)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_MoveLargeCell
	jmp	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_CreateLargeCell
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	movq	_FALSE@GOTPCREL(%rip), %rcx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_CreateLargeCell
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCELLS,8,3                     ## @XCELLS
	.comm	_YCELLS,8,3                     ## @YCELLS
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_OnClick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnClick
_OnClick:                               ; @OnClick
	.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	x22, _XCELLS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XCELLS@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_19
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
Lloh2:
	adrp	x24, _YCELLS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _YCELLS@GOTPAGEOFF]
	mov	w25, #24
Lloh4:
	adrp	x26, _TRUE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
Lloh6:
	adrp	x27, _FALSE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_CreateLargeCell
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x8]
	cmp	x9, #0
	csel	x9, x26, x27, eq
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.hs	LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x24]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x28, lsl #3]
	madd	x8, x23, x25, x8
	add	x0, x8, #16
	mov	x1, x19
	mov	x2, x20
	bl	_PtInRect
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x28, x28, #1
	ldr	x8, [x24]
	cmp	x28, x8
	b.lo	LBB0_7
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	ldr	x10, [x8, x28, lsl #3]
	madd	x9, x23, x25, x10
	ldr	x11, [x9, #8]
	ldr	x9, [x21]
	cbz	x11, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x9]
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x21, #8]
	bl	_DestroyWindow
	str	xzr, [x21, #8]
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x9, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21, #24]
	add	x1, x9, #16
	ldr	x2, [x26]
	bl	_InvalidateRect
	ldr	x9, [x21]
	ldr	x8, [x21, #16]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x27]
	stp	x10, x10, [x9]
	ldr	x10, [x8, x28, lsl #3]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x23, x25, x10
	str	x8, [x21]
	ldr	x9, [x26]
	str	x9, [x8, #8]
	ldr	x9, [x26]
	str	x9, [x8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_MoveLargeCell
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_CreateLargeCell
	b	LBB0_4
LBB0_19:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_XCELLS,8,3                     ; @XCELLS
	.comm	_YCELLS,8,3                     ; @YCELLS
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_OnClick
.subsections_via_symbols
