	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CutOff
_CutOff:                                ## @CutOff
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.7:
	movq	%r14, %rdi
	callq	_STATS
	movl	(%r14), %edx
	addl	$2, %edx
	shrl	%edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_MoveUnitsUp
	movl	%eax, %edi
	callq	_STATS_REF
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_STATS
	movslq	(%r14), %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	shlq	$4, %rbx
	addq	%rax, %rbx
	movq	%r14, %rdi
	callq	_STATS
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_16:
	testl	%r12d, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.17:
	cmpl	(%r14), %ebx
	je	LBB0_23
## %bb.18:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	callq	_STATS
	movq	%rax, %r15
	testl	%ebx, %ebx
	js	LBB0_19
## %bb.20:
	je	LBB0_21
## %bb.22:
	shll	$4, %ebx
	xorl	%ecx, %ecx
	cmpl	%ebx, 8(%r14)
	setg	%cl
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_Refresh
	jmp	LBB0_23
LBB0_1:
	movq	%r14, %rdi
	callq	_ONE_STATE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SUCCESSOR
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_Ppmd8_GetPtr
	cmpq	%rax, (%r13)
	ja	LBB0_6
## %bb.2:
	xorl	%esi, %esi
	cmpl	%r12d, 8(%r13)
	jbe	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	movq	%rax, %rdi
	callq	_CTX
	leal	1(%r12), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_CutOff
	movl	%eax, %esi
LBB0_4:
	movq	%rbx, %rdi
	callq	_SetSuccessor
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	cmpl	$10, %r12d
	jb	LBB0_23
## %bb.5:
	testq	%rax, %rax
	je	LBB0_6
	jmp	LBB0_23
LBB0_8:
	leal	1(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_STATS
	movq	%r13, %r15
	movq	%r14, %r13
	movq	%r12, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %r12
	decl	%ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shlq	$4, %r12
	addq	%rax, %r12
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_SetSuccessor
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %r12
	movq	%r13, %r14
	movq	%r15, %r13
	callq	_SwapStates
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$-16, %rbx
	movq	%r14, %rdi
	callq	_STATS
	cmpq	%rax, %rbx
	jb	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_Ppmd8_GetPtr
	cmpq	%rax, (%r13)
	ja	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, 8(%r13)
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	movq	%rax, %rdi
	callq	_CTX
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_CutOff
	movq	%rbx, %rdi
	movl	%eax, %esi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_SetSuccessor
	jmp	LBB0_15
LBB0_19:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_FreeUnits
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_SpecialFreeUnit
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	4(%r14), %eax
	andl	$16, %eax
	xorl	%ecx, %ecx
	cmpl	$64, (%r15)
	setge	%cl
	leal	(%rax,%rcx,8), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_ONE_STATE
	movups	(%r15), %xmm0
	movups	%xmm0, (%rax)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_FreeUnits
	movq	%r14, %rdi
	callq	_ONE_STATE
	movl	8(%rax), %ebx
	addl	$11, %ebx
	shrl	$3, %ebx
	movq	%r14, %rdi
	callq	_ONE_STATE
	movq	%rbx, 8(%rax)
LBB0_23:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REF                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_CutOff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CutOff
_CutOff:                                ; @CutOff
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_STATS
	mov	x1, x0
	ldr	w8, [x19]
	add	w8, w8, #2
	lsr	w22, w8, #1
	mov	x0, x20
	mov	x2, x22
	bl	_MoveUnitsUp
	bl	_STATS_REF
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_STATS
	ldrsw	x25, [x19]
	add	x23, x0, x25, lsl #4
	mov	x0, x19
	bl	_STATS
	cmp	x23, x0
	b.hs	LBB0_10
LBB0_2:
	cbz	w21, LBB0_24
; %bb.3:
	ldr	w8, [x19]
	cmp	w25, w8
	b.eq	LBB0_24
; %bb.4:
	str	w25, [x19]
	mov	x0, x19
	bl	_STATS
	mov	x21, x0
	tbnz	w25, #31, LBB0_18
; %bb.5:
	cbz	w25, LBB0_23
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, w25, lsl #4
	cset	w3, gt
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_Refresh
	b	LBB0_24
LBB0_7:
	mov	x0, x19
	bl	_ONE_STATE
	mov	x22, x0
	bl	_SUCCESSOR
	mov	x1, x0
	mov	x0, x20
	bl	_Ppmd8_GetPtr
	ldr	x8, [x20]
	cmp	x8, x0
	b.hi	LBB0_22
; %bb.8:
	ldr	w8, [x20, #8]
	cmp	w8, w21
	b.ls	LBB0_19
; %bb.9:
	mov	x0, x22
	bl	_SUCCESSOR
	bl	_CTX
	mov	x1, x0
	add	w2, w21, #1
	mov	x0, x20
	bl	_CutOff
	mov	x1, x0
	b	LBB0_20
LBB0_10:
	add	w24, w21, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_STATS
	sub	w26, w25, #1
	add	x25, x0, w25, sxtw #4
	mov	x0, x23
	mov	w1, #0
	bl	_SetSuccessor
	mov	x0, x23
	mov	x1, x25
	bl	_SwapStates
	mov	x25, x26
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	x23, x23, #16
	mov	x0, x19
	bl	_STATS
	cmp	x23, x0
	b.lo	LBB0_2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_SUCCESSOR
	mov	x1, x0
	mov	x0, x20
	bl	_Ppmd8_GetPtr
	ldr	x8, [x20]
	cmp	x8, x0
	b.hi	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20, #8]
	mov	x0, x23
	cmp	w8, w21
	b.ls	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_SUCCESSOR
	bl	_CTX
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_CutOff
	mov	x1, x0
	mov	x0, x23
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w1, #0
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_SetSuccessor
	b	LBB0_12
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_FreeUnits
	b	LBB0_22
LBB0_19:
	mov	w1, #0
LBB0_20:
	mov	x0, x22
	bl	_SetSuccessor
	mov	x0, x22
	bl	_SUCCESSOR
	cmp	w21, #10
	b.lo	LBB0_24
; %bb.21:
	cbnz	x0, LBB0_24
LBB0_22:
	mov	x0, x20
	mov	x1, x19
	bl	_SpecialFreeUnit
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	ldr	w8, [x19, #4]
	and	w8, w8, #0x10
	ldr	w9, [x21]
	cmp	w9, #63
	cset	w9, gt
	bfi	w8, w9, #3, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_ONE_STATE
	ldr	q0, [x21]
	str	q0, [x0]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_FreeUnits
	mov	x0, x19
	bl	_ONE_STATE
	ldr	w8, [x0, #8]
	add	w8, w8, #11
	lsr	w20, w8, #3
	mov	x0, x19
	bl	_ONE_STATE
	str	x20, [x0, #8]
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_REF
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_CutOff
.subsections_via_symbols
