	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitBoard
_InitBoard:                             ## @InitBoard
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %r14d
	movq	_IDI_MINES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_LoadBitmapW
	movq	%rax, 40(%rbx)
	movl	20(%rbx), %r14d
	movq	_IDI_FACES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_LoadBitmapW
	movq	%rax, 32(%rbx)
	movl	20(%rbx), %r14d
	movq	_IDI_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_LoadBitmapW
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_LoadBoard
	movl	16(%rbx), %edi
	callq	_GetMenu
	movl	%eax, %r14d
	movq	_IDM_BEGINNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	8(%rbx), %esi
	movq	_MF_CHECKED@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%r14d, %edi
	callq	_CheckMenuItem
	cmpq	$0, (%rbx)
	movq	_IDM_MARKQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jne	LBB0_2
## %bb.1:
	movq	_MF_UNCHECKED@GOTPCREL(%rip), %r15
LBB0_2:
	movl	(%r15), %edx
	movl	%r14d, %edi
	callq	_CheckMenuItem
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CheckLevel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDI_MINES,4,2                  ## @IDI_MINES
	.comm	_IDI_FACES,4,2                  ## @IDI_FACES
	.comm	_IDI_LEDS,4,2                   ## @IDI_LEDS
	.comm	_IDM_BEGINNER,4,2               ## @IDM_BEGINNER
	.comm	_MF_CHECKED,4,2                 ## @MF_CHECKED
	.comm	_IDM_MARKQ,4,2                  ## @IDM_MARKQ
	.comm	_MF_UNCHECKED,4,2               ## @MF_UNCHECKED
	.no_dead_strip	_InitBoard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitBoard
_InitBoard:                             ; @InitBoard
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w20, [x0, #20]
Lloh0:
	adrp	x8, _IDI_MINES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDI_MINES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	mov	x0, x20
	bl	_LoadBitmapW
	str	x0, [x19, #40]
	ldr	w20, [x19, #20]
Lloh3:
	adrp	x8, _IDI_FACES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDI_FACES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	mov	x0, x20
	bl	_LoadBitmapW
	str	x0, [x19, #32]
	ldr	w20, [x19, #20]
Lloh6:
	adrp	x8, _IDI_LEDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDI_LEDS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	mov	x0, x20
	bl	_LoadBitmapW
	str	x0, [x19, #24]
	mov	x0, x19
	bl	_LoadBoard
	ldr	w0, [x19, #16]
	bl	_GetMenu
	mov	x20, x0
Lloh9:
	adrp	x8, _IDM_BEGINNER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDM_BEGINNER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	add	w1, w8, w9
Lloh12:
	adrp	x21, _MF_CHECKED@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MF_CHECKED@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_CheckMenuItem
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _IDM_MARKQ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IDM_MARKQ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _MF_UNCHECKED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MF_UNCHECKED@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x21, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_CheckMenuItem
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CheckLevel
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDI_MINES,4,2                  ; @IDI_MINES
	.comm	_IDI_FACES,4,2                  ; @IDI_FACES
	.comm	_IDI_LEDS,4,2                   ; @IDI_LEDS
	.comm	_IDM_BEGINNER,4,2               ; @IDM_BEGINNER
	.comm	_MF_CHECKED,4,2                 ; @MF_CHECKED
	.comm	_IDM_MARKQ,4,2                  ; @IDM_MARKQ
	.comm	_MF_UNCHECKED,4,2               ; @MF_UNCHECKED
	.no_dead_strip	_InitBoard
.subsections_via_symbols
