	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReduceOrder
_ReduceOrder:                           ## @ReduceOrder
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	callq	_REF
	movq	%rax, %r13
	movq	24(%r15), %rdi
	movq	%rax, %rsi
	callq	_SetSuccessor
	movq	_MAX_FREQ@GOTPCREL(%rip), %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	incl	(%r15)
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_SUFFIX
	movq	%rax, %r12
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_SetSuccessor
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 16(%r12)
	je	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_SUFFIX
	movq	%rax, %r12
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_STATS
	movq	24(%r15), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	16(%rax), %rbx
	cmpq	%rcx, 16(%rax)
	movq	%rbx, %rax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %eax
	movl	(%r14), %ecx
	addl	$-9, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$2, %eax
	movl	%eax, 8(%rbx)
	addl	$2, (%r12)
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_ONE_STATE
	movq	%rax, %rbx
	movl	8(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	$32, %eax
	setl	%cl
	addl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_11
LBB0_13:
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	cmpq	%r13, %rax
	jg	LBB0_17
## %bb.14:
	movq	24(%r15), %r14
	movq	%rbx, 24(%r15)
	movq	_False@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_CreateSuccessors
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %rdi
	callq	_REF
	movq	%rax, %r13
LBB0_16:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_SetSuccessor
	movq	%r14, 24(%r15)
LBB0_17:
	cmpl	$1, (%r15)
	jne	LBB0_20
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 32(%r15)
	jne	LBB0_20
## %bb.19:
	movq	24(%r15), %r14
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_SetSuccessor
	addq	$-24, 16(%r15)
LBB0_20:
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	testq	%rax, %rax
	je	LBB0_21
## %bb.23:
	movq	%rbx, %rdi
	callq	_SUCCESSOR
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CTX                            ## TAILCALL
LBB0_21:
	xorl	%r12d, %r12d
LBB0_22:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FREQ,4,2                   ## @MAX_FREQ
	.comm	_False,4,2                      ## @False
	.comm	_PPMD8_MAX_ORDER,4,2            ## @PPMD8_MAX_ORDER
	.comm	_PPMD8_RESTORE_METHOD_FREEZE,8,3 ## @PPMD8_RESTORE_METHOD_FREEZE
	.no_dead_strip	_ReduceOrder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReduceOrder
_ReduceOrder:                           ; @ReduceOrder
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_REF
	mov	x23, x0
	ldr	x0, [x19, #24]
	mov	x1, x23
	bl	_SetSuccessor
Lloh0:
	adrp	x24, _MAX_FREQ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_FREQ@GOTPAGEOFF]
	mov	x22, x20
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	cbz	x21, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_SUFFIX
	mov	x22, x0
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_SUCCESSOR
	cbnz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_SetSuccessor
	mov	x21, #0
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_SUFFIX
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_STATS
	mov	x21, x0
	ldr	x9, [x0]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_8:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21, #16]!
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x24]
	sub	w9, w9, #9
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w8, #2
	str	w8, [x21, #8]
	ldr	w8, [x22]
	add	w8, w8, #2
	str	w8, [x22]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_ONE_STATE
	mov	x21, x0
	ldr	w8, [x0, #8]
	cmp	w8, #32
	cinc	w8, w8, lt
	str	w8, [x0, #8]
	b	LBB0_3
LBB0_12:
	mov	x0, x21
	bl	_SUCCESSOR
	cmp	x0, x23
	b.gt	LBB0_17
; %bb.13:
	ldr	x23, [x19, #24]
	str	x21, [x19, #24]
Lloh2:
	adrp	x8, _False@GOTPAGE
Lloh3:
	ldr	x8, [x8, _False@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x22
	bl	_CreateSuccessors
	cbz	x0, LBB0_15
; %bb.14:
	bl	_REF
	mov	x1, x0
	b	LBB0_16
LBB0_15:
	mov	x1, #0
LBB0_16:
	mov	x0, x21
	bl	_SetSuccessor
	str	x23, [x19, #24]
LBB0_17:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_20
; %bb.18:
	ldr	x8, [x19, #32]
	cmp	x8, x20
	b.ne	LBB0_20
; %bb.19:
	ldr	x20, [x19, #24]
	mov	x0, x21
	bl	_SUCCESSOR
	mov	x1, x0
	mov	x0, x20
	bl	_SetSuccessor
	ldr	x8, [x19, #16]
	sub	x8, x8, #24
	str	x8, [x19, #16]
LBB0_20:
	mov	x0, x21
	bl	_SUCCESSOR
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_SUCCESSOR
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CTX
LBB0_22:
	mov	x22, #0
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FREQ,4,2                   ; @MAX_FREQ
	.comm	_False,4,2                      ; @False
	.comm	_PPMD8_MAX_ORDER,4,2            ; @PPMD8_MAX_ORDER
	.comm	_PPMD8_RESTORE_METHOD_FREEZE,8,3 ; @PPMD8_RESTORE_METHOD_FREEZE
	.no_dead_strip	_ReduceOrder
.subsections_via_symbols
