	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evolve
_evolve:                                ## @evolve
	.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
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	(%rbx), %r8
	movl	8(%rbx), %edx
	movl	12(%rbx), %eax
	movl	%edx, 16(%rbx)
	movl	20(%rbx), %edi
	decl	%edi
	leal	1(%rdx), %ecx
	xorl	%esi, %esi
	cmpl	%edi, %edx
	cmovnel	%ecx, %esi
	movl	%esi, 8(%rbx)
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	imull	%eax, %edx
	movslq	%edx, %rcx
	leaq	(%r8,%rcx,4), %r12
	imull	%eax, %esi
	movslq	%esi, %rcx
	leaq	(%r8,%rcx,4), %r13
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	leal	-1(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$1, %eax
	setne	%dl
	movl	(%r12,%rcx,4), %eax
	shll	$2, %eax
	movl	(%r12), %r9d
	addl	%r9d, %r9d
	orl	%eax, %r9d
	orl	(%r12,%rdx,4), %r9d
	jmp	LBB0_6
LBB0_3:
	movl	(%r12), %r9d
	addl	%r9d, %r9d
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.4:
	movl	4(%r12), %ecx
LBB0_5:
	orl	%ecx, %r9d
LBB0_6:
	movl	24(%rbx), %eax
	xorl	%ecx, %ecx
	btl	%r9d, %eax
	setb	%cl
	movl	%ecx, (%r13)
	movl	%r9d, %eax
	andl	$4, %eax
	movl	%r9d, %r8d
	andl	$2, %r8d
	andl	$1, %r9d
	movl	%ecx, (%rsp)
	leal	32(,%rax,8), %ecx
	shll	$4, %r8d
	addl	$32, %r8d
	shll	$5, %r9d
	addl	$32, %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ff_dlog
	movl	12(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_14
## %bb.7:
	movl	$1, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	orl	%eax, %r9d
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%rbx), %eax
	xorl	%ecx, %ecx
	btl	%r9d, %eax
	setb	%cl
	movl	%ecx, (%r13,%rdx,4)
	movl	%r9d, %eax
	andl	$4, %eax
	movl	%r9d, %r8d
	andl	$2, %r8d
	andl	$1, %r9d
	movl	%ecx, (%rsp)
	leal	32(,%rax,8), %ecx
	shll	$4, %r8d
	addl	$32, %r8d
	shll	$5, %r9d
	addl	$32, %r9d
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ff_dlog
	movslq	12(%rbx), %rax
	movq	%r14, %rdx
	cmpq	%rax, %r14
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%rdx), %r14
	movl	%eax, %eax
	movq	%rdx, %rcx
	shlq	$32, %rcx
	movabsq	$-4294967296, %rsi              ## imm = 0xFFFFFFFF00000000
	addq	%rsi, %rcx
	sarq	$30, %rcx
	movl	(%r12,%rcx), %ecx
	shll	$2, %ecx
	movl	(%r12,%rdx,4), %r9d
	addl	%r9d, %r9d
	orl	%ecx, %r9d
	cmpq	%rax, %r14
	movl	%r14d, %eax
	movl	$0, %ecx
	cmoveq	%rcx, %rax
	orl	(%r12,%rax,4), %r9d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-4(%r12,%rdx,4), %ecx
	movl	(%r12,%rdx,4), %r9d
	shll	$2, %ecx
	addl	%r9d, %r9d
	orl	%ecx, %r9d
	leaq	1(%rdx), %r14
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r12,%rdx,4), %eax
	jmp	LBB0_12
LBB0_14:
	incl	28(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i:%d context:%c%c%c -> cell:%d\n"

	.no_dead_strip	_evolve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evolve
_evolve:                                ; @evolve
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x21, [x0]
	ldr	x9, [x21]
	ldp	w10, w8, [x21, #8]
	str	w10, [x21, #16]
	ldr	w11, [x21, #20]
	sub	w11, w11, #1
	cmp	w10, w11
	csinc	w11, wzr, w10, eq
	str	w11, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x0
	mul	w10, w8, w10
	add	x22, x9, w10, sxtw #2
	mul	w10, w11, w8
	add	x23, x9, w10, sxtw #2
	ldr	x9, [x21, #32]
	cbz	x9, LBB0_3
; %bb.2:
	subs	w8, w8, #1
	cset	w9, ne
	ldr	w8, [x22, w8, uxtw #2]
	ldr	w10, [x22]
	lsl	w10, w10, #1
	orr	w8, w10, w8, lsl #2
	ldr	w9, [x22, w9, uxtw #2]
	orr	w8, w8, w9
	b	LBB0_7
LBB0_3:
	ldr	w9, [x22]
	lsl	w9, w9, #1
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.4:
	ldr	w8, [x22, #4]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	orr	w8, w9, w8
LBB0_7:
	ldr	w9, [x21, #24]
	lsr	w9, w9, w8
	and	w6, w9, #0x1
	str	w6, [x23]
	tst	w8, #0x4
	mov	w24, #64
	mov	w25, #32
	csel	w3, w25, w24, eq
	tst	w8, #0x2
	csel	w4, w25, w24, eq
	tst	w8, #0x1
	csel	w5, w25, w24, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_ff_dlog
	ldr	w8, [x21, #12]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.8:
	mov	w2, #1
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	x26, #-4294967296
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x2, #1
	add	x9, x26, x2, lsl #32
	asr	x9, x9, #30
	ldr	w9, [x22, x9]
	ldr	w10, [x22, x2, lsl #2]
	lsl	w10, w10, #1
	orr	w9, w10, w9, lsl #2
	and	x10, x27, #0xffffffff
	cmp	x27, w8, uxtw
	csel	x8, xzr, x10, eq
	ldr	w8, [x22, x8, lsl #2]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	orr	w8, w9, w8
	ldr	w9, [x21, #24]
	lsr	w9, w9, w8
	and	w6, w9, #0x1
	str	w6, [x23, x2, lsl #2]
	tst	w8, #0x4
	csel	w3, w25, w24, eq
	tst	w8, #0x2
	csel	w4, w25, w24, eq
	tst	w8, #0x1
	csel	w5, w25, w24, eq
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ff_dlog
	ldrsw	x8, [x21, #12]
	mov	x2, x27
	cmp	x27, x8
	b.ge	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #32]
	cbnz	x9, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x2, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x22, x27, lsl #2]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #0
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x22, x2, lsl #2
	ldp	w10, w9, [x9, #-4]
	lsl	w9, w9, #1
	orr	w9, w9, w10, lsl #2
	b	LBB0_10
LBB0_16:
	ldr	w8, [x21, #28]
	add	w8, w8, #1
	str	w8, [x21, #28]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i:%d context:%c%c%c -> cell:%d\n"

	.no_dead_strip	_evolve
.subsections_via_symbols
