	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_param_change
_apply_param_change:                    ## @apply_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	movq	_AV_PKT_DATA_PARAM_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	callq	_av_packet_get_side_data
	movq	%rax, -40(%rbp)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	48(%r14), %rax
	movq	_AV_CODEC_CAP_PARAM_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	cmpl	$4, -28(%rbp)
	jl	LBB0_23
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_bytestream_get_le32
	movq	%rax, %r15
	movl	-28(%rbp), %ecx
	leal	-4(%rcx), %eax
	movl	%eax, -28(%rbp)
	movq	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT@GOTPCREL(%rip), %rdx
	testl	%r15d, (%rdx)
	je	LBB0_10
## %bb.5:
	cmpl	$8, %ecx
	jl	LBB0_23
## %bb.6:
	leaq	-40(%rbp), %rdi
	callq	_bytestream_get_le32
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_8
## %bb.9:
	movq	%rax, 40(%r14)
	movl	-28(%rbp), %eax
	addl	$-4, %eax
	movl	%eax, -28(%rbp)
LBB0_10:
	movq	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_13
## %bb.11:
	cmpl	$8, %eax
	jl	LBB0_23
## %bb.12:
	leaq	-40(%rbp), %rdi
	callq	_bytestream_get_le64
	movl	%eax, 32(%r14)
	movl	-28(%rbp), %eax
	addl	$-8, %eax
	movl	%eax, -28(%rbp)
LBB0_13:
	movq	_AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_19
## %bb.14:
	cmpl	$4, %eax
	jl	LBB0_23
## %bb.15:
	leaq	-40(%rbp), %rdi
	callq	_bytestream_get_le32
	testq	%rax, %rax
	jle	LBB0_17
## %bb.16:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_17
## %bb.18:
	movq	%rax, 24(%r14)
	movl	-28(%rbp), %eax
	addl	$-4, %eax
	movl	%eax, -28(%rbp)
LBB0_19:
	movq	_AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_28
## %bb.20:
	cmpl	$8, %eax
	jge	LBB0_21
LBB0_23:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_24:
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jns	LBB0_27
	jmp	LBB0_26
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_27
LBB0_26:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_28
LBB0_27:
	xorl	%ebx, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_24
LBB0_21:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_bytestream_get_le32
	movq	%rax, 16(%r14)
	movq	%r15, %rdi
	callq	_bytestream_get_le32
	movq	%rax, 8(%r14)
	addl	$-8, -28(%rbp)
	movq	16(%r14), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_ff_set_dimensions
	testl	%eax, %eax
	jns	LBB0_28
## %bb.22:
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_PARAM_CHANGE,4,2   ## @AV_PKT_DATA_PARAM_CHANGE
	.comm	_AV_CODEC_CAP_PARAM_CHANGE,4,2  ## @AV_CODEC_CAP_PARAM_CHANGE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This decoder does not support parameter changes, but PARAM_CHANGE side data was sent to it.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT,4,2 ## @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT
	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Invalid channel count"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.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
L_.str.2:                               ## @.str.2
	.asciz	"Invalid sample rate"

	.comm	_AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS,4,2 ## @AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS
L_.str.3:                               ## @.str.3
	.asciz	"PARAM_CHANGE side data too small.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Error applying parameter changes.\n"

	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_apply_param_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_param_change
_apply_param_change:                    ; @apply_param_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x9, _AV_PKT_DATA_PARAM_CHANGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PKT_DATA_PARAM_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x8
	bl	_av_packet_get_side_data
	str	x0, [sp]
	cbz	x0, LBB0_22
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_CAP_PARAM_CHANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_CAP_PARAM_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.lt	LBB0_18
; %bb.3:
	mov	x0, sp
	bl	_bytestream_get_le32
	mov	x20, x0
	ldr	w9, [sp, #12]
	sub	w8, w9, #4
	str	w8, [sp, #12]
Lloh6:
	adrp	x10, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w20
	b.eq	LBB0_8
; %bb.4:
	cmp	w9, #8
	b.lt	LBB0_18
; %bb.5:
	mov	x0, sp
	bl	_bytestream_get_le32
	cmp	x0, #1
	b.lt	LBB0_24
; %bb.6:
Lloh9:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_24
; %bb.7:
	str	x0, [x19, #40]
	ldr	w8, [sp, #12]
	sub	w8, w8, #4
	str	w8, [sp, #12]
LBB0_8:
Lloh12:
	adrp	x9, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_LAYOUT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #8
	b.lt	LBB0_18
; %bb.10:
	mov	x0, sp
	bl	_bytestream_get_le64
	str	w0, [x19, #32]
	ldr	w8, [sp, #12]
	sub	w8, w8, #8
	str	w8, [sp, #12]
LBB0_11:
Lloh15:
	adrp	x9, _AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_16
; %bb.12:
	cmp	w8, #4
	b.lt	LBB0_18
; %bb.13:
	mov	x0, sp
	bl	_bytestream_get_le32
	cmp	x0, #1
	b.lt	LBB0_27
; %bb.14:
Lloh18:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_27
; %bb.15:
	str	x0, [x19, #24]
	ldr	w8, [sp, #12]
	sub	w8, w8, #4
	str	w8, [sp, #12]
LBB0_16:
Lloh21:
	adrp	x9, _AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_22
; %bb.17:
	cmp	w8, #8
	b.ge	LBB0_25
LBB0_18:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_av_log
Lloh29:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
	tbz	w20, #31, LBB0_22
	b	LBB0_21
LBB0_20:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str@PAGE
Lloh36:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	tbz	w20, #31, LBB0_22
LBB0_21:
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.4@PAGE
Lloh44:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w8, [x19]
Lloh45:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_23
LBB0_22:
	mov	w20, #0
LBB0_23:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_24:
Lloh48:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x2, l_.str.1@PAGE
Lloh52:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_25:
	mov	x0, sp
	bl	_bytestream_get_le32
	str	x0, [x19, #16]
	mov	x0, sp
	bl	_bytestream_get_le32
	mov	x2, x0
	str	x0, [x19, #8]
	ldr	w8, [sp, #12]
	sub	w8, w8, #8
	str	w8, [sp, #12]
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_ff_set_dimensions
	tbz	w0, #31, LBB0_22
; %bb.26:
	mov	x20, x0
	b	LBB0_21
LBB0_27:
Lloh53:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x2, l_.str.2@PAGE
Lloh57:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_PARAM_CHANGE,4,2   ; @AV_PKT_DATA_PARAM_CHANGE
	.comm	_AV_CODEC_CAP_PARAM_CHANGE,4,2  ; @AV_CODEC_CAP_PARAM_CHANGE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This decoder does not support parameter changes, but PARAM_CHANGE side data was sent to it.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT,4,2 ; @AV_SIDE_DATA_PARAM_CHANGE_CHANNEL_COUNT
	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Invalid channel count"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.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
l_.str.2:                               ; @.str.2
	.asciz	"Invalid sample rate"

	.comm	_AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS,4,2 ; @AV_SIDE_DATA_PARAM_CHANGE_DIMENSIONS
l_.str.3:                               ; @.str.3
	.asciz	"PARAM_CHANGE side data too small.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Error applying parameter changes.\n"

	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_apply_param_change
.subsections_via_symbols
