	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_default_get_video_buffer    ## -- Begin function ff_default_get_video_buffer
	.p2align	4, 0x90
_ff_default_get_video_buffer:           ## @ff_default_get_video_buffer
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	movq	24(%r12), %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_av_hwframe_get_buffer
	testl	%eax, %eax
	jns	LBB0_17
## %bb.4:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	-56(%rbp), %rbx
	jmp	LBB0_17
LBB0_5:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.6:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_ff_frame_pool_get_video_config
	testq	%rax, %rax
	js	LBB0_13
## %bb.7:
	leaq	16(%r12), %rdi
	cmpl	%r15d, -48(%rbp)
	jne	LBB0_14
## %bb.8:
	cmpl	%r14d, -44(%rbp)
	jne	LBB0_14
## %bb.9:
	movl	-36(%rbp), %eax
	cmpq	%rax, (%r12)
	jne	LBB0_14
## %bb.10:
	movl	-40(%rbp), %eax
	movq	_BUFFER_ALIGN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:
	movq	(%rdi), %rax
	jmp	LBB0_15
LBB0_14:
	callq	_ff_frame_pool_uninit
LBB0_12:
	movq	_av_buffer_allocz@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rcx
	movq	_BUFFER_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_ff_frame_pool_video_init
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_13
LBB0_15:
	movq	%rax, %rdi
	callq	_ff_frame_pool_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:
	movq	%rax, %rbx
	movl	8(%r12), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_17
LBB0_13:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ## @AV_PIX_FMT_NONE
	.comm	_av_buffer_allocz,4,2           ## @av_buffer_allocz
	.comm	_BUFFER_ALIGN,4,2               ## @BUFFER_ALIGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_default_get_video_buffer    ; -- Begin function ff_default_get_video_buffer
	.p2align	2
_ff_default_get_video_buffer:           ; @ff_default_get_video_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
Lloh0:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_av_frame_alloc
	mov	x20, x0
	str	x0, [sp, #8]
	cbz	x0, LBB0_18
; %bb.3:
	ldr	x0, [x19, #24]
	mov	x1, x20
	mov	w2, #0
	bl	_av_hwframe_get_buffer
	tbz	w0, #31, LBB0_18
; %bb.4:
	add	x0, sp, #8
	bl	_av_frame_free
	ldr	x20, [sp, #8]
	b	LBB0_18
LBB0_5:
	mov	x22, x19
	ldr	x0, [x22, #16]!
	cbz	x0, LBB0_12
; %bb.6:
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #20
	bl	_ff_frame_pool_get_video_config
	tbnz	x0, #63, LBB0_17
; %bb.7:
	ldr	w8, [sp, #28]
Lloh3:
	adrp	x23, _BUFFER_ALIGN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BUFFER_ALIGN@GOTPAGEOFF]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.8:
	ldr	w8, [sp, #24]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.9:
	ldr	w8, [sp, #16]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [sp, #20]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
	ldr	x0, [x22]
	b	LBB0_15
LBB0_12:
Lloh5:
	adrp	x8, _av_buffer_allocz@GOTPAGE
Lloh6:
	ldr	x8, [x8, _av_buffer_allocz@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x3, [x19]
Lloh8:
	adrp	x8, _BUFFER_ALIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUFFER_ALIGN@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_ff_frame_pool_uninit
Lloh11:
	adrp	x8, _av_buffer_allocz@GOTPAGE
Lloh12:
	ldr	x8, [x8, _av_buffer_allocz@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x3, [x19]
	ldr	w4, [x23]
LBB0_14:
	mov	x1, x21
	mov	x2, x20
	bl	_ff_frame_pool_video_init
	str	x0, [x19, #16]
	cbz	x0, LBB0_17
LBB0_15:
	bl	_ff_frame_pool_get
	mov	x20, x0
	cbz	x0, LBB0_18
; %bb.16:
	ldr	w8, [x19, #8]
	str	w8, [x20]
	b	LBB0_18
LBB0_17:
	mov	x20, #0
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_NONE,4,2            ; @AV_PIX_FMT_NONE
	.comm	_av_buffer_allocz,4,2           ; @av_buffer_allocz
	.comm	_BUFFER_ALIGN,4,2               ; @BUFFER_ALIGN
.subsections_via_symbols
