	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TestBoard
_TestBoard:                             ## @TestBoard
	.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
	movl	%r8d, %r14d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rsi, %r13
	movl	%edi, %ebx
	leaq	96(%rsi), %rdi
	shlq	$32, %rcx
	movl	%edx, %r15d
	orq	%rcx, %r15
	movq	%r15, %rsi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r13), %rax
	movq	_GAMEOVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_WON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_TestMines
	cmpq	$0, 8(%r13)
	jne	LBB0_20
	jmp	LBB0_6
LBB0_4:
	movq	80(%r13), %rdx
	movq	88(%r13), %rsi
	movq	%r13, %rdi
	callq	_UnpressBoxes
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%r13)
	cmpq	$0, 8(%r13)
	jne	LBB0_20
LBB0_6:
	movq	_WON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	24(%r13), %r8
	cmpq	%r8, 16(%r13)
	jge	LBB0_17
## %bb.7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	32(%r13), %r10d
	testq	%r10, %r10
	je	LBB0_16
## %bb.8:
	movl	36(%r13), %r9d
	movq	%r9, %rsi
	incq	%rsi
	incq	%r10
	movl	$1, %eax
	movq	_FLAG@GOTPCREL(%rip), %r11
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
	cmpq	%r10, %rax
	je	LBB0_16
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	72(%r13), %rdx
	movl	$1, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rcx,8), %rbx
	movq	%rax, %rdi
	shlq	$4, %rdi
	cmpq	$0, 8(%rbx,%rdi)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r11), %r12
	cmpq	%r12, (%rbx,%rdi)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	addq	%rdi, %rbx
	movq	%r12, (%rbx)
	jmp	LBB0_14
LBB0_16:
	movq	%r8, 16(%r13)
	movl	68(%r13), %edi
	movq	_RDW_INVALIDATE@GOTPCREL(%rip), %rax
	movq	_RDW_UPDATENOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RedrawWindow
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_17:
	movq	40(%r13), %rax
	movq	_CUSTOM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.18:
	movq	48(%r13), %rcx
	movq	56(%r13), %rdx
	cmpq	(%rdx,%rax,8), %rcx
	jge	LBB0_20
## %bb.19:
	movq	%rcx, (%rdx,%rax,8)
	movl	64(%r13), %r12d
	movq	_DLG_CONGRATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movq	_CongratsDlgProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%r13d, %r8d
	callq	_DialogBoxParamW
	movl	64(%r13), %r12d
	movq	_DLG_TIMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movq	_TimesDlgProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	%r13d, %r8d
	callq	_DialogBoxParamW
LBB0_20:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TestFace                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GAMEOVER,8,3                   ## @GAMEOVER
	.comm	_WON,8,3                        ## @WON
	.comm	_FLAG,8,3                       ## @FLAG
	.comm	_RDW_INVALIDATE,4,2             ## @RDW_INVALIDATE
	.comm	_RDW_UPDATENOW,4,2              ## @RDW_UPDATENOW
	.comm	_CUSTOM,8,3                     ## @CUSTOM
	.comm	_DLG_CONGRATS,4,2               ## @DLG_CONGRATS
	.comm	_CongratsDlgProc,4,2            ## @CongratsDlgProc
	.comm	_DLG_TIMES,4,2                  ## @DLG_TIMES
	.comm	_TimesDlgProc,4,2               ## @TimesDlgProc
	.no_dead_strip	_TestBoard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TestBoard
_TestBoard:                             ; @TestBoard
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x20, x1
	mov	x22, x0
	add	x0, x1, #96
	mov	w21, w2
	bfi	x21, x3, #32, #32
	mov	x1, x21
	bl	_PtInRect
Lloh0:
	adrp	x23, _WON@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WON@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _GAMEOVER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GAMEOVER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x23]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
LBB0_2:
	ldp	x2, x1, [x20, #80]
	mov	x0, x20
	bl	_UnpressBoxes
	stp	xzr, xzr, [x20, #80]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_18
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_TestMines
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_18
LBB0_4:
	ldr	x8, [x23]
	str	x8, [x20]
	ldp	x9, x8, [x20, #16]
	cmp	x9, x8
	b.ge	LBB0_15
; %bb.5:
	ldr	w10, [x20, #32]
	cbz	w10, LBB0_14
; %bb.6:
	ldr	w9, [x20, #36]
	add	x10, x10, #1
	mov	w11, #1
Lloh5:
	adrp	x12, _FLAG@GOTPAGE
Lloh6:
	ldr	x12, [x12, _FLAG@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x11, x11, #1
	cmp	x11, x10
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	w9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x20, #72]
	add	x13, x13, #8
	mov	x14, x9
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x13, x13, #8
	subs	x14, x14, #1
	b.eq	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x13]
	add	x15, x15, x11, lsl #4
	ldr	x16, [x15, #8]
	cbz	x16, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x17, [x15]
	ldr	x16, [x12]
	cmp	x17, x16
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	str	x16, [x15]
	b	LBB0_10
LBB0_14:
	str	x8, [x20, #16]
Lloh7:
	adrp	x8, _RDW_INVALIDATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RDW_INVALIDATE@GOTPAGEOFF]
	ldr	w0, [x20, #68]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _RDW_UPDATENOW@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RDW_UPDATENOW@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, #0
	mov	w2, #0
	bl	_RedrawWindow
LBB0_15:
	ldr	x8, [x20, #40]
Lloh13:
	adrp	x9, _CUSTOM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CUSTOM@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.16:
	ldp	x9, x10, [x20, #48]
	ldr	x11, [x10, x8, lsl #3]
	cmp	x9, x11
	b.ge	LBB0_18
; %bb.17:
	str	x9, [x10, x8, lsl #3]
	ldr	w23, [x20, #64]
Lloh16:
	adrp	x8, _DLG_CONGRATS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DLG_CONGRATS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh19:
	adrp	x8, _CongratsDlgProc@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CongratsDlgProc@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x2, x22
	mov	x4, x20
	bl	_DialogBoxParamW
	ldr	w23, [x20, #64]
Lloh22:
	adrp	x8, _DLG_TIMES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DLG_TIMES@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
Lloh25:
	adrp	x8, _TimesDlgProc@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TimesDlgProc@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x2, x22
	mov	x4, x20
	bl	_DialogBoxParamW
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_TestFace
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GAMEOVER,8,3                   ; @GAMEOVER
	.comm	_WON,8,3                        ; @WON
	.comm	_FLAG,8,3                       ; @FLAG
	.comm	_RDW_INVALIDATE,4,2             ; @RDW_INVALIDATE
	.comm	_RDW_UPDATENOW,4,2              ; @RDW_UPDATENOW
	.comm	_CUSTOM,8,3                     ; @CUSTOM
	.comm	_DLG_CONGRATS,4,2               ; @DLG_CONGRATS
	.comm	_CongratsDlgProc,4,2            ; @CongratsDlgProc
	.comm	_DLG_TIMES,4,2                  ; @DLG_TIMES
	.comm	_TimesDlgProc,4,2               ; @TimesDlgProc
	.no_dead_strip	_TestBoard
.subsections_via_symbols
