	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_encode_picture_header ## -- Begin function ff_mjpeg_encode_picture_header
	.p2align	4, 0x90
_ff_mjpeg_encode_picture_header:        ## @ff_mjpeg_encode_picture_header
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %eax
	cmpl	$128, %eax
	setne	%cl
	movq	_AV_CODEC_ID_AMV@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setne	%al
	andb	%cl, %al
	movb	%al, -81(%rbp)                  ## 1-byte Spill
	movq	8(%rdi), %rax
	movq	_AV_PIX_FMT_BGRA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r14d, %r14d
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	cmpq	%rcx, %rax
	sete	-82(%rbp)                       ## 1-byte Folded Spill
	movq	%r8, %rdi
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movq	%r9, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memcmp
	movl	%eax, %ebx
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ff_mjpeg_init_hvsample
	movq	_SOI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_marker
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movq	_AV_CODEC_ID_AMV@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.1:
	movl	%ebx, %r12d
	movb	-82(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r14b
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_jpeg_put_comments
	leaq	-64(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %rcx
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	callq	_jpeg_table_header
	movq	%rbx, %r15
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movq	_SOF0@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_SOF3@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_marker
	jmp	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	callq	_av_assert0
LBB0_7:
	movq	%r15, %rbx
	addl	$3, %r14d
	movq	%r13, %rdi
	movl	$16, %esi
	movl	$17, %edx
	callq	_put_bits
	cmpb	$0, -81(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
## %bb.8:
	movq	8(%rbx), %rax
	movq	_AV_PIX_FMT_BGR0@GOTPCREL(%rip), %rcx
	movl	$9, %edx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	movq	_AV_PIX_FMT_BGRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movq	_AV_PIX_FMT_BGR24@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
LBB0_11:
	movl	$8, %edx
LBB0_12:
	testl	%r12d, %r12d
	setne	%r15b
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_put_bits
	movl	16(%rbx), %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	20(%rbx), %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	%r14d, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	-64(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	-80(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$2, %edx
	callq	_put_bits
	movl	-60(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	-76(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movb	-81(%rbp), %bl                  ## 1-byte Reload
	xorb	$1, %bl
	andb	%bl, %r15b
	movzbl	%r15b, %r15d
	movq	%r13, %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$3, %edx
	callq	_put_bits
	movl	-56(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	-72(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -120(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$4, %edx
	callq	_put_bits
	movl	-52(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movl	-68(%rbp), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
LBB0_14:
	movq	_SOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_marker
	leal	(%r14,%r14), %edx
	addl	$6, %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	%r14d, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$1, %edx
	callq	_put_bits
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$2, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_put_bits
	movzbl	%bl, %r15d
	movq	%r13, %rdi
	movl	$4, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$3, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	movl	%r15d, %edx
	callq	_put_bits
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -120(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$4, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
LBB0_16:
	cmpb	$0, -81(%rbp)                   ## 1-byte Folded Reload
	cmovnel	-100(%rbp), %r12d               ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	$8, %esi
	movl	%r12d, %edx
	callq	_put_bits
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_19
## %bb.17:
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.18:
	movq	%r13, %rdi
	movl	$8, %esi
	movl	$63, %edx
	callq	_put_bits
	jmp	LBB0_21
LBB0_19:
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	jmp	LBB0_21
LBB0_20:
	xorl	%edi, %edi
	callq	_av_assert0
LBB0_21:
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
LBB0_22:
	cmpb	$0, -81(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_31
## %bb.23:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rax
	movq	32(%rcx), %r14
	xorl	%edi, %edi
	cmpl	$16, (%rax)
	sete	%dil
	callq	_av_assert0
	movq	%r13, %rdi
	callq	_put_bits_count
	sarl	$3, %eax
	movl	%eax, (%r14)
	movl	4(%r14), %edi
	cmpl	$2, %edi
	jl	LBB0_31
## %bb.24:
	movq	8(%r14), %rcx
	leaq	-1(%rdi), %rdx
	addq	$-2, %rdi
	movl	%edx, %eax
	andl	$7, %eax
	movl	$1, %esi
	cmpq	$7, %rdi
	jb	LBB0_28
## %bb.25:
	andq	$-8, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	16(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	24(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	32(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	40(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	48(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	56(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	movq	64(%rcx,%rsi,8), %rdi
	movq	$0, (%rdi)
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_26
## %bb.27:
	incq	%rsi
LBB0_28:
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	$0, (%rsi)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_30
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_AMV,4,2            ## @AV_CODEC_ID_AMV
	.comm	_AV_PIX_FMT_BGRA,8,3            ## @AV_PIX_FMT_BGRA
	.comm	_SOI,4,2                        ## @SOI
	.comm	_SOF0,4,2                       ## @SOF0
	.comm	_SOF3,4,2                       ## @SOF3
	.comm	_AV_PIX_FMT_BGR0,8,3            ## @AV_PIX_FMT_BGR0
	.comm	_AV_PIX_FMT_BGR24,8,3           ## @AV_PIX_FMT_BGR24
	.comm	_SOS,4,2                        ## @SOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_encode_picture_header ; -- Begin function ff_mjpeg_encode_picture_header
	.p2align	2
_ff_mjpeg_encode_picture_header:        ; @ff_mjpeg_encode_picture_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x25, x4
	str	w3, [sp, #4]                    ; 4-byte Folded Spill
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w8, [x0]
	cmp	w8, #128
Lloh3:
	adrp	x21, _AV_CODEC_ID_AMV@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AV_CODEC_ID_AMV@GOTPAGEOFF]
	ldr	w9, [x21]
	ccmp	w8, w9, #4, ne
	cset	w28, ne
	ldr	x8, [x0, #8]
Lloh5:
	adrp	x9, _AV_PIX_FMT_BGRA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_PIX_FMT_BGRA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	x27, x8
	mov	x23, x9
	cmp	x8, x9
	mov	w8, #3
	cinc	w26, w8, eq
	mov	x0, x4
	mov	x1, x5
	mov	w2, #256
	bl	_memcmp
	str	w0, [sp]                        ; 4-byte Folded Spill
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x20
	bl	_ff_mjpeg_init_hvsample
Lloh8:
	adrp	x8, _SOI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_21
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_jpeg_put_comments
	add	x5, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x25
	mov	x4, x24
	bl	_jpeg_table_header
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	ldr	w22, [sp, #4]                   ; 4-byte Folded Reload
	mov	x25, x23
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _SOF0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOF0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _SOF3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOF3@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	ldr	w22, [sp, #4]                   ; 4-byte Folded Reload
	mov	x25, x23
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	bl	_av_assert0
LBB0_6:
	ldr	w23, [sp]                       ; 4-byte Folded Reload
	mov	x0, x19
	mov	w1, #16
	mov	w2, #17
	bl	_put_bits
	cbz	w28, LBB0_10
; %bb.7:
	ldr	x8, [x20, #8]
Lloh17:
	adrp	x9, _AV_PIX_FMT_BGR0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AV_PIX_FMT_BGR0@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	mov	w2, #9
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.8:
Lloh20:
	adrp	x9, _AV_PIX_FMT_BGRA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_PIX_FMT_BGRA@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.9:
Lloh23:
	adrp	x9, _AV_PIX_FMT_BGR24@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AV_PIX_FMT_BGR24@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_10:
	mov	w2, #8
LBB0_11:
	cmp	w23, #0
	cset	w24, ne
	mov	x0, x19
	mov	w1, #8
	bl	_put_bits
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [x20, #20]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	x2, x26
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [sp, #24]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #2
	bl	_put_bits
	ldr	w2, [sp, #28]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	eor	w23, w28, #0x1
	and	w24, w23, w24
	mov	x0, x19
	mov	w1, #8
	mov	x2, x24
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #3
	bl	_put_bits
	ldr	w2, [sp, #32]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [sp, #16]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	x2, x24
	bl	_put_bits
	cmp	x27, x25
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #4
	bl	_put_bits
	ldr	w2, [sp, #36]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	ldr	w2, [sp, #20]
	mov	x0, x19
	mov	w1, #4
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
LBB0_13:
Lloh26:
	adrp	x8, _SOS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SOS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	lsl	w8, w26, #1
	add	w2, w8, #6
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	x2, x26
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #2
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	x2, x23
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #3
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	x2, x23
	bl	_put_bits
	cmp	x27, x25
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #4
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
LBB0_15:
	cmp	w28, #0
	csel	w2, w22, wzr, ne
	mov	x0, x19
	mov	w1, #8
	bl	_put_bits
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.16:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.17:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #63
	bl	_put_bits
	b	LBB0_20
LBB0_18:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	b	LBB0_20
LBB0_19:
	mov	w0, #0
	bl	_av_assert0
LBB0_20:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
LBB0_21:
	tbnz	w28, #0, LBB0_30
; %bb.22:
	ldp	x8, x21, [x20, #24]
	ldr	w8, [x8]
	cmp	w8, #16
	cset	w0, eq
	bl	_av_assert0
	mov	x0, x19
	bl	_put_bits_count
	asr	w8, w0, #3
	str	w8, [x21]
	ldr	w8, [x21, #4]
	cmp	w8, #2
	b.lt	LBB0_30
; %bb.23:
	ldr	x9, [x21, #8]
	sub	x11, x8, #1
	cmp	x11, #4
	b.hs	LBB0_25
; %bb.24:
	mov	w10, #1
	b	LBB0_28
LBB0_25:
	and	x12, x11, #0xfffffffffffffffc
	orr	x10, x12, #0x1
	add	x13, x9, #32
	mov	x14, x12
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldp	x15, x16, [x13, #-24]
	ldp	x17, x0, [x13, #-8]
	str	xzr, [x15]
	str	xzr, [x16]
	str	xzr, [x17]
	str	xzr, [x0]
	add	x13, x13, #32
	subs	x14, x14, #4
	b.ne	LBB0_26
; %bb.27:
	cmp	x11, x12
	b.eq	LBB0_30
LBB0_28:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	str	xzr, [x10]
	subs	x8, x8, #1
	b.ne	LBB0_29
LBB0_30:
	ldr	x8, [sp, #40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_AMV,4,2            ; @AV_CODEC_ID_AMV
	.comm	_AV_PIX_FMT_BGRA,8,3            ; @AV_PIX_FMT_BGRA
	.comm	_SOI,4,2                        ; @SOI
	.comm	_SOF0,4,2                       ; @SOF0
	.comm	_SOF3,4,2                       ; @SOF3
	.comm	_AV_PIX_FMT_BGR0,8,3            ; @AV_PIX_FMT_BGR0
	.comm	_AV_PIX_FMT_BGR24,8,3           ; @AV_PIX_FMT_BGR24
	.comm	_SOS,4,2                        ; @SOS
.subsections_via_symbols
