	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_superframe
_merge_superframe:                      ## @merge_superframe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %r15
	leaq	-72(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	callq	_stats
	movl	-72(%rbp), %edi
	callq	_av_log2
	movl	%eax, %ebx
	movl	%eax, %r14d
	sarl	$3, %r14d
	movl	-68(%rbp), %eax
	leal	1(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	imull	%r13d, %ecx
	leal	(%rax,%rcx), %esi
	addl	$2, %esi
	movq	%r12, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_25
## %bb.1:
	addl	$192, %ebx
	andl	$-8, %ebx
	leal	(%rbx,%r13), %eax
	decl	%eax
	movq	(%r12), %rbx
	testl	%r13d, %r13d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.2:
	movl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r12,8), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	(%r15,%r12,8), %rax
	movq	8(%rax), %rax
	leaq	(%rbx,%rax,8), %rbx
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_3
LBB0_4:
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movq	%rdx, (%rbx)
	addq	$8, %rbx
	cmpl	$3, %r14d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	ja	LBB0_24
## %bb.5:
	movl	%r14d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	%eax, %esi
	leaq	-1(%rsi), %rax
	movl	%esi, %r10d
	andl	$3, %r10d
	cmpq	$3, %rax
	jae	LBB0_18
## %bb.17:
	xorl	%edx, %edx
	movq	%rbx, %rdi
	jmp	LBB0_21
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_24
## %bb.13:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %r12d
	shlq	$3, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13,8), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_AV_WL16
	incq	%r13
	addq	%r14, %rbx
	cmpq	%r13, %r12
	jne	LBB0_14
	jmp	LBB0_24
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_24
## %bb.10:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %r12d
	shlq	$3, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13,8), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_AV_WL24
	incq	%r13
	addq	%r14, %rbx
	cmpq	%r13, %r12
	jne	LBB0_11
	jmp	LBB0_24
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_24
## %bb.7:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %r12d
	shlq	$3, %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r13,8), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_AV_WL32
	incq	%r13
	addq	%r14, %rbx
	cmpq	%r13, %r12
	jne	LBB0_8
	jmp	LBB0_24
LBB0_18:
	andl	$-4, %esi
	movq	%r9, %r8
	shlq	$5, %r8
	leaq	(,%r9,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	(%r15,%rdx,8), %rbx
	movq	8(%rbx), %rbx
	movq	%rbx, (%rdi)
	movq	8(%r15,%rdx,8), %rbx
	movq	8(%rbx), %rcx
	leaq	(%rdi,%rax), %rbx
	movq	%rcx, (%rdi,%rax)
	movq	16(%r15,%rdx,8), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, (%rax,%rbx)
	addq	%rax, %rbx
	movq	24(%r15,%rdx,8), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, (%rax,%rbx)
	addq	%rax, %rbx
	addq	$4, %rdx
	addq	%rax, %rbx
	cmpq	%rdx, %rsi
	jne	LBB0_19
## %bb.20:
	addq	%r8, %rdi
	movq	%rdi, %rbx
LBB0_21:
	testq	%r10, %r10
	je	LBB0_24
## %bb.22:
	leaq	(%r15,%rdx,8), %rax
	shlq	$3, %r9
	xorl	%edx, %edx
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rcx
	movq	8(%rcx), %rcx
	movq	%rcx, (%rbx)
	incq	%rdx
	addq	%r9, %rbx
	cmpq	%rdx, %r10
	jne	LBB0_23
LBB0_24:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	shlq	$3, %rax
	addq	(%rcx), %rax
	addq	$8, %rbx
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_av_assert0
	xorl	%eax, %eax
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_merge_superframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_superframe
_merge_superframe:                      ; @merge_superframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_stats
	ldr	w0, [sp, #12]
	bl	_av_log2
	mov	x21, x0
	asr	w25, w0, #3
	ldr	w8, [sp, #8]
	add	w24, w25, #1
	madd	w8, w24, w22, w8
	add	w1, w8, #2
	mov	x0, x19
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_19
; %bb.1:
	add	w8, w21, #192
	and	w8, w8, #0xfffffff8
	add	w8, w22, w8
	sub	w23, w8, #1
	ldr	x21, [x19]
	cbz	w22, LBB0_4
; %bb.2:
	mov	w26, w22
	mov	x27, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldp	x1, x2, [x8]
	mov	x0, x21
	bl	_memcpy
	ldr	x8, [x27], #8
	ldr	x8, [x8, #8]
	add	x21, x21, x8, lsl #3
	subs	x26, x26, #1
	b.ne	LBB0_3
LBB0_4:
	str	x23, [x21], #8
	cmp	w25, #3
	b.hi	LBB0_18
; %bb.5:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_6
	ldrb	w10, [x8, x25]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:
	cbz	w22, LBB0_18
; %bb.7:
	lsl	x8, x24, #3
	mov	w9, w22
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20], #8
	ldr	x10, [x10, #8]
	str	x10, [x21]
	add	x21, x21, x8
	subs	x9, x9, #1
	b.ne	LBB0_8
	b	LBB0_18
LBB0_9:
	cbz	w22, LBB0_18
; %bb.10:
	lsl	x24, x24, #3
	mov	w22, w22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20], #8
	ldr	x1, [x8, #8]
	mov	x0, x21
	bl	_AV_WL16
	add	x21, x21, x24
	subs	x22, x22, #1
	b.ne	LBB0_11
	b	LBB0_18
LBB0_12:
	cbz	w22, LBB0_18
; %bb.13:
	lsl	x24, x24, #3
	mov	w22, w22
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20], #8
	ldr	x1, [x8, #8]
	mov	x0, x21
	bl	_AV_WL24
	add	x21, x21, x24
	subs	x22, x22, #1
	b.ne	LBB0_14
	b	LBB0_18
LBB0_15:
	cbz	w22, LBB0_18
; %bb.16:
	lsl	x24, x24, #3
	mov	w22, w22
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20], #8
	ldr	x1, [x8, #8]
	mov	x0, x21
	bl	_AV_WL32
	add	x21, x21, x24
	subs	x22, x22, #1
	b.ne	LBB0_17
LBB0_18:
	str	x23, [x21], #8
	ldp	x8, x9, [x19]
	add	x8, x8, x9, lsl #3
	cmp	x21, x8
	cset	w0, eq
	bl	_av_assert0
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
                                        ; -- End function
	.no_dead_strip	_merge_superframe
.subsections_via_symbols
