	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp9_frame_ref
_vp9_frame_ref:                         ## @vp9_frame_ref
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	40(%rsi), %rdi
	leaq	40(%rdx), %rsi
	callq	_ff_thread_ref_frame
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	32(%rbx), %rdi
	callq	_av_buffer_ref
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	24(%rbx), %eax
	movl	%eax, 24(%r15)
	movl	20(%rbx), %eax
	movl	%eax, 20(%r15)
	movl	16(%rbx), %eax
	movl	%eax, 16(%r15)
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rdi
	callq	_av_buffer_ref
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vp9_frame_unref
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vp9_frame_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp9_frame_ref
_vp9_frame_ref:                         ; @vp9_frame_ref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #40
	add	x1, x2, #40
	bl	_ff_thread_ref_frame
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x0, [x21, #32]
	bl	_av_buffer_ref
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x21, #24]
	str	w8, [x19, #24]
	ldr	d0, [x21, #16]
	str	d0, [x19, #16]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x0, [x21]
	bl	_av_buffer_ref
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_vp9_frame_unref
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vp9_frame_ref
.subsections_via_symbols
