	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_add_param_change            ## -- Begin function ff_add_param_change
	.p2align	4, 0x90
_ff_add_param_change:                   ## @ff_add_param_change
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%edx, %ebx
	xorl	%eax, %eax
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	setne	%al
	movq	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	shll	$2, %eax
	xorl	%esi, %esi
	testl	%ebx, %ebx
	setne	%sil
	movq	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	leal	(%rax,%rsi,8), %eax
	xorl	%esi, %esi
	testl	%ecx, %ecx
	setne	%sil
	movq	_AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	leal	(%rax,%rsi,4), %eax
	xorl	%esi, %esi
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r9d, %r15d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	orl	%r8d, %r15d
	setne	%sil
	movq	_AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	leal	(%rax,%rsi,8), %edx
	addl	$4, %edx
	movq	_AV_PKT_DATA_PARAM_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %r13d
	callq	_av_packet_new_side_data
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%eax, %ecx
	testl	%ebx, %ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	cmovel	%ebx, %r12d
	orl	%ecx, %r12d
	testl	%r13d, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%r13d, %ecx
	testl	%r15d, %r15d
	cmovel	%r15d, %r14d
	orl	%ecx, %r14d
	orl	%r12d, %r14d
	leaq	-56(%rbp), %rdi
	movl	%r14d, %esi
	movl	%eax, %ebx
	callq	_bytestream_put_le32
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	callq	_bytestream_put_le32
LBB0_7:
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %rdi
	callq	_bytestream_put_le64
LBB0_9:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_11
## %bb.10:
	leaq	-56(%rbp), %rdi
	callq	_bytestream_put_le32
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_bytestream_put_le32
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_bytestream_put_le32
LBB0_13:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT,4,2 ## @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT,4,2 ## @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE,4,2 ## @AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS,4,2 ## @AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS
	.comm	_AV_PKT_DATA_PARAM_CHANGE,4,2   ## @AV_PKT_DATA_PARAM_CHANGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_add_param_change            ; -- Begin function ff_add_param_change
	.p2align	2
_ff_add_param_change:                   ; @ff_add_param_change
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x8, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	mov	w8, #8
	mov	w9, #4
	cmp	w1, #0
	csel	w8, w9, w8, eq
	add	w9, w8, #8
Lloh3:
	adrp	x10, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x10]
	cmp	w2, #0
	csel	w8, w8, w9, eq
	add	w9, w8, #4
Lloh6:
	adrp	x10, _AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x10]
	cmp	w3, #0
	csel	w8, w8, w9, eq
	orr	w24, w5, w4
	add	w9, w8, #8
Lloh9:
	adrp	x10, _AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x10]
	cmp	w24, #0
	csel	w2, w8, w9, eq
Lloh12:
	adrp	x8, _AV_PKT_DATA_PARAM_CHANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_PKT_DATA_PARAM_CHANGE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_av_packet_new_side_data
	str	x0, [sp, #8]
	cbz	x0, LBB0_12
; %bb.2:
	cmp	w23, #0
	csel	w8, wzr, w25, eq
	cmp	w22, #0
	csel	w9, wzr, w26, eq
	orr	w8, w9, w8
	cmp	w21, #0
	csel	w9, wzr, w27, eq
	orr	w8, w8, w9
	cmp	w24, #0
	csel	w9, wzr, w28, eq
	orr	w1, w8, w9
	add	x0, sp, #8
	bl	_bytestream_put_le32
	cbz	w23, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	x1, x23
	bl	_bytestream_put_le32
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	x1, x22
	bl	_bytestream_put_le64
LBB0_6:
	cbz	w21, LBB0_8
; %bb.7:
	add	x0, sp, #8
	mov	x1, x21
	bl	_bytestream_put_le32
LBB0_8:
	cbz	w24, LBB0_10
; %bb.9:
	add	x0, sp, #8
	mov	x1, x20
	bl	_bytestream_put_le32
	add	x0, sp, #8
	mov	x1, x19
	bl	_bytestream_put_le32
LBB0_10:
	mov	w0, #0
	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
LBB0_11:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT,4,2 ; @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT,4,2 ; @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE,4,2 ; @AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS,4,2 ; @AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS
	.comm	_AV_PKT_DATA_PARAM_CHANGE,4,2   ; @AV_PKT_DATA_PARAM_CHANGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
