	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetDifficulty
_SetDifficulty:                         ## @SetDifficulty
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$129, %esi
	jne	LBB0_2
## %bb.1:
	movl	20(%r14), %r15d
	movq	_DLG_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	16(%r14), %edx
	movq	_CustomDlgProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %r8d
	callq	_DialogBoxParamW
	testq	%rax, %rax
	jne	LBB0_9
LBB0_2:
	movl	16(%r14), %edi
	callq	_GetMenu
	movl	%eax, %r15d
	movq	_IDM_BEGINNER@GOTPCREL(%rip), %r12
	movl	(%r14), %esi
	addl	(%r12), %esi
	movq	_MF_UNCHECKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_CheckMenuItem
	movl	%ebx, (%r14)
	movl	(%r12), %esi
	addl	%ebx, %esi
	movq	_MF_CHECKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_CheckMenuItem
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.5:
	cmpl	$131, %ebx
	jne	LBB0_9
## %bb.6:
	movq	_ADVANCED_MINES@GOTPCREL(%rip), %rax
	movq	_ADVANCED_ROWS@GOTPCREL(%rip), %rcx
	movq	_ADVANCED_COLS@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_7:
	movq	_EXPERT_MINES@GOTPCREL(%rip), %rax
	movq	_EXPERT_ROWS@GOTPCREL(%rip), %rcx
	movq	_EXPERT_COLS@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_4:
	movq	_BEGINNER_MINES@GOTPCREL(%rip), %rax
	movq	_BEGINNER_ROWS@GOTPCREL(%rip), %rcx
	movq	_BEGINNER_COLS@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %edx
	movl	%edx, 12(%r14)
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLG_CUSTOM,4,2                 ## @DLG_CUSTOM
	.comm	_CustomDlgProc,4,2              ## @CustomDlgProc
	.comm	_IDM_BEGINNER,4,2               ## @IDM_BEGINNER
	.comm	_MF_UNCHECKED,4,2               ## @MF_UNCHECKED
	.comm	_MF_CHECKED,4,2                 ## @MF_CHECKED
	.comm	_BEGINNER_COLS,4,2              ## @BEGINNER_COLS
	.comm	_BEGINNER_ROWS,4,2              ## @BEGINNER_ROWS
	.comm	_BEGINNER_MINES,4,2             ## @BEGINNER_MINES
	.comm	_ADVANCED_COLS,4,2              ## @ADVANCED_COLS
	.comm	_ADVANCED_ROWS,4,2              ## @ADVANCED_ROWS
	.comm	_ADVANCED_MINES,4,2             ## @ADVANCED_MINES
	.comm	_EXPERT_COLS,4,2                ## @EXPERT_COLS
	.comm	_EXPERT_ROWS,4,2                ## @EXPERT_ROWS
	.comm	_EXPERT_MINES,4,2               ## @EXPERT_MINES
	.no_dead_strip	_SetDifficulty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetDifficulty
_SetDifficulty:                         ; @SetDifficulty
	.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	x20, x1
	mov	x19, x0
	cmp	w1, #129
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x19, #20]
Lloh0:
	adrp	x8, _DLG_CUSTOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLG_CUSTOM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	ldr	w2, [x19, #16]
Lloh3:
	adrp	x8, _CustomDlgProc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CustomDlgProc@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x4, x19
	bl	_DialogBoxParamW
	cbnz	x0, LBB0_9
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_GetMenu
	mov	x21, x0
Lloh6:
	adrp	x22, _IDM_BEGINNER@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IDM_BEGINNER@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19]
	add	w1, w9, w8
Lloh8:
	adrp	x8, _MF_UNCHECKED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MF_UNCHECKED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_CheckMenuItem
	str	w20, [x19]
	ldr	w8, [x22]
	add	w1, w8, w20
Lloh11:
	adrp	x8, _MF_CHECKED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MF_CHECKED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_CheckMenuItem
	cmp	w20, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #131
	b.ne	LBB0_9
; %bb.5:
Lloh14:
	adrp	x8, _ADVANCED_MINES@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADVANCED_MINES@GOTPAGEOFF]
Lloh16:
	adrp	x9, _ADVANCED_ROWS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ADVANCED_ROWS@GOTPAGEOFF]
Lloh18:
	adrp	x10, _ADVANCED_COLS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ADVANCED_COLS@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _EXPERT_MINES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXPERT_MINES@GOTPAGEOFF]
Lloh22:
	adrp	x9, _EXPERT_ROWS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EXPERT_ROWS@GOTPAGEOFF]
Lloh24:
	adrp	x10, _EXPERT_COLS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _EXPERT_COLS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh26:
	adrp	x8, _BEGINNER_MINES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BEGINNER_MINES@GOTPAGEOFF]
Lloh28:
	adrp	x9, _BEGINNER_ROWS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BEGINNER_ROWS@GOTPAGEOFF]
Lloh30:
	adrp	x10, _BEGINNER_COLS@GOTPAGE
Lloh31:
	ldr	x10, [x10, _BEGINNER_COLS@GOTPAGEOFF]
LBB0_8:
	ldr	w10, [x10]
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w9, w10, [x19, #8]
	str	w8, [x19, #4]
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DLG_CUSTOM,4,2                 ; @DLG_CUSTOM
	.comm	_CustomDlgProc,4,2              ; @CustomDlgProc
	.comm	_IDM_BEGINNER,4,2               ; @IDM_BEGINNER
	.comm	_MF_UNCHECKED,4,2               ; @MF_UNCHECKED
	.comm	_MF_CHECKED,4,2                 ; @MF_CHECKED
	.comm	_BEGINNER_COLS,4,2              ; @BEGINNER_COLS
	.comm	_BEGINNER_ROWS,4,2              ; @BEGINNER_ROWS
	.comm	_BEGINNER_MINES,4,2             ; @BEGINNER_MINES
	.comm	_ADVANCED_COLS,4,2              ; @ADVANCED_COLS
	.comm	_ADVANCED_ROWS,4,2              ; @ADVANCED_ROWS
	.comm	_ADVANCED_MINES,4,2             ; @ADVANCED_MINES
	.comm	_EXPERT_COLS,4,2                ; @EXPERT_COLS
	.comm	_EXPERT_ROWS,4,2                ; @EXPERT_ROWS
	.comm	_EXPERT_MINES,4,2               ; @EXPERT_MINES
	.no_dead_strip	_SetDifficulty
.subsections_via_symbols
