	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function next_CE
_next_CE:                               ## @next_CE
	.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
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	8(%rdi), %r10
	leal	-1(%rax), %esi
	movl	%esi, (%rdi)
	movq	(%r10,%rsi,8), %r8
	movq	%r8, (%r10)
	cmpl	$3, %eax
	jb	LBB0_8
## %bb.2:
	xorl	%eax, %eax
	movl	$1, %edx
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rcx
	movq	(%r10,%rcx,8), %r11
	addl	$2, %eax
	cmpl	%esi, %eax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rcx
	movq	(%r10,%rcx,8), %rcx
	cmpq	%r11, %rcx
	cmovll	%eax, %edx
	cmovlq	%rcx, %r11
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ecx
	cmpq	%r11, %r8
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r9d, %rax
	movq	(%r10,%rax,8), %r9
	movslq	%ecx, %rsi
	movq	(%r10,%rsi,8), %rdx
	movq	%rdx, (%r10,%rax,8)
	movq	%r9, (%r10,%rsi,8)
	leal	(%rcx,%rcx), %edx
	incl	%edx
	movl	(%rdi), %esi
	cmpl	%esi, %edx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rcx,%rcx), %eax
	movq	8(%rdi), %r10
	movl	%ecx, %r9d
	jmp	LBB0_3
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_next_CE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function next_CE
_next_CE:                               ; @next_CE
	.cfi_startproc
; %bb.0:
	ldr	w11, [x0]
	subs	w10, w11, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x0, #8]
	str	w10, [x0]
	ldr	x8, [x9, w10, uxtw #3]
	str	x8, [x9]
	cmp	w11, #3
	b.lo	LBB0_8
; %bb.2:
	mov	w14, #0
	mov	w11, #0
	mov	w12, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x9, w12, sxtw #3]
	add	w13, w14, #2
	cmp	w13, w10
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x9, w13, sxtw #3]
	cmp	x10, x15
	csel	x15, x10, x15, lt
	csel	w13, w13, w12, lt
	cmp	x8, x15
	b.gt	LBB0_6
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, x12
	cmp	x8, x15
	b.le	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x10, x11, #3, #32
	ldr	x11, [x9, x10]
	sbfiz	x12, x13, #3, #32
	ldr	x14, [x9, x12]
	str	x14, [x9, x10]
	str	x11, [x9, x12]
	mov	w12, #1
	bfi	w12, w13, #1, #31
	ldr	w10, [x0]
	cmp	w12, w10
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w14, w13, #1
	ldr	x9, [x0, #8]
	mov	x11, x13
	b	LBB0_3
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_next_CE
.subsections_via_symbols
