	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function av_packet_merge_side_data
LCPI0_0:
	.quad	5                               ## 0x5
	.quad	5                               ## 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_av_packet_merge_side_data
	.p2align	4, 0x90
_av_packet_merge_side_data:             ## @av_packet_merge_side_data
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rax,%rcx), %rbx
	addq	$8, %rbx
	movdqu	(%rdi), %xmm0
	movdqu	16(%rdi), %xmm1
	movdqa	%xmm0, -96(%rbp)
	movq	32(%rdi), %rax
	movq	%rax, -64(%rbp)
	movdqa	%xmm1, -80(%rbp)
	movl	-96(%rbp), %r15d
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.3:
	movq	-80(%rbp), %rax
	cmpl	$5, %r15d
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_5:
	movl	%r15d, %ecx
	andl	$3, %ecx
	testq	%rcx, %rcx
	movl	$4, %edx
	cmovneq	%rcx, %rdx
	movq	%r15, %rcx
	subq	%rdx, %rcx
	movq	%rbx, %xmm1
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [5,5]
	movq	%rcx, %rdx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %xmm3                 ## xmm3 = mem[0],zero
	movq	(%rsi), %xmm4                   ## xmm4 = mem[0],zero
	punpcklqdq	%xmm3, %xmm4            ## xmm4 = xmm4[0],xmm3[0]
	movq	72(%rsi), %xmm3                 ## xmm3 = mem[0],zero
	movq	48(%rsi), %xmm5                 ## xmm5 = mem[0],zero
	punpcklqdq	%xmm3, %xmm5            ## xmm5 = xmm5[0],xmm3[0]
	paddq	%xmm2, %xmm1
	paddq	%xmm4, %xmm1
	paddq	%xmm2, %xmm0
	paddq	%xmm5, %xmm0
	addq	$96, %rsi
	addq	$-4, %rdx
	jne	LBB0_6
## %bb.7:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rbx
LBB0_8:
	leaq	(%rcx,%rcx,2), %rdx
	leaq	(%rax,%rdx,8), %rax
	movq	%r15, %rdx
	subq	%rcx, %rdx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	addq	%rcx, %rbx
	addq	$5, %rbx
	addq	$24, %rax
	decq	%rdx
	jne	LBB0_9
LBB0_10:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_13
## %bb.11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_13:
	movq	%rbx, %rdi
	callq	_av_buffer_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, 32(%r14)
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rax, 24(%r14)
	subq	(%r12), %rbx
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, 8(%r14)
	movq	-88(%rbp), %rdx
	movq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdi
	callq	_bytestream_put_buffer
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.16:
	movq	-80(%rbp), %rbx
	leaq	-48(%rbp), %r13
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %eax
	leaq	(%rax,%rax,2), %r14
	movq	(%rbx,%r14,8), %rdx
	movq	16(%rbx,%r14,8), %rsi
	movq	%r13, %rdi
	callq	_bytestream_put_buffer
	movq	(%rbx,%r14,8), %rsi
	movq	%r13, %rdi
	callq	_bytestream_put_be32
	movl	%r15d, %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %r12
	sete	%cl
	shll	$7, %ecx
	orl	8(%rbx,%r14,8), %ecx
	movq	-48(%rbp), %rax
	leaq	4(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movl	%ecx, (%rax)
	cmpq	$2, %r12
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-96(%rbp), %r15d
	decq	%r12
	jmp	LBB0_17
LBB0_19:
	movq	_FF_MERGE_MARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_bytestream_put_be64
	movq	-48(%rbp), %rax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	subq	24(%rbx), %rax
	sarq	$2, %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	sete	%dil
	callq	_av_assert0
	movq	-48(%rbp), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_memset
	leaq	-96(%rbp), %rdi
	callq	_av_packet_unref
	movl	$0, (%rbx)
	movq	$0, 16(%rbx)
	movl	$1, %eax
	jmp	LBB0_20
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FF_MERGE_MARKER,4,2            ## @FF_MERGE_MARKER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_packet_merge_side_data      ; -- Begin function av_packet_merge_side_data
	.p2align	2
_av_packet_merge_side_data:             ; @av_packet_merge_side_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x0, #8]
	ldr	x9, [x21]
	add	x8, x8, x9
	add	x20, x8, #8
	ldp	q0, q1, [x0]
	stp	q0, q1, [sp]
	ldr	x8, [x0, #32]
	str	x8, [sp, #32]
	ldr	w22, [sp]
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x8, [sp, #16]
	cmp	w22, #9
	b.hs	LBB0_5
; %bb.3:
	mov	x9, #0
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_20
LBB0_5:
	ands	x9, x22, #0x7
	mov	w10, #8
	csel	x9, x10, x9, eq
	sub	x9, x22, x9
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x20
	add	x10, x8, #96
	mov	w11, #5
	dup.2d	v2, x11
	mov	x11, x9
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #96
	sub	x13, x10, #48
	ld3.2d	{ v5, v6, v7 }, [x12]
	ld3.2d	{ v16, v17, v18 }, [x13]
	mov	x12, x10
	ld3.2d	{ v19, v20, v21 }, [x12], #48
	ld3.2d	{ v22, v23, v24 }, [x12]
	add.2d	v1, v1, v5
	add.2d	v0, v0, v16
	add.2d	v3, v3, v19
	add.2d	v4, v4, v22
	add.2d	v1, v1, v2
	add.2d	v0, v0, v2
	add.2d	v3, v3, v2
	add.2d	v4, v4, v2
	add	x10, x10, #192
	subs	x11, x11, #8
	b.ne	LBB0_6
; %bb.7:
	add.2d	v0, v0, v1
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x20, d0
LBB0_8:
	mov	w10, #24
	madd	x8, x9, x10, x8
	sub	x9, x22, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #24
	add	x10, x20, x10
	add	x20, x10, #5
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
Lloh2:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x20, x8
	b.le	LBB0_12
; %bb.11:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:
	mov	x0, x20
	bl	_av_buffer_alloc
	cbz	x0, LBB0_18
; %bb.13:
	str	x0, [x19, #32]
	ldr	x8, [x0]
	str	x8, [sp, #40]
	str	x8, [x19, #24]
	ldr	x8, [x21]
	sub	x8, x20, x8
	str	x8, [x19, #8]
	ldr	x1, [sp, #24]
	ldr	x2, [sp, #8]
	add	x0, sp, #40
	bl	_bytestream_put_buffer
	cmp	w22, #1
	b.lt	LBB0_17
; %bb.14:
	ldr	x20, [sp, #16]
	mov	w23, #24
	mov	x24, x22
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, w22, uxtw
	cset	w22, eq
	sub	w8, w24, #1
	umaddl	x25, w8, w23, x20
	ldr	x1, [x25, #16]
	ldr	x2, [x25]
	add	x0, sp, #40
	bl	_bytestream_put_buffer
	ldr	x1, [x25]
	add	x0, sp, #40
	bl	_bytestream_put_be32
	ldr	w8, [x25, #8]
	orr	w8, w8, w22, lsl #7
	ldr	x9, [sp, #40]
	str	w8, [x9], #4
	str	x9, [sp, #40]
	cmp	x24, #2
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w22, [sp]
	sub	x24, x24, #1
	b	LBB0_15
LBB0_17:
Lloh7:
	adrp	x8, _FF_MERGE_MARKER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FF_MERGE_MARKER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #40
	bl	_bytestream_put_be64
	ldr	x8, [sp, #40]
	ldr	x9, [x19, #24]
	sub	x8, x8, x9
	ldr	x9, [x19, #8]
	cmp	x9, x8, asr #2
	cset	w0, eq
	bl	_av_assert0
	ldr	x0, [sp, #40]
	ldr	x2, [x21]
	mov	w1, #0
	bl	_memset
	mov	x0, sp
	bl	_av_packet_unref
	str	wzr, [x19]
	str	xzr, [x19, #16]
	mov	w0, #1
	b	LBB0_20
LBB0_18:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_20:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FF_MERGE_MARKER,4,2            ; @FF_MERGE_MARKER
.subsections_via_symbols
