	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvdec_start_frame           ## -- Begin function ff_nvdec_start_frame
	.p2align	4, 0x90
_ff_nvdec_start_frame:                  ## @ff_nvdec_start_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rsi), %rax
	movq	(%rax), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	cmpq	$0, 16(%r12)
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movl	$24, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_av_buffer_ref
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	callq	_av_buffer_pool_get
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, 16(%r12)
	movq	_nvdec_fdd_priv_free@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_nvdec_retrieve_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_7
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_nvdec_fdd_priv_free
	movl	%ebx, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No decoder surfaces left\n"

	.comm	_nvdec_retrieve_data,4,2        ## @nvdec_retrieve_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvdec_start_frame           ; -- Begin function ff_nvdec_start_frame
	.p2align	2
_ff_nvdec_start_frame:                  ; @ff_nvdec_start_frame
	.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
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x1]
	ldr	x21, [x8]
	stp	xzr, xzr, [x22, #8]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x20, x0
	mov	w0, #24
	bl	_av_mallocz
	cbz	x0, LBB0_7
; %bb.4:
	mov	x19, x0
	ldr	w0, [x22, #4]
	bl	_av_buffer_ref
	str	w0, [x19, #16]
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w0, [x22]
	bl	_av_buffer_pool_get
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x19]
Lloh0:
	adrp	x8, _nvdec_fdd_priv_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvdec_fdd_priv_free@GOTPAGEOFF]
	stp	x8, x19, [x21, #8]
Lloh2:
	adrp	x8, _nvdec_retrieve_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvdec_retrieve_data@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_1
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	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_8:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	mov	x0, x19
	bl	_nvdec_fdd_priv_free
	mov	x0, x20
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No decoder surfaces left\n"

	.comm	_nvdec_retrieve_data,4,2        ; @nvdec_retrieve_data
.subsections_via_symbols
