	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_animation_update          ## -- Begin function menu_animation_update
	.p2align	4, 0x90
_menu_animation_update:                 ## @menu_animation_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_menu_animation_update_time
	movq	_anim@GOTPCREL(%rip), %r15
	movq	$1, (%r15)
	movl	8(%r15), %edi
	callq	_da_count
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_delta_time@GOTPCREL(%rip), %r12
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	movl	%r14d, %esi
	callq	_da_delete
	decl	%r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movl	8(%r15), %edi
	callq	_da_count
	cmpl	%eax, %r14d
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movl	%r14d, %esi
	callq	_da_getptr
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	movq	8(%rbx), %rcx
	movq	%rdi, (%rbx)
	movq	56(%rbx), %rsi
	movq	40(%rbx), %rdx
	subq	%rsi, %rdx
	callq	*64(%rbx)
	movq	48(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rax
	movq	%rax, (%rcx)
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %edi
	callq	*%rax
	jmp	LBB0_7
LBB0_9:
	cmpl	$0, 4(%r15)
	je	LBB0_17
## %bb.10:
	movl	8(%r15), %edi
	callq	_da_count
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	movl	8(%r15), %edi
	callq	_da_count
	cmpl	%eax, %ebx
	jae	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movl	%ebx, %esi
	callq	_da_getptr
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 16(%rax)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	8(%r15), %edi
	movl	%ebx, %esi
	callq	_da_delete
	decl	%ebx
	jmp	LBB0_15
LBB0_16:
	movl	$0, 4(%r15)
LBB0_17:
	movl	12(%r15), %edi
	callq	_da_count
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	12(%r15), %ebx
	movl	%ebx, %edi
	callq	_da_count
	movl	8(%r15), %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_da_addn
	movl	12(%r15), %edi
	callq	_da_clear
LBB0_19:
	movl	$0, (%r15)
	movl	8(%r15), %edi
	callq	_da_count
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movq	_animation_is_active@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_anim,16,2                      ## @anim
	.comm	_delta_time,8,3                 ## @delta_time
	.comm	_animation_is_active,4,2        ## @animation_is_active
.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 menu_animation_update
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_animation_update
	.p2align	2
_menu_animation_update:                 ; @menu_animation_update
	.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, x1
	mov	x20, x0
	bl	_config_get_ptr
	ldr	w0, [x0]
	mov	x1, x20
	mov	x2, x19
	bl	_menu_animation_update_time
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x21, _anim@GOTPAGE
Lloh3:
	ldr	x21, [x21, _anim@GOTPAGEOFF]
	str	d0, [x21]
	ldr	w0, [x21, #8]
	bl	_da_count
	cbz	w0, LBB0_9
; %bb.1:
	mov	w19, #0
Lloh4:
	adrp	x22, _delta_time@GOTPAGE
Lloh5:
	ldr	x22, [x22, _delta_time@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_da_delete
	sub	w19, w19, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	ldr	w0, [x21, #8]
	bl	_da_count
	cmp	w19, w0
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_da_getptr
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldp	x9, x3, [x20]
	add	x0, x9, x8
	str	x0, [x20]
	ldp	x1, x8, [x20, #56]
	ldr	x9, [x20, #40]
	sub	x2, x9, x1
	blr	x8
	ldr	x8, [x20, #48]
	str	x0, [x8]
	ldp	x9, x10, [x20]
	cmp	x9, x10
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x10, [x20, #32]
	str	x10, [x8]
	cbz	x9, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #24]
	blr	x9
	b	LBB0_2
LBB0_9:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_17
; %bb.10:
	ldr	w0, [x21, #8]
	bl	_da_count
	cbz	w0, LBB0_16
; %bb.11:
	mov	w19, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w19, w19, #1
	ldr	w0, [x21, #8]
	bl	_da_count
	cmp	w19, w0
	b.hs	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_da_getptr
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_da_delete
	sub	w19, w19, #1
	b	LBB0_12
LBB0_16:
	str	wzr, [x21, #4]
LBB0_17:
	ldr	w0, [x21, #12]
	bl	_da_count
	cbz	w0, LBB0_19
; %bb.18:
	ldr	w19, [x21, #12]
	mov	x0, x19
	bl	_da_count
	mov	x2, x0
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_da_addn
	ldr	w0, [x21, #12]
	bl	_da_clear
LBB0_19:
	str	wzr, [x21]
	ldr	w0, [x21, #8]
	bl	_da_count
	cmp	w0, #0
	cset	w0, ne
Lloh6:
	adrp	x8, _animation_is_active@GOTPAGE
Lloh7:
	ldr	x8, [x8, _animation_is_active@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_anim,16,2                      ; @anim
	.comm	_delta_time,8,3                 ; @delta_time
	.comm	_animation_is_active,4,2        ; @animation_is_active
.subsections_via_symbols
