	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stone
_stone:                                 ## @stone
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	_D_MINIMAL@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	callq	_isqrt
	movl	$256, %edi                      ## imm = 0x100
	movl	%eax, %esi
	callq	_MAX
	movq	%rax, %r15
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_newcand
	movl	%eax, (%r14)
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.4:
	incl	%ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_newcand
	movl	%eax, (%r14,%rbx,4)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	%rbx, %r12
	je	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax,%r12,4), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subl	(%rcx,%rax,4), %r13d
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r12
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_clist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	cmpl	(%rax,%rcx,4), %r13d
	jle	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%edx, %ebx
	movl	%r13d, %edx
	callq	_search
	movl	%ebx, %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movslq	%eax, %rbx
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	-4(%r14,%rbx,4), %edx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_clist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14,%rbx,4), %r15
	cmpl	%r13d, (%rax,%r15,4)
	jle	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r13d, %esi
	callq	_newcand
	movl	%eax, (%r14,%rbx,4)
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movl	%r15d, %edx
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r12), %r13d
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	addq	$4, %r12
	cmpq	%r15, %rsi
	jl	LBB0_7
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_MINIMAL,4,2                  ## @D_MINIMAL
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_clist,8,3                      ## @clist
	.no_dead_strip	_stone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stone
_stone:                                 ; @stone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x24, x1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _D_MINIMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_MINIMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	bl	_isqrt
	mov	x1, x0
	mov	w0, #256
	bl	_MAX
	mov	x22, x0
LBB0_3:
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_newcand
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	str	w0, [x10]
	cmp	w24, #1
	b.lt	LBB0_20
; %bb.4:
	mov	w19, #0
	add	w8, w24, #1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, #4
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	w20, #1
Lloh6:
	adrp	x24, _clist@GOTPAGE
Lloh7:
	ldr	x24, [x24, _clist@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x20, x8
	b.eq	LBB0_21
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, x20, lsl #2]
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mov	w20, #0
	mov	x21, #0
	lsl	x8, x8, #2
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9, x8]
	neg	w26, w9
	ldr	w25, [x10]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x28, x9, x8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x27, x20
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w26, [x28], #4
	cmp	w26, #1
	ccmp	x21, x22, #0, ge
	mov	x20, x27
	b.ge	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	w8, [x8, w25, sxtw #2]
	cmp	w26, w8
	b.le	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x19
	mov	x2, x26
	bl	_search
	mov	x27, x0
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	w8, w20, #1
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x8, x10, w27, sxtw #2
	ldur	w25, [x8, #-4]
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	cmp	w27, w19
	b.gt	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x23, x22
	mov	x22, x24
	ldr	x8, [x24]
	ldrsw	x24, [x10, w27, sxtw #2]
	ldr	w8, [x8, x24, lsl #2]
	cmp	w8, w26
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	sxtw	x20, w27
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x26
	mov	x2, x25
	bl	_newcand
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w0, [x8, x20, lsl #2]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	x21, x21, #1
	mov	x25, x24
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x27, x20
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x24, x22
	mov	x22, x23
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_newcand
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w0, [x8, w27, sxtw #2]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	w19, w19, #1
	b	LBB0_6
LBB0_20:
	mov	w19, #0
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_D_MINIMAL,4,2                  ; @D_MINIMAL
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_clist,8,3                      ; @clist
	.no_dead_strip	_stone
.subsections_via_symbols
