	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function webp_write_packet
_webp_write_packet:                     ## @webp_write_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	callq	_is_animated_webp_packet
	orl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_avio_write
	movl	$1, 4(%r15)
	jmp	LBB0_4
LBB0_2:
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_flush
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	leaq	12(%r15), %rdi
	movq	%r14, %rsi
	callq	_av_packet_ref
LBB0_4:
	incl	8(%r15)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_webp_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function webp_write_packet
_webp_write_packet:                     ; @webp_write_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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_is_animated_webp_packet
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	ldp	w2, w1, [x19, #4]
	bl	_avio_write
	mov	w8, #1
	str	w8, [x21, #4]
	b	LBB0_4
LBB0_2:
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_flush
	tbnz	w0, #31, LBB0_5
; %bb.3:
	add	x0, x21, #12
	mov	x1, x19
	bl	_av_packet_ref
LBB0_4:
	mov	w0, #0
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_webp_write_packet
.subsections_via_symbols
