	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_animated_webp_packet
_is_animated_webp_packet:               ## @is_animated_webp_packet
	.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
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	jl	LBB0_6
## %bb.3:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_AV_RL32
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_AV_RL32
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	movl	$12, %eax
	cmovnel	%ecx, %eax
	leal	4(%rax), %edx
	cmpl	%edx, (%rbx)
	jl	LBB0_6
## %bb.4:
	movl	%eax, %r15d
	movq	8(%rbx), %rdi
	addq	%r15, %rdi
	callq	_AV_RL32
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_AV_RL32
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jne	LBB0_7
## %bb.5:
	movq	8(%rbx), %rdx
	movl	$1, %ecx
	testb	$2, 8(%r15,%rdx)
	je	LBB0_7
LBB0_6:
	movl	%ecx, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RIFF"

L_.str.1:                               ## @.str.1
	.asciz	"VP8X"

	.no_dead_strip	_is_animated_webp_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_animated_webp_packet
_is_animated_webp_packet:               ; @is_animated_webp_packet
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	cmp	w8, #4
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_AV_RL32
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_AV_RL32
	mov	x8, x0
	mov	w0, #0
	cmp	x20, x8
	mov	w8, #12
	csel	w21, w8, wzr, eq
	ldr	w8, [x19]
	add	w9, w21, #4
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.5:
	ldr	x8, [x19, #8]
	add	x0, x8, w21, uxtw
	bl	_AV_RL32
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AV_RL32
	cmp	x20, x0
	b.ne	LBB0_2
; %bb.6:
	ldr	x8, [x19, #8]
	add	x8, x8, w21, uxtw
	ldrb	w8, [x8, #8]
	tbz	w8, #1, LBB0_2
; %bb.7:
	mov	w0, #1
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RIFF"

l_.str.1:                               ; @.str.1
	.asciz	"VP8X"

	.no_dead_strip	_is_animated_webp_packet
.subsections_via_symbols
