	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_frame_pool_get              ## -- Begin function ff_frame_pool_get
	.p2align	4, 0x90
_ff_frame_pool_get:                     ## @ff_frame_pool_get
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %r12
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_19
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_33
## %bb.3:
	movl	4(%r14), %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_22
## %bb.4:
	movq	%rax, %r15
	movl	44(%r14), %eax
	movl	%eax, 60(%r12)
	movl	40(%r14), %eax
	movl	%eax, 56(%r12)
	movl	4(%r14), %eax
	movl	%eax, (%r12)
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movq	40(%r12), %rcx
	movl	%eax, (%rcx)
	movq	16(%r14), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.5:
	callq	_av_buffer_pool_get
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.6:
	movq	(%rcx), %rcx
	movq	32(%rax), %rax
	movq	%rcx, (%rax)
	movq	24(%r14), %rax
	movl	4(%rax), %eax
	movq	-40(%rbp), %r12
	movq	40(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	16(%r14), %rax
	movl	4(%rax), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.7:
	callq	_av_buffer_pool_get
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r12), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r14), %rax
	movl	8(%rax), %eax
	movq	40(%r12), %rcx
	movl	%eax, 8(%rcx)
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.9:
	callq	_av_buffer_pool_get
	movq	24(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.10:
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%r14), %rax
	movl	12(%rax), %eax
	movq	40(%r12), %rcx
	movl	%eax, 12(%rcx)
	movq	16(%r14), %rax
	movl	12(%rax), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.11:
	callq	_av_buffer_pool_get
	movq	24(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	24(%r12), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.12:
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	%rax, 24(%rcx)
LBB0_13:
	movl	(%r15), %eax
	movq	_AV_PIX_FMT_FLAG_PAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:
	movq	_FF_PSEUDOPAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
LBB0_15:
	movl	4(%r14), %r14d
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_17
## %bb.16:
	movq	_AV_PIX_FMT_BGR8@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_17:
	movq	32(%r12), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	setne	%dil
	callq	_av_assert0
	movq	32(%r12), %rax
	movq	8(%rax), %rdi
	movl	%r14d, %esi
	callq	_avpriv_set_systematic_pal2
	testl	%eax, %eax
	js	LBB0_22
LBB0_18:
	movq	32(%r12), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_34
LBB0_19:
	movl	36(%r14), %eax
	movl	%eax, 52(%r12)
	movl	32(%r14), %eax
	movl	%eax, 48(%r12)
	movl	4(%r14), %eax
	movl	%eax, (%r12)
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movq	40(%r12), %rcx
	movl	%eax, (%rcx)
	movl	8(%r14), %edi
	movq	_AV_NUM_DATA_POINTERS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %edi
	jle	LBB0_24
## %bb.20:
	movl	$8, %esi
	callq	_av_mallocz_array
	movq	%rax, 16(%r12)
	movl	8(%r14), %edi
	subl	(%r15), %edi
	movl	%edi, 4(%r12)
	movl	$8, %esi
	callq	_av_mallocz_array
	movq	%rax, 8(%r12)
	cmpq	$0, 16(%r12)
	je	LBB0_22
## %bb.21:
	testq	%rax, %rax
	jne	LBB0_25
LBB0_22:
	leaq	-40(%rbp), %rdi
	callq	_av_frame_free
LBB0_23:
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_33:
	xorl	%edi, %edi
	callq	_av_assert0
LBB0_34:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	32(%r12), %rax
	movq	%rax, 16(%r12)
	xorl	%edi, %edi
	cmpl	$0, 4(%r12)
	sete	%dil
	callq	_av_assert0
LBB0_25:
	movl	8(%r14), %edi
	movl	(%r15), %esi
	callq	_FFMIN
	testl	%eax, %eax
	jle	LBB0_29
## %bb.26:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_av_buffer_pool_get
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	-40(%rbp), %rax
	movq	24(%rax), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%rcx), %rcx
	movq	32(%rax), %rax
	movq	%rcx, (%rax,%rbx,8)
	movq	-40(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rcx, (%rax,%rbx,8)
	incq	%rbx
	movl	8(%r14), %edi
	movl	(%r15), %esi
	callq	_FFMIN
	cltq
	movq	-40(%rbp), %r12
	cmpq	%rax, %rbx
	jl	LBB0_27
LBB0_29:
	cmpl	$0, 4(%r12)
	jle	LBB0_34
## %bb.30:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_av_buffer_pool_get
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	-40(%rbp), %rax
	movq	8(%rax), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	(%rcx), %rcx
	movq	16(%rax), %rax
	movslq	(%r15), %rdx
	addq	%rbx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	incq	%rbx
	movq	-40(%rbp), %r12
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_31
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_PAL,4,2        ## @AV_PIX_FMT_FLAG_PAL
	.comm	_FF_PSEUDOPAL,4,2               ## @FF_PSEUDOPAL
	.comm	_AV_PIX_FMT_PAL8,4,2            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_BGR8,4,2            ## @AV_PIX_FMT_BGR8
	.comm	_AV_NUM_DATA_POINTERS,4,2       ## @AV_NUM_DATA_POINTERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_frame_pool_get              ; -- Begin function ff_frame_pool_get
	.p2align	2
_ff_frame_pool_get:                     ; @ff_frame_pool_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_av_frame_alloc
	mov	x20, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_22
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_21
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_20
; %bb.4:
	mov	x21, x0
	ldr	d0, [x19, #40]
	str	d0, [x20, #56]
	ldr	w8, [x19, #4]
	str	w8, [x20]
	ldp	x9, x8, [x19, #16]
	ldr	w8, [x8]
	ldr	x10, [x20, #40]
	str	w8, [x10]
	ldr	w0, [x9]
	cbz	w0, LBB0_13
; %bb.5:
	bl	_av_buffer_pool_get
	ldr	x8, [x20, #24]
	str	x0, [x8]
	ldr	x8, [sp, #8]
	ldr	x9, [x8, #24]
	ldr	x9, [x9]
	cbz	x9, LBB0_20
; %bb.6:
	ldr	x9, [x9]
	ldr	x8, [x8, #32]
	str	x9, [x8]
	ldp	x9, x8, [x19, #16]
	ldr	w8, [x8, #4]
	ldr	x20, [sp, #8]
	ldr	x10, [x20, #40]
	str	w8, [x10, #4]
	ldr	w0, [x9, #4]
	cbz	w0, LBB0_13
; %bb.7:
	bl	_av_buffer_pool_get
	ldr	x8, [x20, #24]
	str	x0, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_20
; %bb.8:
	ldr	x8, [x8]
	ldr	x9, [x20, #32]
	str	x8, [x9, #8]
	ldp	x9, x8, [x19, #16]
	ldr	w8, [x8, #8]
	ldr	x10, [x20, #40]
	str	w8, [x10, #8]
	ldr	w0, [x9, #8]
	cbz	w0, LBB0_13
; %bb.9:
	bl	_av_buffer_pool_get
	ldr	x8, [x20, #24]
	str	x0, [x8, #16]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_20
; %bb.10:
	ldr	x8, [x8]
	ldr	x9, [x20, #32]
	str	x8, [x9, #16]
	ldp	x9, x8, [x19, #16]
	ldr	w8, [x8, #12]
	ldr	x10, [x20, #40]
	str	w8, [x10, #12]
	ldr	w0, [x9, #12]
	cbz	w0, LBB0_13
; %bb.11:
	bl	_av_buffer_pool_get
	ldr	x8, [x20, #24]
	str	x0, [x8, #24]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_20
; %bb.12:
	ldr	x8, [x8]
	ldr	x9, [x20, #32]
	str	x8, [x9, #24]
LBB0_13:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _AV_PIX_FMT_FLAG_PAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PIX_FMT_FLAG_PAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.14:
Lloh3:
	adrp	x9, _FF_PSEUDOPAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_PSEUDOPAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
LBB0_15:
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _AV_PIX_FMT_BGR8@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_PIX_FMT_BGR8@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w19, w10, w8, eq
	ldr	x8, [x20, #32]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_av_assert0
	ldr	x8, [x20, #32]
	ldr	x0, [x8, #8]
	mov	x1, x19
	bl	_avpriv_set_systematic_pal2
	tbnz	w0, #31, LBB0_20
LBB0_16:
	ldr	x8, [x20, #32]
	str	x8, [x20, #16]
	b	LBB0_22
LBB0_17:
	ldr	d0, [x19, #32]
	str	d0, [x20, #48]
	ldr	w8, [x19, #4]
	str	w8, [x20]
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	ldr	x9, [x20, #40]
	str	w8, [x9]
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x21, _AV_NUM_DATA_POINTERS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _AV_NUM_DATA_POINTERS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.le	LBB0_23
; %bb.18:
	mov	w1, #8
	bl	_av_mallocz_array
	str	x0, [x20, #16]
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	sub	w0, w8, w9
	str	w0, [x20, #4]
	mov	w1, #8
	bl	_av_mallocz_array
	str	x0, [x20, #8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_20
; %bb.19:
	cbnz	x0, LBB0_24
LBB0_20:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x20, #0
	b	LBB0_22
LBB0_21:
	mov	w0, #0
	bl	_av_assert0
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_23:
	ldr	x8, [x20, #32]
	str	x8, [x20, #16]
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_av_assert0
LBB0_24:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_28
; %bb.25:
	mov	x22, #0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_av_buffer_pool_get
	ldr	x9, [x20, #24]
	lsl	x8, x22, #3
	str	x0, [x9, x8]
	ldr	x9, [sp, #8]
	ldr	x10, [x9, #24]
	ldr	x10, [x10, x8]
	cbz	x10, LBB0_20
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x10, [x10]
	ldr	x9, [x9, #32]
	str	x10, [x9, x8]
	ldr	x9, [sp, #8]
	ldr	x9, [x9, #16]
	str	x10, [x9, x8]
	add	x22, x22, #1
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_FFMIN
	ldr	x20, [sp, #8]
	cmp	x22, w0, sxtw
	b.lt	LBB0_26
LBB0_28:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.29:
	mov	x22, #0
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_av_buffer_pool_get
	ldr	x8, [x20, #8]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [sp, #8]
	ldr	x10, [x8, #8]
	ldr	x9, [x10, x9]
	cbz	x9, LBB0_20
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	ldrsw	x10, [x21]
	add	x10, x22, x10
	str	x9, [x8, x10, lsl #3]
	add	x22, x22, #1
	ldr	x20, [sp, #8]
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.lt	LBB0_30
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_PAL,4,2        ; @AV_PIX_FMT_FLAG_PAL
	.comm	_FF_PSEUDOPAL,4,2               ; @FF_PSEUDOPAL
	.comm	_AV_PIX_FMT_PAL8,4,2            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_BGR8,4,2            ; @AV_PIX_FMT_BGR8
	.comm	_AV_NUM_DATA_POINTERS,4,2       ; @AV_NUM_DATA_POINTERS
.subsections_via_symbols
