	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PlaceMines
_PlaceMines:                            ## @PlaceMines
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %edi
	callq	_srand
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r12), %r13
	movslq	%r15d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13,%rax,8), %rdx
	movslq	%r14d, %r14
	shlq	$4, %r14
	movq	%rcx, 8(%rdx,%r14)
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r12), %r15d
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	cltd
	idivl	4(%r12)
	movl	%edx, %ebx
	incl	%ebx
	xorl	%eax, %eax
	callq	_rand
	cltd
	idivl	8(%r12)
                                        ## kill: def $edx killed $edx def $rdx
	incl	%edx
	movq	16(%r12), %r13
	movq	(%r13,%rbx,8), %rcx
	shlq	$4, %rdx
	cmpq	$0, 8(%rcx,%rdx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdx, %rcx
	addq	$8, %rcx
	incl	%r15d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_4
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%r13,%rax,8), %rdx
	movq	%rcx, 8(%rdx,%r14)
	movl	4(%r12), %ecx
	incl	%ecx
	cmpl	$2, %ecx
	jb	LBB0_31
## %bb.6:
	movl	8(%r12), %r9d
	incl	%r9d
	movl	%ecx, %r8d
	movq	%r9, %r11
	shlq	$4, %r11
	addq	$-16, %r11
	movl	$1, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r10, %rdi
	cmpq	%r8, %r10
	je	LBB0_31
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	cmpl	$1, %r9d
	jbe	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-8(%r13,%rdi,8), %rdx
	movq	(%r13,%rdi,8), %rcx
	leaq	1(%rdi), %r10
	movq	8(%r13,%rdi,8), %rbx
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$16, %rsi
	cmpq	%rsi, %r11
	je	LBB0_29
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 8(%rdx,%rsi)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r13,%rdi,8), %rax
	incl	16(%rax,%rsi)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 24(%rdx,%rsi)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r13,%rdi,8), %rax
	incl	16(%rax,%rsi)
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 40(%rdx,%rsi)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 8(%rcx,%rsi)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 24(%rcx,%rsi)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 40(%rcx,%rsi)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 8(%rbx,%rsi)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 24(%rbx,%rsi)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	$0, 40(%rbx,%rsi)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=2
	incl	16(%rcx,%rsi)
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	movq	%rdi, %r10
	cmpq	%r8, %r10
	jne	LBB0_7
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_PlaceMines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PlaceMines
_PlaceMines:                            ; @PlaceMines
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, #0
	bl	_time
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_srand
Lloh0:
	adrp	x23, _TRUE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x8, [x19, #16]
	sxtw	x22, w21
	ldr	x10, [x8, w21, sxtw #3]
	sxtw	x21, w20
	add	x10, x10, w20, sxtw #4
	str	x9, [x10, #8]
	ldr	w9, [x19]
	cbz	w9, LBB0_5
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19]
	cmp	w20, w9
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	ldr	w8, [x19, #4]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w24, w8, #1
	bl	_rand
	ldr	w8, [x19, #8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w9, w8, #1
	ldr	x8, [x19, #16]
	ldr	x10, [x8, w24, uxtw #3]
	add	x9, x10, w9, uxtw #4
	ldr	x10, [x9, #8]!
	cbnz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	x10, [x23]
	str	x10, [x9]
	b	LBB0_2
LBB0_5:
Lloh2:
	adrp	x9, _FALSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	ldr	x10, [x8, x22, lsl #3]
Lloh4:
	ldr	x9, [x9]
	add	x10, x10, x21, lsl #4
	str	x9, [x10, #8]
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	cmp	w9, #2
	b.lo	LBB0_30
; %bb.6:
	ldr	w10, [x19, #8]
	add	w10, w10, #1
	lsl	x11, x10, #4
	sub	x11, x11, #16
	mov	w12, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x13, x12, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x12, x13
	cmp	x13, x9
	b.eq	LBB0_30
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w10, #1
	b.ls	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x14, #0
	add	x15, x8, x12, lsl #3
	ldp	x17, x15, [x15, #-8]
	add	x13, x12, #1
	ldr	x16, [x8, x13, lsl #3]
	add	x16, x16, #40
	add	x17, x17, #24
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x14, x14, #16
	cmp	x11, x14
	b.eq	LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x17, x14
	ldur	x0, [x0, #-16]
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x8, x12, lsl #3]
	add	x0, x0, x14
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x17, x14]
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x8, x12, lsl #3]
	add	x0, x0, x14
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x17, x14
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x15, x14
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x15, x14
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x15, x14
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x15, x14
	ldr	x1, [x0, #40]
	cbz	x1, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x16, x14
	ldur	x1, [x0, #-32]
	cbz	x1, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x1, x15, x14
	ldr	w2, [x1, #16]
	add	w2, w2, #1
	str	w2, [x1, #16]
LBB0_26:                                ;   in Loop: Header=BB0_12 Depth=2
	ldur	x0, [x0, #-16]
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x15, x14
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [x16, x14]
	cbz	x0, LBB0_11
; %bb.29:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x15, x14
	ldr	w1, [x0, #16]
	add	w1, w1, #1
	str	w1, [x0, #16]
	b	LBB0_11
LBB0_30:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_PlaceMines
.subsections_via_symbols
