	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_stream_add_side_data        ## -- Begin function av_stream_add_side_data
	.p2align	4, 0x90
_av_stream_add_side_data:               ## @av_stream_add_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	8(%r12), %rbx
	addq	$16, %rbx
	movq	%rcx, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, -16(%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rbx
	decq	%rax
	jne	LBB0_2
LBB0_5:
	incl	%ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movabsq	$-6148914691236517205, %rdx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rdx
	shrq	$4, %rdx
	cmpq	%rcx, %rdx
	jbe	LBB0_6
## %bb.8:
	movq	8(%r12), %rdi
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %esi
	callq	_av_realloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, 8(%r12)
	movslq	(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r12)
	leaq	(%rcx,%rcx,2), %rcx
	movl	%r13d, (%rax,%rcx,8)
	movq	%r15, 16(%rax,%rcx,8)
	movq	%r14, 8(%rax,%rcx,8)
	jmp	LBB0_11
LBB0_6:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_av_freep
	movq	%r15, (%rbx)
	movq	%r14, -8(%rbx)
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_stream_add_side_data        ; -- Begin function av_stream_add_side_data
	.p2align	2
_av_stream_add_side_data:               ; @av_stream_add_side_data
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x22, #8]
	add	x23, x9, #16
	mov	x9, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x23, #-16]
	cmp	w10, w21
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #24
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	add	w8, w8, #1
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	mov	x10, #-6148914691236517206
	movk	x10, #43691
	umulh	x9, x9, x10
	cmp	x8, x9, lsr #4
	b.hs	LBB0_7
; %bb.5:
	ldr	x0, [x22, #8]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #3
	bl	_av_realloc
	cbz	x0, LBB0_10
; %bb.6:
	str	x0, [x22, #8]
	ldrsw	x8, [x22]
	add	w9, w8, #1
	str	w9, [x22]
	mov	w9, #24
	madd	x8, x8, x9, x0
	str	w21, [x8]
	stp	x19, x20, [x8, #8]
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	x0, x23
	bl	_av_freep
	stp	x19, x20, [x23, #-8]
LBB0_9:
	mov	w0, #0
	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
	ret
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
