	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function output_frame_end
_output_frame_end:                      ## @output_frame_end
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_AV_CRC_16_ANSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_crc_get_table
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r14d
	leal	(,%r14,8), %ebx
	leaq	32(%r15), %r12
	movq	%r12, %rdi
	callq	_put_bits_count
	subl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$18, %ebx
	setge	%dil
	callq	_av_assert2
	movq	%r12, %rdi
	callq	_flush_put_bits
	movq	32(%r15), %r13
	movl	(%r15), %ebx
	movq	%r12, %rdi
	callq	_put_bits_ptr
	subq	%r13, %rax
	shrq	$2, %rax
	subl	%eax, %ebx
	movl	$1, %edi
	subl	%ebx, %edi
	addl	$-2, %ebx
	shrl	$31, %edi
	callq	_av_assert2
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_put_bits_ptr
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
LBB0_2:
	cmpq	$0, 24(%r15)
	je	LBB0_4
## %bb.3:
	leaq	8(%r13), %rdx
	movl	(%r15), %ecx
	addl	$-5, %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %eax
	sarl	$2, %eax
	sarl	$4, %r14d
	addl	%eax, %r14d
	addl	%r14d, %r14d
	leaq	16(%r13), %rdx
	leal	-4(%r14), %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_av_crc
	movl	%eax, %edi
	callq	_av_bswap16
	movq	8(%r15), %rcx
	movl	(%r15), %edx
	xorl	%esi, %esi
	cmpl	16(%r15), %edx
	setg	%sil
	movl	(%rcx,%rsi,4), %edi
	movq	_CRC16_POLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_mul_poly
	leaq	8(%r13), %rdi
	movl	%eax, %esi
	callq	_AV_WB16
	movslq	%r14d, %rax
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	movl	(%r15), %ecx
	subl	%eax, %ecx
	addl	$-3, %ecx
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_av_crc
	movl	%eax, %ebx
	movslq	(%r15), %rax
	leaq	-12(,%rax,4), %rdx
	addq	%r13, %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_av_crc
	cmpl	$30475, %eax                    ## imm = 0x770B
	jne	LBB0_7
## %bb.6:
	movslq	(%r15), %rax
	xorl	$1, -12(%r13,%rax,4)
	movslq	(%r15), %rax
	leaq	-12(,%rax,4), %rdx
	addq	%r13, %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_av_crc
LBB0_7:
	movl	%eax, %edi
	callq	_av_bswap16
	movslq	(%r15), %rcx
	leaq	-8(,%rcx,4), %rdi
	addq	%r13, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AV_WB16                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CRC_16_ANSI,4,2             ## @AV_CRC_16_ANSI
	.comm	_CRC16_POLY,4,2                 ## @CRC16_POLY
	.no_dead_strip	_output_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function output_frame_end
_output_frame_end:                      ; @output_frame_end
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AV_CRC_16_ANSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CRC_16_ANSI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_av_crc_get_table
	mov	x20, x0
	ldr	w24, [x19]
	lsl	w22, w24, #3
	add	x21, x19, #32
	mov	x0, x21
	bl	_put_bits_count
	sub	w8, w22, w0
	cmp	w8, #17
	cset	w0, gt
	bl	_av_assert2
	mov	x0, x21
	bl	_flush_put_bits
	ldr	x23, [x19, #32]
	ldr	w22, [x19]
	mov	x0, x21
	bl	_put_bits_ptr
	sub	x8, x0, x23
	lsr	x8, x8, #2
	mov	w9, #1
	sub	w8, w22, w8
	sub	w9, w9, w8
	sub	w22, w8, #2
	lsr	w0, w9, #31
	bl	_av_assert2
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_put_bits_ptr
	mov	w1, #0
	mov	x2, x22
	bl	_memset
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	add	x2, x23, #8
	ldr	w8, [x19]
	sub	w3, w8, #5
	b	LBB0_5
LBB0_4:
	asr	w8, w24, #2
	add	w8, w8, w24, asr #4
	lsl	w21, w8, #1
	add	x2, x23, #16
	sub	w3, w21, #4
	mov	x0, x20
	mov	w1, #0
	bl	_av_crc
	bl	_av_bswap16
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	ldr	w10, [x19, #16]
	cmp	w9, w10
	cset	w9, gt
	ldr	w0, [x8, w9, uxtw #2]
Lloh3:
	adrp	x8, _CRC16_POLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRC16_POLY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_mul_poly
	mov	x1, x0
	add	x0, x23, #8
	bl	_AV_WB16
	add	x2, x23, w21, sxtw #2
	ldr	w8, [x19]
	sub	w8, w8, w21
	sub	w3, w8, #3
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	bl	_av_crc
	mov	x21, x0
	ldrsw	x8, [x19]
	add	x8, x23, x8, lsl #2
	sub	x2, x8, #12
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_av_crc
	mov	w8, #30475
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
	ldrsw	x8, [x19]
	add	x8, x23, x8, lsl #2
	ldur	w9, [x8, #-12]
	eor	w9, w9, #0x1
	stur	w9, [x8, #-12]
	ldrsw	x8, [x19]
	add	x8, x23, x8, lsl #2
	sub	x2, x8, #12
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_av_crc
LBB0_7:
	bl	_av_bswap16
	mov	x1, x0
	ldrsw	x8, [x19]
	add	x8, x23, x8, lsl #2
	sub	x0, x8, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AV_WB16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CRC_16_ANSI,4,2             ; @AV_CRC_16_ANSI
	.comm	_CRC16_POLY,4,2                 ; @CRC16_POLY
	.no_dead_strip	_output_frame_end
.subsections_via_symbols
