	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FillGrid
_FillGrid:                              ## @FillGrid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	movl	24(%rbx), %esi
	callq	_SelectObject
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_YCELLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	_XCELLS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %r15
	imulq	%rcx, %r15
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$4, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_YCELLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movq	%rsi, %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rsi
	jae	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$16, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r15
	movq	%r15, -64(%rbp)
	incq	%r12
	movq	_XCELLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$24, %r14
	cmpq	%rcx, %r12
	jae	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	%rax, -64(%rbp)
	movq	8(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r13
	leaq	(%r14,%r13), %rdx
	leaq	-84(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_IntersectRect
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rax
	movq	%rax, -8(%r13,%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	(%r14,%r13), %rcx
	addq	$-16, %rcx
	movq	_DT_VCENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DT_CENTER@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_DT_SINGLELINE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	leaq	-64(%rbp), %rsi
	movl	$1, %edx
	callq	_DrawTextW
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_SelectObject
	addq	$56, %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	_DT_CENTER,4,2                  ## @DT_CENTER
	.comm	_DT_VCENTER,4,2                 ## @DT_VCENTER
	.comm	_DT_SINGLELINE,4,2              ## @DT_SINGLELINE
	.no_dead_strip	_FillGrid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FillGrid
_FillGrid:                              ; @FillGrid
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	ldr	w1, [x20, #24]
	bl	_SelectObject
	str	w0, [sp]                        ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _YCELLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YCELLS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x25, #0
	ldr	x10, [x20]
Lloh3:
	adrp	x26, _XCELLS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _XCELLS@GOTPAGEOFF]
	ldr	x9, [x26]
	mul	x27, x10, x9
	add	x22, x19, #4
Lloh5:
	adrp	x24, _DT_SINGLELINE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DT_SINGLELINE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _YCELLS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _YCELLS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, x8
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	mov	x21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
	str	x27, [sp, #8]
	add	x21, x21, #1
	ldr	x9, [x26]
	add	x28, x28, #24
	cmp	x21, x9
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x20, #8]
	ldr	x8, [x8, x27, lsl #3]
	str	x8, [sp, #8]
	ldr	x8, [x9, x25, lsl #3]
	add	x23, x8, x28
	add	x2, x23, #16
	add	x0, sp, #4
	mov	x1, x22
	bl	_IntersectRect
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #8]
	str	x8, [x23, #8]
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _DT_CENTER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DT_CENTER@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _DT_VCENTER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DT_VCENTER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w4, w8, w9
	add	x1, sp, #8
	mov	w2, #1
	mov	x3, x23
	bl	_DrawTextW
	b	LBB0_6
LBB0_9:
	ldr	w0, [x19]
	ldr	w1, [sp]                        ; 4-byte Folded Reload
	bl	_SelectObject
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_XCELLS,8,3                     ; @XCELLS
	.comm	_YCELLS,8,3                     ; @YCELLS
	.comm	_DT_CENTER,4,2                  ; @DT_CENTER
	.comm	_DT_VCENTER,4,2                 ; @DT_VCENTER
	.comm	_DT_SINGLELINE,4,2              ; @DT_SINGLELINE
	.no_dead_strip	_FillGrid
.subsections_via_symbols
