	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RestartModel
_RestartModel:                          ## @RestartModel
	.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
	movq	%rdi, %r12
	movl	124(%rdi), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	120(%r12), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%edi, %edi
	callq	_RESET_TEXT
	movslq	(%r12), %rdx
	movq	112(%r12), %rcx
	addq	%rdx, %rcx
	leal	7(%rdx), %eax
	testq	%rdx, %rdx
	cmovnsl	%edx, %eax
	sarl	$3, %eax
	movq	_UNIT_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	imull	%esi, %eax
	leal	(,%rax,8), %edx
	subl	%eax, %edx
	movslq	%edx, %rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	%rdx, 104(%r12)
	movq	%rdx, 64(%r12)
	movl	8(%r12), %eax
	movl	%eax, 4(%r12)
	cmpl	$12, %eax
	movl	$12, %edi
	cmovll	%eax, %edi
	notl	%edi
	movl	%edi, 16(%r12)
	movl	%edi, 12(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%r12)
	subq	%rsi, %rcx
	movq	%rcx, 72(%r12)
	movq	%rcx, 80(%r12)
	movq	%rcx, 56(%r12)
	movabsq	$1103806595327, %rax            ## imm = 0x101000000FF
	movq	%rax, (%rcx)
	movups	%xmm0, 16(%rcx)
	movq	%rdx, 48(%r12)
	movl	$128, %edi
	callq	_U2B
	addq	%rax, 64(%r12)
	movq	48(%r12), %rdi
	callq	_REF
	movq	56(%r12), %rcx
	movl	%eax, 8(%rcx)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	leaq	(%rax,%r14), %rdi
	movq	%rbx, 8(%rax,%r14)
	movl	$1, (%rax,%r14)
	xorl	%esi, %esi
	callq	_SetSuccessor
	incq	%rbx
	addq	$16, %r14
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	movq	24(%r12), %rdi
	movq	40(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_kInitBinEsc@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r9), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r9), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r9), %r10d
	movl	12(%r9), %r14d
	movl	16(%r9), %r15d
	xorl	%esi, %esi
	movq	_PPMD_BIN_SCALE@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%rdi,%rax,4), %eax
	incl	%ebx
	cmpq	%rax, %rsi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rsi,8), %r11
	movq	(%r13), %rcx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	subq	%rax, %rcx
	movq	%rcx, (%r11)
	movq	%rcx, 64(%r11)
	movq	%rcx, 128(%r11)
	movq	%rcx, 192(%r11)
	movq	%rcx, 256(%r11)
	movq	%rcx, 320(%r11)
	movq	%rcx, 384(%r11)
	movq	%rcx, 448(%r11)
	movq	(%r13), %r8
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, 8(%r11)
	movq	%rcx, 72(%r11)
	movq	%rcx, 136(%r11)
	movq	%rcx, 200(%r11)
	movq	%rcx, 264(%r11)
	movq	%rcx, 328(%r11)
	movq	%rcx, 392(%r11)
	movq	%rcx, 456(%r11)
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, 16(%r11)
	movq	%rcx, 80(%r11)
	movq	%rcx, 144(%r11)
	movq	%rcx, 208(%r11)
	movq	%rcx, 272(%r11)
	movq	%rcx, 336(%r11)
	movq	%rcx, 400(%r11)
	movq	%rcx, 464(%r11)
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, 24(%r11)
	movq	%rcx, 88(%r11)
	movq	%rcx, 152(%r11)
	movq	%rcx, 216(%r11)
	movq	%rcx, 280(%r11)
	movq	%rcx, 344(%r11)
	movq	%rcx, 408(%r11)
	movq	%rcx, 472(%r11)
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, 32(%r11)
	movq	%rcx, 96(%r11)
	movq	%rcx, 160(%r11)
	movq	%rcx, 224(%r11)
	movq	%rcx, 288(%r11)
	movq	%rcx, 352(%r11)
	movq	%rcx, 416(%r11)
	movq	%rcx, 480(%r11)
	movl	20(%r9), %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	subq	%rax, %r8
	movq	%r8, 40(%r11)
	movq	%r8, 104(%r11)
	movq	%r8, 168(%r11)
	movq	%r8, 232(%r11)
	movq	%r8, 296(%r11)
	movq	%r8, 360(%r11)
	movq	%r8, 424(%r11)
	movq	%r8, 488(%r11)
	movq	(%r13), %rcx
	movl	24(%r9), %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rcx, %rdx
	subq	%rax, %rdx
	movq	%rdx, 48(%r11)
	movq	%rdx, 112(%r11)
	movq	%rdx, 176(%r11)
	movq	%rdx, 240(%r11)
	movq	%rdx, 304(%r11)
	movq	%rdx, 368(%r11)
	movq	%rdx, 432(%r11)
	movq	%rdx, 496(%r11)
	movl	28(%r9), %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	subq	%rax, %rcx
	movq	%rcx, 56(%r11)
	movq	%rcx, 120(%r11)
	movq	%rcx, 184(%r11)
	movq	%rcx, 248(%r11)
	movq	%rcx, 312(%r11)
	movq	%rcx, 376(%r11)
	movq	%rcx, 440(%r11)
	movq	%rcx, 504(%r11)
	incq	%rsi
	decl	%ebx
	cmpq	$25, %rsi
	jne	LBB0_3
## %bb.5:
	movq	24(%r12), %r10
	movq	32(%r12), %r8
	xorl	%r9d, %r9d
	movq	_PPMD_PERIOD_BITS@GOTPCREL(%rip), %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	leaq	3(%r9), %rax
	leal	(%rbx,%rbx), %edx
	addl	$3, %edx
	decl	%ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	4(%rbx), %ecx
	movl	(%r10,%rcx,4), %ecx
	addl	$2, %edx
	incl	%ebx
	cmpq	%rcx, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r8,%r9,8), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r11), %ecx
	addl	$-4, %ecx
	movl	%ecx, (%rsi,%rax)
	movl	%edx, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movq	%rdi, 8(%rsi,%rax)
	movl	$7, 4(%rsi,%rax)
	movl	(%r11), %ecx
	addl	$-4, %ecx
	movl	%ecx, 16(%rsi,%rax)
	movl	%edx, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movq	%rdi, 24(%rsi,%rax)
	movl	$7, 20(%rsi,%rax)
	addq	$32, %rax
	cmpq	$512, %rax                      ## imm = 0x200
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%r9
	cmpq	$24, %r9
	jne	LBB0_6
## %bb.11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIT_SIZE,4,2                  ## @UNIT_SIZE
	.comm	_PPMD_BIN_SCALE,8,3             ## @PPMD_BIN_SCALE
	.comm	_kInitBinEsc,8,3                ## @kInitBinEsc
	.comm	_PPMD_PERIOD_BITS,4,2           ## @PPMD_PERIOD_BITS
	.no_dead_strip	_RestartModel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function RestartModel
lCPI0_0:
	.long	255                             ; 0xff
	.long	257                             ; 0x101
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_RestartModel:                          ; @RestartModel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #124]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19, #120]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	bl	_RESET_TEXT
	ldr	x8, [x19, #112]
	ldrsw	x9, [x19]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w10, w10, #3
Lloh0:
	adrp	x11, _UNIT_SIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _UNIT_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x11, [x11]
	sdiv	w10, w10, w11
	mul	w10, w11, w10
	lsl	w12, w10, #3
	sub	w10, w12, w10
	add	x8, x8, x9
	sub	x9, x8, x11
	sub	x8, x8, w10, sxtw
	str	x8, [x19, #104]
	ldr	w10, [x19, #8]
	str	w10, [x19, #4]
	mov	w11, #12
	cmp	w10, #12
	csel	w10, w10, w11, lt
	mvn	w10, w10
	stp	w10, w10, [x19, #12]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #88]
	stp	x8, x9, [x19, #64]
	str	x9, [x19, #80]
	str	q0, [x9, #16]
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x9]
	stp	x8, x9, [x19, #48]
	mov	w0, #128
	bl	_U2B
	ldr	x8, [x19, #64]
	add	x8, x8, x0
	str	x8, [x19, #64]
	ldr	x0, [x19, #48]
	bl	_REF
	mov	x20, #0
	mov	x21, #0
	ldr	x8, [x19, #56]
	str	w0, [x8, #8]
	mov	w22, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	add	x0, x8, x20
	str	x21, [x0, #8]
	str	w22, [x0]
	mov	w1, #0
	bl	_SetSuccessor
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, #256
	b.ne	LBB0_1
; %bb.2:
	mov	x8, #0
	mov	w9, #0
	ldr	x10, [x19, #24]
Lloh5:
	adrp	x11, _kInitBinEsc@GOTPAGE
Lloh6:
	ldr	x11, [x11, _kInitBinEsc@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	ldr	x12, [x19, #40]
	ldp	w13, w14, [x11]
	ldp	w15, w16, [x11, #8]
	ldr	w17, [x11, #16]
Lloh8:
	adrp	x0, _PPMD_BIN_SCALE@GOTPAGE
Lloh9:
	ldr	x0, [x0, _PPMD_BIN_SCALE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x10, w9, uxtw #2]
	add	w9, w9, #1
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x12, x8, lsl #3]
	ldr	x2, [x0]
	udiv	w3, w13, w9
	sub	x2, x2, x3
	str	x2, [x1]
	ldr	x3, [x0]
	udiv	w4, w14, w9
	sub	x4, x3, x4
	udiv	w5, w15, w9
	sub	x5, x3, x5
	stp	x4, x5, [x1, #8]
	stp	x4, x5, [x1, #72]
	stp	x4, x5, [x1, #136]
	stp	x4, x5, [x1, #200]
	stp	x4, x5, [x1, #264]
	stp	x4, x5, [x1, #328]
	stp	x4, x5, [x1, #392]
	stp	x4, x5, [x1, #456]
	udiv	w4, w16, w9
	sub	x4, x3, x4
	udiv	w5, w17, w9
	sub	x5, x3, x5
	stp	x4, x5, [x1, #24]
	stp	x4, x5, [x1, #88]
	stp	x4, x5, [x1, #152]
	stp	x4, x5, [x1, #216]
	stp	x4, x5, [x1, #280]
	stp	x4, x5, [x1, #344]
	stp	x4, x5, [x1, #408]
	stp	x4, x5, [x1, #472]
	ldp	w4, w5, [x11, #20]
	udiv	w4, w4, w9
	sub	x3, x3, x4
	ldr	x4, [x0]
	udiv	w5, w5, w9
	sub	x5, x4, x5
	stp	x3, x5, [x1, #40]
	stp	x3, x5, [x1, #104]
	stp	x3, x5, [x1, #168]
	stp	x3, x5, [x1, #232]
	stp	x3, x5, [x1, #296]
	stp	x3, x5, [x1, #360]
	stp	x3, x5, [x1, #424]
	stp	x3, x5, [x1, #488]
	ldr	w3, [x11, #28]
	udiv	w3, w3, w9
	sub	x3, x4, x3
	stp	x3, x2, [x1, #56]
	stp	x3, x2, [x1, #120]
	stp	x3, x2, [x1, #184]
	stp	x3, x2, [x1, #248]
	stp	x3, x2, [x1, #312]
	stp	x3, x2, [x1, #376]
	stp	x3, x2, [x1, #440]
	str	x3, [x1, #504]
	add	x8, x8, #1
	sub	w9, w9, #1
	cmp	x8, #25
	b.ne	LBB0_3
; %bb.5:
	mov	x8, #0
	mov	w9, #0
	ldp	x10, x11, [x19, #24]
	mov	w12, #7
Lloh10:
	adrp	x13, _PPMD_PERIOD_BITS@GOTPAGE
Lloh11:
	ldr	x13, [x13, _PPMD_PERIOD_BITS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	add	x15, x8, #3
	lsl	w14, w9, #1
	add	w14, w14, #3
	sub	w9, w9, #1
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w16, w9, #4
	ldr	w16, [x10, w16, uxtw #2]
	add	w14, w14, #2
	add	w9, w9, #1
	cmp	x15, x16
	b.eq	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x15, #0
	ldr	x16, [x11, x8, lsl #3]
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x13]
	sub	w17, w17, #4
	add	x0, x16, x15
	lsl	w1, w14, w17
	str	x1, [x0, #8]
	stp	w17, w12, [x0]
	add	x15, x15, #16
	cmp	x15, #512
	b.ne	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	cmp	x8, #24
	b.ne	LBB0_6
; %bb.11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIT_SIZE,4,2                  ; @UNIT_SIZE
	.comm	_PPMD_BIN_SCALE,8,3             ; @PPMD_BIN_SCALE
	.comm	_kInitBinEsc,8,3                ; @kInitBinEsc
	.comm	_PPMD_PERIOD_BITS,4,2           ; @PPMD_PERIOD_BITS
	.no_dead_strip	_RestartModel
.subsections_via_symbols
