	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_write_packet
_avi_write_packet:                      ## @avi_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, -104(%rbp)
	movslq	(%rsi), %r13
	movq	8(%rdi), %rax
	movq	(%rax,%r13,8), %rax
	movq	8(%rax), %r12
	movq	(%r12), %rax
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %r14
	movq	8(%r12), %rbx
	movl	$72, %edi
	movl	$50, %esi
	movl	$54, %edx
	movl	$52, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	movq	%r14, %rbx
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ff_check_h264_startcode
	testl	%eax, %eax
	js	LBB0_33
LBB0_4:
	movl	16(%r15), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_write_skip_frames
	testl	%eax, %eax
	js	LBB0_33
## %bb.5:
	cmpq	$0, 8(%r15)
	je	LBB0_35
## %bb.6:
	movq	16(%r12), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.7:
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 8(%r12)
	jne	LBB0_10
## %bb.9:
	movl	24(%r12), %eax
	cmpl	$15, %eax
	movl	$16, %ecx
	cmovnel	%eax, %ecx
	imull	28(%r12), %ecx
	addl	$31, %ecx
	sarl	$3, %ecx
	andl	$-4, %ecx
	leaq	-104(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_ff_reshuffle_raw_rgb
	movl	%eax, %edx
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_34
LBB0_10:
	movq	32(%r12), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_ff_get_packet_palette
	testl	%eax, %eax
	js	LBB0_30
## %bb.12:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_28
## %bb.13:
	movl	24(%r12), %ecx
	movl	$1, %r15d
	shll	%cl, %r15d
	xorl	%edi, %edi
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	cmpl	$9, %ecx
	setb	%dil
	callq	_av_assert0
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testl	%eax, (%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.14:
	cmpl	$0, 8(%rax)
	je	LBB0_19
## %bb.15:
	movq	%r14, %rdi
	movq	%rax, %r15
	callq	_avio_tell
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	8(%r15), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_avio_seek
	cmpl	$31, -76(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_18
## %bb.16:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	andl	%eax, %esi
	movq	%r14, %rdi
	callq	_avio_wl32
	incq	%r15
	cmpq	%r15, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
LBB0_18:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-108(%rbp), %esi                ## 4-byte Reload
	callq	_avio_seek
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r14), %edi
	movq	(%r14), %rsi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	leal	(,%r15,4), %edx
	callq	_memcpy
	movl	$0, 8(%r14)
	movq	%r14, %rax
LBB0_19:
	movq	(%rax), %rdi
	movl	16(%rax), %esi
	leal	(,%r15,4), %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcmp
	testq	%rax, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_28
## %bb.20:
	movq	16(%r12), %rdx
	leaq	-69(%rbp), %rdi
	movl	%r13d, %esi
	callq	_avi_stream2fourcc
	movw	$25456, -67(%rbp)               ## imm = 0x6370
	movq	(%rbx), %rax
	movq	_AVIO_SEEKABLE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_24
## %bb.21:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, 12(%r12)
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	callq	_avio_tell
	movq	%rbx, %r15
	movl	%eax, %ebx
	movl	12(%r12), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_seek
	movq	_AVISF_VIDEO_PALCHANGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_wl32
	movl	(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r15, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_avio_seek
	movl	$0, 12(%r12)
LBB0_23:
	movq	_AVIIF_NO_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	4(%rax), %r8d
	leaq	-69(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_avi_add_ientry
	testl	%eax, %eax
	js	LBB0_30
LBB0_24:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	leaq	-69(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_start_tag
	movl	%eax, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movzbl	%bl, %esi
	movq	%r15, %rdi
	callq	_avio_w8
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wl16
	cmpl	$31, -76(%rbp)                  ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, %r12
	je	LBB0_27
## %bb.25:
	cmpl	$2, %ebx
	movl	$1, %r15d
	cmovgel	%ebx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	shll	$8, %esi
	movq	%r12, %rdi
	callq	_avio_wb32
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_26
LBB0_27:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_ff_end_tag
	movl	16(%r13), %edi
	movq	(%r13), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_28:
	movq	-104(%rbp), %r15
	testl	%edx, %edx
	je	LBB0_32
## %bb.29:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_avi_write_packet_internal
	movl	%eax, %r14d
	jmp	LBB0_31
LBB0_32:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_avi_write_packet_internal
LBB0_33:
	movl	%eax, %r14d
LBB0_34:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avi_write_packet_internal      ## TAILCALL
LBB0_30:
	movl	%eax, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_34
LBB0_31:
	leaq	-104(%rbp), %rdi
	callq	_av_packet_free
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ## @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AVISF_VIDEO_PALCHANGES,4,2     ## @AVISF_VIDEO_PALCHANGES
	.comm	_AVIIF_NO_TIME,4,2              ## @AVIIF_NO_TIME
	.no_dead_strip	_avi_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avi_write_packet
_avi_write_packet:                      ; @avi_write_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x1
	mov	x19, x0
	str	x1, [sp, #24]
	ldrsw	x20, [x1]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x23, [x8, #8]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _AV_CODEC_ID_H264@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x21, [x23, #8]
	mov	w0, #72
	mov	w1, #50
	mov	w2, #54
	mov	w3, #52
	bl	_MKTAG
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	mov	x2, x24
	bl	_ff_check_h264_startcode
	tbnz	w0, #31, LBB0_31
LBB0_4:
	ldr	w2, [x24, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_write_skip_frames
	tbnz	w0, #31, LBB0_31
; %bb.5:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_33
; %bb.6:
	ldr	x8, [x23, #16]
Lloh3:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.7:
	ldp	x21, x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x26, [x8]
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_34
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	x8, [x23, #32]
Lloh9:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.11:
	ldr	x3, [x26]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_ff_get_packet_palette
	mov	x25, x0
	tbnz	w0, #31, LBB0_36
; %bb.12:
	cbz	w25, LBB0_28
; %bb.13:
	ldr	w27, [x23, #24]
	cmp	x27, #9
	cset	w0, lo
	mov	w8, #1
	lsl	w28, w8, w27
	bl	_av_assert0
	ldr	w8, [x21]
Lloh12:
	adrp	x25, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh13:
	ldr	x25, [x25, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
	ldr	w9, [x25]
	lsl	w24, w28, #2
	tst	w9, w8
	b.eq	LBB0_19
; %bb.14:
	ldr	w8, [x26, #8]
	cbz	w8, LBB0_19
; %bb.15:
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x21
	bl	_avio_tell
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w1, [x26, #8]
Lloh14:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_avio_seek
	cmp	w27, #31
	b.eq	LBB0_18
; %bb.16:
	mov	x25, #0
	cmp	w28, #1
	csinc	w8, w28, wzr, gt
	lsl	x24, x8, #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8, x25]
	and	w1, w8, #0xffffff
	mov	x0, x21
	bl	_avio_wl32
	add	x25, x25, #4
	cmp	x24, x25
	b.ne	LBB0_17
LBB0_18:
Lloh17:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_avio_seek
	ldr	w0, [x26, #16]
	ldr	x1, [x26]
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	mov	x2, x24
	bl	_memcpy
	str	wzr, [x26, #8]
Lloh20:
	adrp	x25, _AVIO_SEEKABLE_NORMAL@GOTPAGE
Lloh21:
	ldr	x25, [x25, _AVIO_SEEKABLE_NORMAL@GOTPAGEOFF]
LBB0_19:
	ldr	x0, [x26]
	ldr	w1, [x26, #16]
	mov	x2, x24
	bl	_memcmp
	cbz	x0, LBB0_28
; %bb.20:
	ldr	x2, [x23, #16]
	add	x0, sp, #19
	mov	x1, x20
	bl	_avi_stream2fourcc
	mov	w8, #25456
	sturh	w8, [sp, #21]
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
	ldr	w8, [x26, #12]
	cbz	w8, LBB0_23
; %bb.22:
	mov	x0, x21
	bl	_avio_tell
	mov	x23, x0
	ldr	w1, [x26, #12]
	mov	x25, x24
Lloh22:
	adrp	x24, _SEEK_SET@GOTPAGE
Lloh23:
	ldr	x24, [x24, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_avio_seek
Lloh24:
	adrp	x8, _AVISF_VIDEO_PALCHANGES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVISF_VIDEO_PALCHANGES@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_avio_wl32
	ldr	w2, [x24]
	mov	x24, x25
	mov	x0, x21
	mov	x1, x23
	bl	_avio_seek
	str	wzr, [x26, #12]
LBB0_23:
Lloh27:
	adrp	x8, _AVIIF_NO_TIME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVIIF_NO_TIME@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	add	w4, w24, #4
	add	x2, sp, #19
	mov	x0, x19
	mov	x1, x20
	bl	_avi_add_ientry
	tbnz	w0, #31, LBB0_35
LBB0_24:
	mov	x25, x24
	add	x1, sp, #19
	mov	x0, x21
	bl	_ff_start_tag
	mov	x20, x0
	mov	x0, x21
	mov	w1, #0
	bl	_avio_w8
	and	w1, w28, #0xff
	mov	x0, x21
	bl	_avio_w8
	mov	x0, x21
	mov	w1, #0
	bl	_avio_wl16
	cmp	w27, #31
	b.eq	LBB0_27
; %bb.25:
	mov	x23, #0
	cmp	w28, #1
	csinc	w8, w28, wzr, gt
	lsl	x24, x8, #2
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8, x23]
	lsl	w1, w8, #8
	mov	x0, x21
	bl	_avio_wb32
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_26
LBB0_27:
	mov	x0, x21
	mov	x1, x20
	bl	_ff_end_tag
	ldr	w0, [x26, #16]
	ldr	x1, [x26]
	mov	x2, x25
	bl	_memcpy
LBB0_28:
	ldr	x24, [sp, #24]
	cbz	w22, LBB0_30
; %bb.29:
	mov	x0, x19
	mov	x1, x24
	bl	_avi_write_packet_internal
	mov	x25, x0
	b	LBB0_37
LBB0_30:
	mov	x0, x19
	mov	x1, x24
	bl	_avi_write_packet_internal
LBB0_31:
	mov	x25, x0
LBB0_32:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_33:
	mov	x0, x19
	mov	x1, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_avi_write_packet_internal
LBB0_34:
	mov	w8, #16
	ldp	w9, w10, [x23, #24]
	cmp	w9, #15
	csel	w8, w8, w9, eq
	orr	w9, wzr, #0x1f
	madd	w8, w8, w10, w9
	asr	w8, w8, #3
	and	w3, w8, #0xfffffffc
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x23
	bl	_ff_reshuffle_raw_rgb
	mov	x22, x0
	mov	x25, x0
	tbz	w0, #31, LBB0_10
	b	LBB0_32
LBB0_35:
	mov	x25, x0
LBB0_36:
	cbz	w22, LBB0_32
LBB0_37:
	add	x0, sp, #24
	bl	_av_packet_free
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AVIO_SEEKABLE_NORMAL,4,2       ; @AVIO_SEEKABLE_NORMAL
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AVISF_VIDEO_PALCHANGES,4,2     ; @AVISF_VIDEO_PALCHANGES
	.comm	_AVIIF_NO_TIME,4,2              ; @AVIIF_NO_TIME
	.no_dead_strip	_avi_write_packet
.subsections_via_symbols
