	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ANIMATE_DrawFrame
_ANIMATE_DrawFrame:                     ## @ANIMATE_DrawFrame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movl	60(%rbx), %edi
	movq	64(%rbx), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mmioSeek
	movl	60(%rbx), %edi
	movl	36(%rbx), %esi
	movl	56(%rbx), %edx
	callq	_mmioRead
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_fnIC@GOTPCREL(%rip), %rax
	movl	40(%rbx), %edx
	movl	36(%rbx), %ecx
	movl	28(%rbx), %r9d
	movl	32(%rbx), %r8d
	xorl	%esi, %esi
	callq	*(%rax)
	movq	_ICERR_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ANIMATE_PaintFrame
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movslq	24(%rbx), %rcx
	movq	_TRUE@GOTPCREL(%rip), %r14
	cmpq	%rcx, %rax
	jb	LBB0_7
## %bb.4:
	movq	16(%rbx), %rax
	movq	%rax, (%rbx)
	movl	8(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:
	decl	%eax
	movl	%eax, 8(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_ANIMATE_DoStop
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %r14
LBB0_7:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Drawing frame %d (loop %d)\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_fnIC,8,3                       ## @fnIC
	.comm	_ICERR_OK,8,3                   ## @ICERR_OK
L_.str.1:                               ## @.str.1
	.asciz	"Decompression error\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ANIMATE_DrawFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ANIMATE_DrawFrame
_ANIMATE_DrawFrame:                     ; @ANIMATE_DrawFrame
	.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	x20, x1
	mov	x19, x0
	ldr	x1, [x0]
	ldr	w2, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w0, [x19, #60]
	ldr	x8, [x19, #64]
	ldr	x9, [x19]
	ldr	w1, [x8, x9, lsl #2]
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_mmioSeek
	ldr	w1, [x19, #36]
	ldp	w2, w0, [x19, #56]
	bl	_mmioRead
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _fnIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _fnIC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	w3, w2, [x19, #36]
	ldp	w5, w4, [x19, #28]
	mov	w1, #0
	blr	x8
Lloh8:
	adrp	x8, _ICERR_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICERR_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_ANIMATE_PaintFrame
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldrsw	x9, [x19, #24]
	cmp	x8, x9
	b.lo	LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	str	x8, [x19]
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.4:
	subs	w8, w8, #1
	str	w8, [x19, #8]
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ANIMATE_DoStop
LBB0_6:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Drawing frame %d (loop %d)\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_fnIC,8,3                       ; @fnIC
	.comm	_ICERR_OK,8,3                   ; @ICERR_OK
l_.str.1:                               ; @.str.1
	.asciz	"Decompression error\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ANIMATE_DrawFrame
.subsections_via_symbols
