	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CreateBoard
_CreateBoard:                           ## @CreateBoard
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_MB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%rdi)
	movl	(%rdi), %ecx
	movl	4(%rdi), %r8d
	movl	%r8d, %eax
	imull	%ecx, %eax
	cltq
	subq	128(%rdi), %rax
	movq	%rax, 136(%rdi)
	movq	$0, 120(%rdi)
	movq	112(%rdi), %rax
	leal	2(%r8), %r11d
	cmpl	$2, %r11d
	movl	$1, %r9d
	cmovbl	%r9d, %r11d
	leal	2(%rcx), %edx
	cmpl	$2, %edx
	cmovael	%edx, %r9d
	shlq	$5, %r11
	xorl	%edi, %edi
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	_NORMAL@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	(%rax,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rbx
	movq	%rbx, 24(%rdx,%rsi)
	movq	(%r14), %rdx
	movq	(%rax,%rdi,8), %rbx
	movq	%rdx, 16(%rbx,%rsi)
	movl	(%r10), %ebx
	movq	(%rax,%rdi,8), %rdx
	movl	%ebx, 8(%rdx,%rsi)
	movq	$0, (%rdx,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %r11
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rdi
	cmpq	%r9, %rdi
	jne	LBB0_1
## %bb.4:
	movq	_MINE_WIDTH@GOTPCREL(%rip), %rax
	imull	(%rax), %ecx
	movq	_BOARD_WMARGIN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leal	(%rcx,%rsi,2), %eax
	movl	%eax, 8(%r13)
	movq	_MINE_HEIGHT@GOTPCREL(%rip), %rax
	imull	(%rax), %r8d
	movq	_LED_HEIGHT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_BOARD_HMARGIN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leal	(%rdi,%rdi,2), %ebx
	addl	%r8d, %ebx
	addl	%eax, %ebx
	movl	%ebx, 12(%r13)
	leal	(%rax,%rdi,2), %edx
	addl	%esi, %ecx
	addl	%edx, %r8d
	leaq	96(%r13), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_SetRect
	movl	8(%r13), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	_FACE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	subl	%eax, %esi
	movl	(%r12), %edx
	addl	%esi, %ecx
	movq	_FACE_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	%edx, %r8d
	leaq	80(%r13), %rdi
	callq	_SetRect
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	_LED_WIDTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %ecx
	addl	%esi, %ecx
	movl	(%r15), %r8d
	addl	%edx, %r8d
	leaq	64(%r13), %rdi
	callq	_SetRect
	movl	8(%r13), %ecx
	subl	(%r14), %ecx
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	movl	%ecx, %esi
	subl	%eax, %esi
	movl	(%r12), %edx
	movl	(%r15), %r8d
	addl	%edx, %r8d
	leaq	48(%r13), %rdi
	callq	_SetRect
	movq	_WAITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	_SMILE_BMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	$0, 32(%r13)
	movl	20(%r13), %esi
	movl	24(%r13), %edx
	movl	8(%r13), %ecx
	addl	%esi, %ecx
	movl	12(%r13), %r8d
	addl	%edx, %r8d
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_SetRect
	movq	_wnd_style@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_AdjustWindowRect
	movq	%r14, %rdi
	callq	_MoveOnScreen
	movl	16(%r13), %edi
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %ecx
	subl	%esi, %ecx
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %r8d
	subl	%edx, %r8d
	movl	(%rbx), %r9d
	callq	_MoveWindow
	movq	_RDW_INVALIDATE@GOTPCREL(%rip), %rax
	movq	_RDW_UPDATENOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	16(%r13), %edi
	movq	_RDW_ERASE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RedrawWindow
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_NONE,4,2                    ## @MB_NONE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_NORMAL,4,2                     ## @NORMAL
	.comm	_MINE_WIDTH,4,2                 ## @MINE_WIDTH
	.comm	_BOARD_WMARGIN,4,2              ## @BOARD_WMARGIN
	.comm	_MINE_HEIGHT,4,2                ## @MINE_HEIGHT
	.comm	_LED_HEIGHT,4,2                 ## @LED_HEIGHT
	.comm	_BOARD_HMARGIN,4,2              ## @BOARD_HMARGIN
	.comm	_FACE_WIDTH,4,2                 ## @FACE_WIDTH
	.comm	_FACE_HEIGHT,4,2                ## @FACE_HEIGHT
	.comm	_LED_WIDTH,4,2                  ## @LED_WIDTH
	.comm	_WAITING,4,2                    ## @WAITING
	.comm	_SMILE_BMP,4,2                  ## @SMILE_BMP
	.comm	_wnd_style,4,2                  ## @wnd_style
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_RDW_INVALIDATE,4,2             ## @RDW_INVALIDATE
	.comm	_RDW_UPDATENOW,4,2              ## @RDW_UPDATENOW
	.comm	_RDW_ERASE,4,2                  ## @RDW_ERASE
	.no_dead_strip	_CreateBoard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CreateBoard
_CreateBoard:                           ; @CreateBoard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	mov	x9, #0
Lloh0:
	adrp	x8, _MB_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #144]
	ldp	w10, w8, [x0]
	mul	w11, w8, w10
	sxtw	x11, w11
	ldr	x12, [x0, #128]
	sub	x11, x11, x12
	str	x11, [x0, #136]
	str	xzr, [x0, #120]
	ldr	x11, [x0, #112]
	add	w12, w8, #2
	cmp	w12, #1
	csinc	w13, w12, wzr, hi
	add	w12, w10, #2
	cmp	w12, #1
	csinc	w12, w12, wzr, hi
	lsl	x13, x13, #5
Lloh3:
	adrp	x14, _FALSE@GOTPAGE
Lloh4:
	ldr	x14, [x14, _FALSE@GOTPAGEOFF]
Lloh5:
	adrp	x15, _NORMAL@GOTPAGE
Lloh6:
	ldr	x15, [x15, _NORMAL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x16, #0
	ldr	x17, [x11, x9, lsl #3]
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x14]
	add	x17, x17, x16
	str	x0, [x17, #24]
	ldr	x17, [x14]
	lsl	x0, x9, #3
	ldr	x1, [x11, x0]
	add	x1, x1, x16
	str	x17, [x1, #16]
	ldr	x17, [x11, x0]
	ldr	w0, [x15]
	add	x1, x17, x16
	str	w0, [x1, #8]
	str	xzr, [x1]
	add	x16, x16, #32
	cmp	x13, x16
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x9, #1
	cmp	x9, x12
	b.ne	LBB0_1
; %bb.4:
Lloh7:
	adrp	x9, _MINE_WIDTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MINE_WIDTH@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mul	w9, w9, w10
Lloh10:
	adrp	x20, _BOARD_WMARGIN@GOTPAGE
Lloh11:
	ldr	x20, [x20, _BOARD_WMARGIN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x10, _MINE_HEIGHT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MINE_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	mul	w8, w10, w8
Lloh15:
	adrp	x21, _LED_HEIGHT@GOTPAGE
Lloh16:
	ldr	x21, [x21, _LED_HEIGHT@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh17:
	adrp	x22, _BOARD_HMARGIN@GOTPAGE
Lloh18:
	ldr	x22, [x22, _BOARD_HMARGIN@GOTPAGEOFF]
	add	w11, w8, w10
	ldr	w12, [x22]
	lsl	w13, w12, #1
	add	w12, w13, w12
	add	w11, w11, w12
	add	w12, w9, w1, lsl #1
	stp	w12, w11, [x19, #8]
	add	w3, w1, w9
	add	w2, w13, w10
	add	w4, w2, w8
	add	x0, x19, #96
	bl	_SetRect
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
Lloh19:
	adrp	x9, _FACE_WIDTH@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FACE_WIDTH@GOTPAGEOFF]
	asr	w8, w8, #1
Lloh21:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w10, w9, lt
	sub	w1, w8, w10, asr #1
	ldr	w2, [x22]
	add	w3, w1, w9
Lloh22:
	adrp	x8, _FACE_HEIGHT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FACE_HEIGHT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	add	w4, w8, w2
	add	x0, x19, #80
	bl	_SetRect
	ldr	w1, [x20]
	ldr	w2, [x22]
Lloh25:
	adrp	x23, _LED_WIDTH@GOTPAGE
Lloh26:
	ldr	x23, [x23, _LED_WIDTH@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #1
	add	w3, w8, w1
	ldr	w8, [x21]
	add	w4, w8, w2
	add	x0, x19, #64
	bl	_SetRect
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	ldr	w10, [x23]
	sub	w10, w10, w10, lsl #2
	sub	w3, w8, w9
	add	w1, w10, w3
	ldr	w2, [x22]
	ldr	w8, [x21]
	add	w4, w8, w2
	add	x0, x19, #48
	bl	_SetRect
Lloh27:
	adrp	x8, _WAITING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WAITING@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _SMILE_BMP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SMILE_BMP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	str	xzr, [x19, #32]
	ldp	w1, w2, [x19, #20]
	ldp	w8, w9, [x19, #8]
	add	w3, w8, w1
	add	w4, w9, w2
	mov	x0, sp
	bl	_SetRect
Lloh33:
	adrp	x8, _wnd_style@GOTPAGE
Lloh34:
	ldr	x8, [x8, _wnd_style@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x20, _TRUE@GOTPAGE
Lloh37:
	ldr	x20, [x20, _TRUE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, sp
	bl	_AdjustWindowRect
	mov	x0, sp
	bl	_MoveOnScreen
	ldr	w0, [x19, #16]
	ldp	w1, w8, [sp, #8]
	sub	w3, w8, w1
	ldp	w2, w8, [sp]
	sub	w4, w8, w2
	ldr	w5, [x20]
	bl	_MoveWindow
	ldr	w0, [x19, #16]
Lloh38:
	adrp	x8, _RDW_INVALIDATE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RDW_INVALIDATE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _RDW_UPDATENOW@GOTPAGE
Lloh42:
	ldr	x9, [x9, _RDW_UPDATENOW@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _RDW_ERASE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _RDW_ERASE@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x1, #0
	mov	w2, #0
	bl	_RedrawWindow
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_NONE,4,2                    ; @MB_NONE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_NORMAL,4,2                     ; @NORMAL
	.comm	_MINE_WIDTH,4,2                 ; @MINE_WIDTH
	.comm	_BOARD_WMARGIN,4,2              ; @BOARD_WMARGIN
	.comm	_MINE_HEIGHT,4,2                ; @MINE_HEIGHT
	.comm	_LED_HEIGHT,4,2                 ; @LED_HEIGHT
	.comm	_BOARD_HMARGIN,4,2              ; @BOARD_HMARGIN
	.comm	_FACE_WIDTH,4,2                 ; @FACE_WIDTH
	.comm	_FACE_HEIGHT,4,2                ; @FACE_HEIGHT
	.comm	_LED_WIDTH,4,2                  ; @LED_WIDTH
	.comm	_WAITING,4,2                    ; @WAITING
	.comm	_SMILE_BMP,4,2                  ; @SMILE_BMP
	.comm	_wnd_style,4,2                  ; @wnd_style
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_RDW_INVALIDATE,4,2             ; @RDW_INVALIDATE
	.comm	_RDW_UPDATENOW,4,2              ; @RDW_UPDATENOW
	.comm	_RDW_ERASE,4,2                  ; @RDW_ERASE
	.no_dead_strip	_CreateBoard
.subsections_via_symbols
