	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_frames
_init_frames:                           ## @init_frames
	.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, %r14
	movq	(%rdi), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	16(%r15), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	16(%r15), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_22
## %bb.4:
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_20
## %bb.6:
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_22
## %bb.7:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_21
## %bb.8:
	movl	$2, %ebx
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 24(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 24(%rcx)
	movl	$3, %ebx
	je	LBB0_22
## %bb.10:
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 32(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 32(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 32(%rcx)
	movl	$4, %ebx
	je	LBB0_22
## %bb.12:
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 40(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 40(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 40(%rcx)
	movl	$5, %ebx
	je	LBB0_22
## %bb.14:
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 48(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 48(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 48(%rcx)
	movl	$6, %ebx
	je	LBB0_22
## %bb.16:
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	8(%r15), %rcx
	movq	%rax, 56(%rcx)
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	(%r15), %rcx
	movq	%rax, 56(%rcx)
	movq	8(%r15), %rcx
	cmpq	$0, 56(%rcx)
	movl	$7, %ebx
	je	LBB0_22
## %bb.18:
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %ebx
	jmp	LBB0_22
LBB0_21:
	movl	$2, %ebx
LBB0_22:
	movq	%r14, %rdi
	callq	_vp9_decode_free
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate frame buffer %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_init_frames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_frames
_init_frames:                           ; @init_frames
	.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	x19, x0
	ldr	x21, [x0]
	bl	_av_frame_alloc
	ldr	x8, [x21, #16]
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_av_frame_alloc
	ldr	x8, [x21, #16]
	str	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.2:
	bl	_av_frame_alloc
	ldr	x8, [x21, #16]
	str	x0, [x8, #16]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8]
	ldr	x8, [x9]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_8
LBB0_5:
	mov	w20, #2
	b	LBB0_8
LBB0_6:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #8]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #8]
	ldr	x8, [x9, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_9
LBB0_7:
	mov	w20, #1
LBB0_8:
	mov	x0, x19
	bl	_vp9_decode_free
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_av_log
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_9:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #16]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #16]
	ldr	x8, [x9, #16]
	mov	w20, #2
	cbz	x8, LBB0_8
; %bb.10:
	cbz	x0, LBB0_8
; %bb.11:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #24]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #24]
	ldr	x8, [x9, #24]
	mov	w20, #3
	cbz	x8, LBB0_8
; %bb.12:
	cbz	x0, LBB0_8
; %bb.13:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #32]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #32]
	ldr	x8, [x9, #32]
	mov	w20, #4
	cbz	x8, LBB0_8
; %bb.14:
	cbz	x0, LBB0_8
; %bb.15:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #40]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #40]
	ldr	x8, [x9, #40]
	mov	w20, #5
	cbz	x8, LBB0_8
; %bb.16:
	cbz	x0, LBB0_8
; %bb.17:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #48]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #48]
	ldr	x8, [x9, #48]
	mov	w20, #6
	cbz	x8, LBB0_8
; %bb.18:
	cbz	x0, LBB0_8
; %bb.19:
	bl	_av_frame_alloc
	ldr	x8, [x21, #8]
	str	x0, [x8, #56]
	bl	_av_frame_alloc
	ldp	x8, x9, [x21]
	str	x0, [x8, #56]
	ldr	x8, [x9, #56]
	mov	w20, #7
	cbz	x8, LBB0_8
; %bb.20:
	cbz	x0, LBB0_8
; %bb.21:
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate frame buffer %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_frames
.subsections_via_symbols
