	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_videotoolbox_alloc_frame    ## -- Begin function ff_videotoolbox_alloc_frame
	.p2align	4, 0x90
_ff_videotoolbox_alloc_frame:           ## @ff_videotoolbox_alloc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ff_attach_decode_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	$4, %edi
	callq	_av_mallocz
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_videotoolbox_buffer_release@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	movl	$4, %esi
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_buffer_create
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	24(%r15), %rcx
	movq	%rax, (%rcx)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	_videotoolbox_postproc_frame@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	8(%r14), %eax
	movl	%eax, 8(%r15)
	movl	4(%r14), %eax
	movl	%eax, 4(%r15)
	movl	(%r14), %eax
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	leaq	-32(%rbp), %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_videotoolbox_buffer_release,4,2 ## @videotoolbox_buffer_release
	.comm	_videotoolbox_postproc_frame,4,2 ## @videotoolbox_postproc_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_videotoolbox_alloc_frame    ; -- Begin function ff_videotoolbox_alloc_frame
	.p2align	2
_ff_videotoolbox_alloc_frame:           ; @ff_videotoolbox_alloc_frame
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ff_attach_decode_data
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	w0, #4
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _videotoolbox_buffer_release@GOTPAGE
Lloh1:
	ldr	x8, [x8, _videotoolbox_buffer_release@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	mov	x3, #0
	mov	w4, #0
	bl	_av_buffer_create
	cbz	x0, LBB0_5
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #24]
	str	x8, [x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _videotoolbox_postproc_frame@GOTPAGE
Lloh4:
	ldr	x9, [x9, _videotoolbox_postproc_frame@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8]
	ldr	w8, [x20, #8]
	str	w8, [x19, #8]
	ldr	d0, [x20]
	str	d0, [x19]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_AVERROR
LBB0_5:
	add	x0, sp, #8
	bl	_av_freep
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_videotoolbox_buffer_release,4,2 ; @videotoolbox_buffer_release
	.comm	_videotoolbox_postproc_frame,4,2 ; @videotoolbox_postproc_frame
.subsections_via_symbols
