	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function model_reset
_model_reset:                           ## @model_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, 24(%rdi)
	movslq	(%rdi), %rcx
	cmpq	$1, %rcx
	jle	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rcx
	decq	%rcx
	cmpq	%rcx, %rdx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	decq	%rcx
	movq	8(%rbx), %rax
LBB0_4:
	movl	$0, (%rax,%rcx,4)
	movl	(%rbx), %esi
	movl	%esi, 16(%rbx)
	movl	$1, 20(%rbx)
	decl	%esi
	movq	%rbx, %rdi
	callq	_model_update
	movl	(%rbx), %eax
	addl	$6, %eax
	sarl	%eax
	movl	%eax, 16(%rbx)
	movl	%eax, 20(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_model_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function model_reset
_model_reset:                           ; @model_reset
	.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, x0
	str	xzr, [x0, #24]
	ldrsw	x8, [x0]
	cmp	w8, #1
	b.le	LBB0_3
; %bb.1:
	mov	x10, #0
	ldr	x8, [x19, #8]
	mov	w11, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x8, x10, lsl #2]
	add	x10, x10, #1
	ldrsw	x9, [x19]
	sub	x9, x9, #1
	cmp	x10, x9
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	sub	x9, x8, #1
	ldr	x8, [x19, #8]
LBB0_4:
	str	wzr, [x8, x9, lsl #2]
	ldr	w8, [x19]
	mov	w9, #1
	stp	w8, w9, [x19, #16]
	sub	w1, w8, #1
	mov	x0, x19
	bl	_model_update
	ldr	w8, [x19]
	add	w8, w8, #6
	asr	w8, w8, #1
	stp	w8, w8, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_model_reset
.subsections_via_symbols
