	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vp56_decode_frame           ## -- Begin function ff_vp56_decode_frame
	.p2align	4, 0x90
_ff_vp56_decode_frame:                  ## @ff_vp56_decode_frame
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movq	8(%rcx), %rsi
	movq	%rsi, -56(%rbp)
	movq	32(%rdi), %r12
	movq	(%r12), %rax
	movq	_VP56_FRAME_CURRENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rbx), %r13d
	cmpq	$0, 32(%r12)
	je	LBB0_1
## %bb.2:
	cmpl	$2, %r13d
	jle	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_bytestream_get_be24
	addl	$-3, %r13d
	cmpl	%eax, %r13d
	jl	LBB0_3
## %bb.5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, %eax
LBB0_6:
	movq	%r12, %rdi
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	*8(%r12)
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_VP56_SIZE_CHANGE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r15d
	jne	LBB0_17
## %bb.9:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_av_frame_unref
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_av_frame_unref
LBB0_11:
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_av_frame_unref
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_av_frame_unref
LBB0_13:
	movq	(%r12), %rax
	movq	16(%rax), %rdi
	callq	_av_frame_unref
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	(%rax), %rax
	movq	16(%rax), %rdi
	callq	_av_frame_unref
LBB0_15:
	movq	(%r12), %rax
	movq	24(%rax), %rdi
	callq	_av_frame_unref
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%rax), %rax
	movq	24(%rax), %rdi
	callq	_av_frame_unref
LBB0_17:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_get_buffer
	movq	%r14, %rdi
	testl	%eax, %eax
	js	LBB0_18
## %bb.20:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_AV_PIX_FMT_YUVA420P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.21:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	_VP56_FRAME_CURRENT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_av_frame_unref
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_22
LBB0_24:
	movq	_VP56_SIZE_CHANGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_27
## %bb.25:
	movq	%r12, %rdi
	callq	_vp56_size_changed
	testq	%rax, %rax
	jne	LBB0_26
LBB0_27:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	_AV_PIX_FMT_YUVA420P@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_30
## %bb.28:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	-56(%rbp), %rsi
	movups	8(%rbx), %xmm0
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	%rsi, -56(%rbp)
	subl	%eax, %r13d
	movq	24(%r12), %rdi
	movl	%r13d, %edx
	callq	*8(%rdi)
	testl	%eax, %eax
	je	LBB0_29
## %bb.33:
	movq	_VP56_SIZE_CHANGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.34:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movaps	-112(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, 8(%rbx)
LBB0_26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_unref
	jmp	LBB0_3
LBB0_7:
	movl	%r15d, %r14d
	jmp	LBB0_36
LBB0_18:
	movl	%eax, %r14d
	cmpl	(%rbx), %r15d
	je	LBB0_19
	jmp	LBB0_36
LBB0_22:
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_unref
	movq	_VP56_SIZE_CHANGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_36
## %bb.23:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_19:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ff_set_dimensions
	jmp	LBB0_36
LBB0_29:
	movq	(%rbx), %rax
	movq	(%r14), %rcx
LBB0_30:
	movq	$0, 16(%r12)
	movq	_ff_vp56_decode_mbs@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	xorl	%r8d, %r8d
	cmpq	%rcx, %rax
	sete	%r8b
	incl	%r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*24(%rbx)
	cmpq	$0, 16(%r12)
	je	LBB0_31
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_36:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_32
## %bb.35:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r15), %r14d
	jmp	LBB0_36
LBB0_32:
	movl	%eax, %r14d
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_VP56_FRAME_CURRENT,8,3         ## @VP56_FRAME_CURRENT
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_VP56_SIZE_CHANGE,4,2           ## @VP56_SIZE_CHANGE
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_PIX_FMT_YUVA420P,8,3        ## @AV_PIX_FMT_YUVA420P
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Alpha reconfiguration\n"

	.comm	_ff_vp56_decode_mbs,4,2         ## @ff_vp56_decode_mbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vp56_decode_frame           ; -- Begin function ff_vp56_decode_frame
	.p2align	2
_ff_vp56_decode_frame:                  ; @ff_vp56_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x27, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x1, [x3, #8]
	str	x1, [sp, #24]
	ldr	x24, [x0, #32]
Lloh0:
	adrp	x22, _VP56_FRAME_CURRENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VP56_FRAME_CURRENT@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x22]
	ldr	x20, [x8, x9, lsl #3]
	ldr	w25, [x3]
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	w25, #2
	b.le	LBB0_32
; %bb.2:
	add	x0, sp, #24
	bl	_bytestream_get_be24
	sub	w28, w25, #3
	cmp	w28, w0
	b.lt	LBB0_32
; %bb.3:
	ldr	x1, [sp, #24]
	mov	x25, x0
	b	LBB0_5
LBB0_4:
	mov	x28, x25
LBB0_5:
	ldr	x8, [x24, #8]
	mov	x0, x24
	mov	x2, x25
	blr	x8
	mov	x26, x0
	tbnz	w0, #31, LBB0_25
; %bb.6:
Lloh2:
	adrp	x8, _VP56_SIZE_CHANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VP56_SIZE_CHANGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_15
; %bb.7:
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_av_frame_unref
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_av_frame_unref
LBB0_9:
	ldr	x8, [x24]
	ldr	x0, [x8, #8]
	bl	_av_frame_unref
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	bl	_av_frame_unref
LBB0_11:
	ldr	x8, [x24]
	ldr	x0, [x8, #16]
	bl	_av_frame_unref
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x8]
	ldr	x0, [x8, #16]
	bl	_av_frame_unref
LBB0_13:
	ldr	x8, [x24]
	ldr	x0, [x8, #24]
	bl	_av_frame_unref
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x8]
	ldr	x0, [x8, #24]
	bl	_av_frame_unref
LBB0_15:
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
Lloh5:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_26
; %bb.16:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _AV_PIX_FMT_YUVA420P@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_PIX_FMT_YUVA420P@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_av_frame_unref
	ldr	x8, [x24, #24]
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, x20
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_27
LBB0_18:
Lloh11:
	adrp	x22, _VP56_SIZE_CHANGE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _VP56_SIZE_CHANGE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w26, w8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x24
	bl	_vp56_size_changed
	cbnz	x0, LBB0_24
LBB0_20:
	ldr	x8, [x19]
Lloh13:
	adrp	x26, _AV_PIX_FMT_YUVA420P@GOTPAGE
Lloh14:
	ldr	x26, [x26, _AV_PIX_FMT_YUVA420P@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.21:
	ldur	q0, [x19, #8]
	str	q0, [sp]                        ; 16-byte Folded Spill
	ldr	x8, [sp, #24]
	add	x1, x8, w25, sxtw #2
	str	x1, [sp, #24]
	sub	w2, w28, w25
	ldr	x0, [x24, #24]
	ldr	x8, [x0, #8]
	blr	x8
	cbz	w0, LBB0_30
; %bb.22:
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.23:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x19, #8]
LBB0_24:
	mov	x0, x20
	bl	_av_frame_unref
	b	LBB0_32
LBB0_25:
	mov	x27, x26
	b	LBB0_33
LBB0_26:
	mov	x27, x0
	b	LBB0_28
LBB0_27:
	mov	x27, x0
	mov	x0, x20
	bl	_av_frame_unref
LBB0_28:
Lloh20:
	adrp	x8, _VP56_SIZE_CHANGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VP56_SIZE_CHANGE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_33
; %bb.29:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ff_set_dimensions
	b	LBB0_33
LBB0_30:
	ldr	x8, [x19]
	ldr	x9, [x26]
LBB0_31:
	str	xzr, [x24, #16]
	ldr	x10, [x19, #24]
Lloh23:
	adrp	x11, _ff_vp56_decode_mbs@GOTPAGE
Lloh24:
	ldr	x11, [x11, _ff_vp56_decode_mbs@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x11]
	cmp	x8, x9
	mov	w8, #1
	cinc	w4, w8, eq
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	blr	x10
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_34
LBB0_32:
Lloh26:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh28:
	ldr	w27, [x8]
LBB0_33:
	mov	x0, x27
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_34:
	mov	x0, x23
	mov	x1, x20
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_36
; %bb.35:
	mov	w8, #1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w27, [x21]
	b	LBB0_33
LBB0_36:
	mov	x27, x0
	b	LBB0_33
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_VP56_FRAME_CURRENT,8,3         ; @VP56_FRAME_CURRENT
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_VP56_SIZE_CHANGE,4,2           ; @VP56_SIZE_CHANGE
	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_PIX_FMT_YUVA420P,8,3        ; @AV_PIX_FMT_YUVA420P
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Alpha reconfiguration\n"

	.comm	_ff_vp56_decode_mbs,4,2         ; @ff_vp56_decode_mbs
.subsections_via_symbols
