	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SetLerpFrameAnimation
_UI_SetLerpFrameAnimation:              ## @UI_SetLerpFrameAnimation
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%edx, (%rsi)
	movq	_ANIM_TOGGLEBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%edx, %ebx
	js	LBB0_2
## %bb.1:
	movq	_MAX_ANIMATIONS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_va
	movl	%eax, %edi
	callq	_trap_Error
LBB0_3:
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, 24(%r15)
	movq	(%rax,%rcx,8), %rax
	addq	8(%r15), %rax
	movq	%rax, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANIM_TOGGLEBIT,4,2             ## @ANIM_TOGGLEBIT
	.comm	_MAX_ANIMATIONS,4,2             ## @MAX_ANIMATIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad animation number: %i"

	.no_dead_strip	_UI_SetLerpFrameAnimation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SetLerpFrameAnimation
_UI_SetLerpFrameAnimation:              ; @UI_SetLerpFrameAnimation
	.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
	str	w2, [x1]
Lloh0:
	adrp	x8, _ANIM_TOGGLEBIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANIM_TOGGLEBIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	w21, w2, w8
Lloh3:
	adrp	x8, _MAX_ANIMATIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_ANIMATIONS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w21, w8, #0, ge
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_va
	bl	_trap_Error
LBB0_2:
	ldr	x8, [x20]
	sbfiz	x9, x21, #3, #32
	add	x10, x8, x9
	ldr	x11, [x19, #8]
	ldr	x8, [x8, x9]
	add	x8, x8, x11
	stp	x8, x10, [x19, #16]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ANIM_TOGGLEBIT,4,2             ; @ANIM_TOGGLEBIT
	.comm	_MAX_ANIMATIONS,4,2             ; @MAX_ANIMATIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad animation number: %i"

	.no_dead_strip	_UI_SetLerpFrameAnimation
.subsections_via_symbols
