	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckLevel                     ## -- Begin function CheckLevel
	.p2align	4, 0x90
_CheckLevel:                            ## @CheckLevel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_BEGINNER_ROWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	movl	%ecx, (%rdi)
	movl	%ecx, %eax
LBB0_2:
	movq	_MAX_ROWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_4
## %bb.3:
	movl	%ecx, (%rdi)
	movl	%ecx, %eax
LBB0_4:
	movl	4(%rdi), %ecx
	movq	_BEGINNER_COLS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jge	LBB0_6
## %bb.5:
	movl	%edx, 4(%rdi)
	movl	%edx, %ecx
LBB0_6:
	movq	_MAX_COLS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	jle	LBB0_8
## %bb.7:
	movl	%edx, 4(%rdi)
	movl	%edx, %ecx
LBB0_8:
	movl	8(%rdi), %esi
	movq	_BEGINNER_MINES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	decl	%ecx
	decl	%eax
	imull	%ecx, %eax
	cmpl	%edx, %esi
	cmovgl	%esi, %edx
	jl	LBB0_10
## %bb.9:
	cmpl	%eax, %edx
	jg	LBB0_10
## %bb.11:
	popq	%rbp
	retq
LBB0_10:
	cmpl	%eax, %edx
	cmovll	%edx, %eax
	movl	%eax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEGINNER_ROWS,4,2              ## @BEGINNER_ROWS
	.comm	_MAX_ROWS,4,2                   ## @MAX_ROWS
	.comm	_BEGINNER_COLS,4,2              ## @BEGINNER_COLS
	.comm	_MAX_COLS,4,2                   ## @MAX_COLS
	.comm	_BEGINNER_MINES,4,2             ## @BEGINNER_MINES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckLevel                     ; -- Begin function CheckLevel
	.p2align	2
_CheckLevel:                            ; @CheckLevel
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BEGINNER_ROWS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BEGINNER_ROWS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	str	w9, [x0]
	mov	x8, x9
LBB0_2:
Lloh3:
	adrp	x9, _MAX_ROWS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.3:
	str	w9, [x0]
	mov	x8, x9
LBB0_4:
	ldr	w9, [x0, #4]
Lloh6:
	adrp	x10, _BEGINNER_COLS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BEGINNER_COLS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_6
; %bb.5:
	str	w10, [x0, #4]
	mov	x9, x10
LBB0_6:
Lloh9:
	adrp	x10, _MAX_COLS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_COLS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_8
; %bb.7:
	str	w10, [x0, #4]
	mov	x9, x10
LBB0_8:
	ldr	w10, [x0, #8]
Lloh12:
	adrp	x11, _BEGINNER_MINES@GOTPAGE
Lloh13:
	ldr	x11, [x11, _BEGINNER_MINES@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	sub	w9, w9, #1
	sub	w12, w8, #1
	cmp	w10, w11
	csel	w8, w10, w11, gt
	mul	w9, w12, w9
	ccmp	w8, w9, #0, ge
	b.le	LBB0_10
; %bb.9:
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x0, #8]
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BEGINNER_ROWS,4,2              ; @BEGINNER_ROWS
	.comm	_MAX_ROWS,4,2                   ; @MAX_ROWS
	.comm	_BEGINNER_COLS,4,2              ; @BEGINNER_COLS
	.comm	_MAX_COLS,4,2                   ; @MAX_COLS
	.comm	_BEGINNER_MINES,4,2             ; @BEGINNER_MINES
.subsections_via_symbols
