	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spread_chromo                  ## -- Begin function spread_chromo
	.p2align	4, 0x90
_spread_chromo:                         ## @spread_chromo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r8
	movq	(%rsi), %r11
	movq	8(%rdx), %rsi
	movslq	(%rdx), %rcx
	leaq	-1(%rcx), %r10
	movq	%r10, %r9
	shlq	$4, %r9
	cmpq	(%rsi,%r9), %r11
	jg	LBB0_20
## %bb.1:
	movq	%rdx, %r14
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %r15d
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %ecx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %ebx
	cmpl	$-1, %r15d
	jne	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rcx
	shlq	$4, %rcx
	cmpq	(%rsi,%rcx), %r11
	jle	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	movq	(%rsi,%rcx), %rcx
	cmpq	%rcx, %r11
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r10d, %rax
	shlq	$4, %rax
	cmpq	(%rsi,%rax), %r11
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r10d, %eax
	subl	%edx, %eax
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rcx, %r11
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	%edx, %ecx
	movl	$-1, %r15d
	movl	%ebx, %r10d
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r10d, %r15d
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r10d, %eax
	subl	%ebx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	%ebx, %ecx
	movl	$-1, %r15d
	movl	%ebx, %edx
	jmp	LBB0_4
LBB0_14:
	addq	%r9, %rsi
	movl	16(%r14), %ecx
	movq	%r8, %rdx
	callq	_geqo_copy
	movslq	(%r14), %rax
	cmpl	%eax, %r15d
	jge	LBB0_20
## %bb.15:
	movq	8(%r14), %r8
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	-16(%rdx,%r8), %rcx
	movl	-8(%rdx,%r8), %edx
	movslq	%r15d, %rbx
	movl	%eax, %esi
	subl	%r15d, %esi
	movq	%rbx, %rdi
	notq	%rdi
	testb	$1, %sil
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rsi
	shlq	$4, %rsi
	movl	8(%r8,%rsi), %r9d
	movq	(%r8,%rsi), %r10
	movl	%edx, 8(%r8,%rsi)
	movq	%rcx, (%r8,%rsi)
	incq	%rbx
	movq	%r10, %rcx
	movl	%r9d, %edx
LBB0_17:
	addq	%rax, %rdi
	je	LBB0_20
## %bb.18:
	subq	%rbx, %rax
	shlq	$4, %rbx
	leaq	(%rbx,%r8), %rsi
	addq	$24, %rsi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	-16(%rsi), %edi
	movq	-24(%rsi), %rbx
	movl	%edx, -16(%rsi)
	movq	%rcx, -24(%rsi)
	movl	(%rsi), %edx
	movq	-8(%rsi), %rcx
	movl	%edi, (%rsi)
	movq	%rbx, -8(%rsi)
	addq	$32, %rsi
	addq	$-2, %rax
	jne	LBB0_19
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spread_chromo                  ; -- Begin function spread_chromo
	.p2align	2
_spread_chromo:                         ; @spread_chromo
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x9, [x1]
	ldr	x8, [x2, #8]
	ldr	w12, [x2]
	sub	w14, w12, #1
	sbfiz	x10, x14, #4, #32
	ldr	x10, [x8, x10]
	cmp	x9, x10
	b.gt	LBB0_18
; %bb.1:
	mov	x2, x1
	mov	w10, #0
	sxtw	x11, w14
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	mov	w13, #-1
                                        ; kill: def $w14 killed $w14 killed $x14 def $x14
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmn	w20, #1
	b.ne	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sbfiz	x15, x10, #4, #32
	ldr	x15, [x8, x15]
	cmp	x9, x15
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x15, x12, #4, #32
	ldr	x15, [x8, x15]
	cmp	x9, x15
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x12
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x16, x14, #4, #32
	ldr	x16, [x8, x16]
	sub	w17, w14, w10
	cmp	x9, x16
	ccmp	w17, #2, #8, ne
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x14
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w16, w14, w12
	cmp	w16, #0
	cinc	w16, w16, lt
	add	w16, w12, w16, asr #1
	sub	w17, w12, w10
	cmp	w17, #0
	cinc	w17, w17, lt
	add	w17, w10, w17, asr #1
	cmp	x9, x15
	csel	w20, w13, w13, ge
	csel	w14, w14, w12, ge
	csel	w10, w12, w10, ge
	csel	w12, w16, w17, ge
                                        ; kill: def $w12 killed $w12 def $x12
	b	LBB0_3
LBB0_10:
	add	x1, x8, x11, lsl #4
	ldr	w3, [x19, #16]
	bl	_geqo_copy
	ldrsw	x9, [x19]
	cmp	w20, w9
	b.ge	LBB0_18
; %bb.11:
	ldr	x11, [x19, #8]
	add	x10, x11, x9, lsl #4
	ldur	x8, [x10, #-16]
	ldur	w10, [x10, #-8]
	sxtw	x15, w20
	sub	x13, x9, x15
	cmp	x13, #2
	b.hs	LBB0_13
; %bb.12:
	mov	x12, x15
	b	LBB0_16
LBB0_13:
	and	x14, x13, #0xfffffffffffffffe
	add	x12, x14, x15
	add	x15, x11, x15, lsl #4
	add	x15, x15, #16
	mov	x16, x14
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w17, [x15, #-8]
	stur	w10, [x15, #-8]
	ldr	w10, [x15, #8]
	ldur	x0, [x15, #-16]
	stur	x8, [x15, #-16]
	ldr	x8, [x15]
	str	w17, [x15, #8]
	str	x0, [x15], #32
	subs	x16, x16, #2
	b.ne	LBB0_14
; %bb.15:
	cmp	x13, x14
	b.eq	LBB0_18
LBB0_16:
	add	x11, x11, x12, lsl #4
	add	x11, x11, #8
	sub	x9, x9, x12
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	ldur	x13, [x11, #-8]
	str	w10, [x11]
	stur	x8, [x11, #-8]
	add	x11, x11, #16
	mov	x8, x13
	mov	x10, x12
	subs	x9, x9, #1
	b.ne	LBB0_17
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
