	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_anim_duration
_get_anim_duration:                     ## @get_anim_duration
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %edx
	movq	%rdi, %rsi
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_init
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	movl	$10, %r14d
	cmpl	$9, %eax
	jl	LBB0_6
## %bb.1:
	leaq	-36(%rbp), %r15
	movq	_ID_ANHD@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	cmpl	(%r12), %ebx
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$8, %eax
	jg	LBB0_2
	jmp	LBB0_6
LBB0_3:
	cmpl	$40, %eax
	jb	LBB0_6
## %bb.4:
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$14, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ID_ANHD,4,2                    ## @ID_ANHD
	.no_dead_strip	_get_anim_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_anim_duration
_get_anim_duration:                     ; @get_anim_duration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x2, x1
	mov	x1, x0
	add	x0, sp, #12
	bl	_bytestream2_init
	add	x0, sp, #12
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	w0, #9
	b.lt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x20, _ID_ANHD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ID_ANHD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_le32
	mov	x19, x0
	add	x0, sp, #12
	bl	_bytestream2_get_be32
	ldr	w8, [x20]
	cmp	w19, w8
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #12
	mov	w1, #0
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	w0, #8
	b.gt	LBB0_2
	b	LBB0_5
LBB0_4:
	cmp	w0, #40
	b.hs	LBB0_7
LBB0_5:
	mov	w0, #10
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	add	x0, sp, #12
	mov	w1, #14
	bl	_bytestream2_skip
	add	x0, sp, #12
	bl	_bytestream2_get_be32
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ID_ANHD,4,2                    ; @ID_ANHD
	.no_dead_strip	_get_anim_duration
.subsections_via_symbols
