	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_snow_frame_start            ## -- Begin function ff_snow_frame_start
	.p2align	4, 0x90
_ff_snow_frame_start:                   ## @ff_snow_frame_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_ff_snow_release_buffer
	movq	32(%r15), %rax
	movslq	(%r15), %rdx
	movq	-8(%rax,%rdx,8), %r14
	cmpq	$2, %rdx
	jl	LBB0_8
## %bb.1:
	movq	%rdx, %rdi
	decq	%rdi
	movl	%edi, %r8d
	leaq	-1(%r8), %rsi
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, (%rax,%r8,8)
	cmpl	$2, %edi
	jb	LBB0_8
## %bb.2:
	addq	$-2, %r8
	movq	%rsi, %rdi
	andq	$3, %rdi
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rcx
	leaq	-1(%rsi), %rax
	movl	%eax, %ebx
	movq	(%rcx,%rbx,8), %rbx
	movq	%rbx, (%rcx,%rsi,8)
	movq	%rax, %rsi
	decq	%rdi
	jne	LBB0_4
## %bb.5:
	cmpq	$3, %r8
	jae	LBB0_6
	jmp	LBB0_8
LBB0_3:
	movq	%rsi, %rax
	cmpq	$3, %r8
	jb	LBB0_8
LBB0_6:
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rcx
	leal	-5(%rax), %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, -32(%rcx,%rax,8)
	movq	32(%r15), %rcx
	leal	-6(%rax), %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, -40(%rcx,%rax,8)
	movq	32(%r15), %rcx
	leal	-7(%rax), %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, -48(%rcx,%rax,8)
	movq	32(%r15), %rcx
	leal	-8(%rax), %esi
	movq	(%rcx,%rsi,8), %rsi
	movq	%rsi, -56(%rcx,%rax,8)
	addq	$-4, %rax
	cmpq	$4, %rax
	jg	LBB0_7
LBB0_8:
	movq	40(%r15), %rsi
	leaq	4(%rsi), %rdi
	shll	$7, %edx
	addl	$-128, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movq	_USE_HALFPEL_PLANE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.9:
	movq	16(%r15), %rdx
	movq	8(%rdx), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	40(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_halfpel_interpol
	testl	%eax, %eax
	js	LBB0_25
LBB0_11:
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movq	%rax, (%rcx)
	movq	%r14, 16(%r15)
	xorl	%eax, %eax
	cmpq	$0, 8(%r15)
	je	LBB0_12
LBB0_22:
	movl	%eax, 4(%r15)
LBB0_23:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ff_snow_get_buffer
	testl	%eax, %eax
	js	LBB0_25
## %bb.24:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_12:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.14:
	movq	32(%r15), %rdx
	xorl	%eax, %eax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	je	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rsi
	movq	8(%rsi), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-8(%rdx,%rax,8), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_18
	jmp	LBB0_22
LBB0_13:
	movl	$0, 4(%r15)
	jmp	LBB0_21
LBB0_19:
	movl	%ecx, %eax
LBB0_20:
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	jne	LBB0_23
LBB0_21:
	movl	24(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USE_HALFPEL_PLANE,8,3          ## @USE_HALFPEL_PLANE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No reference frames\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_snow_frame_start            ; -- Begin function ff_snow_frame_start
	.p2align	2
_ff_snow_frame_start:                   ; @ff_snow_frame_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_ff_snow_release_buffer
	ldr	x10, [x19, #32]
	ldr	w8, [x19]
	sub	w9, w8, #1
	ldr	x20, [x10, w9, sxtw #3]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	sub	w11, w9, #1
	ldr	x11, [x10, w11, uxtw #3]
	str	x11, [x10, w9, uxtw #3]
	cmp	w9, #2
	b.lo	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #32]
	sub	w11, w9, #2
	ldr	x11, [x10, w11, uxtw #3]
	add	x10, x10, x9, lsl #3
	stur	x11, [x10, #-8]
	sub	x9, x9, #1
	cmp	x9, #1
	b.gt	LBB0_2
LBB0_3:
	ldr	x1, [x19, #40]
	add	x0, x1, #4
	lsl	w8, w8, #7
	sub	w2, w8, #128
	bl	_memmove
Lloh0:
	adrp	x8, _USE_HALFPEL_PLANE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USE_HALFPEL_PLANE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x2, [x19, #16]
	ldr	x8, [x2, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #40]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_halfpel_interpol
	tbnz	w0, #31, LBB0_21
LBB0_6:
	ldr	x8, [x19, #32]
	ldp	x10, x9, [x19, #8]
	str	x9, [x8]
	str	x20, [x19, #16]
	cbz	x10, LBB0_11
; %bb.7:
	mov	w8, #0
LBB0_8:
	str	w8, [x19, #4]
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_ff_snow_get_buffer
	tbnz	w0, #31, LBB0_21
; %bb.10:
	mov	w0, #0
	ldp	x8, x9, [x19, #8]
	str	x8, [x9]
	b	LBB0_21
LBB0_11:
	ldr	w9, [x19]
	cmp	w9, #0
	b.le	LBB0_17
; %bb.12:
	mov	x8, #0
	ldr	x10, [x19, #32]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x8, lsl #3]
	ldr	x11, [x11, #8]
	ldr	x11, [x11]
	cbz	x11, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	x8, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x10, x8, lsl #3
	ldur	x11, [x11, #-8]
	ldr	x11, [x11]
	cbz	x11, LBB0_13
	b	LBB0_8
LBB0_17:
	str	wzr, [x19, #4]
	b	LBB0_20
LBB0_18:
	mov	x8, x9
LBB0_19:
	str	w8, [x19, #4]
	cbnz	w8, LBB0_9
LBB0_20:
	ldr	w0, [x19, #24]
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_USE_HALFPEL_PLANE,8,3          ; @USE_HALFPEL_PLANE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No reference frames\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
