	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_frame_buffer
_get_frame_buffer:                      ## @get_frame_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	leaq	8(%rdi), %rbx
	cmpq	%rsi, (%rdi)
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rbx, %rdi
	callq	_av_buffer_pool_uninit
	movq	_av_buffer_allocz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_av_buffer_pool_init
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%eax, %edi
	movq	%r15, (%r12)
	jmp	LBB0_6
LBB0_1:
	movl	(%rbx), %edi
LBB0_6:
	callq	_av_buffer_pool_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, 16(%r14)
	movq	(%r12), %rcx
	movq	%rcx, (%r14)
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$0, (%r12)
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_av_buffer_allocz,4,2           ## @av_buffer_allocz
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_get_frame_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_frame_buffer
_get_frame_buffer:                      ; @get_frame_buffer
	.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, x2
	mov	x20, x0
	mov	x22, x0
	ldr	x8, [x22], #8
	cmp	x8, x1
	b.hs	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x0, x22
	bl	_av_buffer_pool_uninit
Lloh0:
	adrp	x8, _av_buffer_allocz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _av_buffer_allocz@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_av_buffer_pool_init
	str	w0, [x22]
	cbz	w0, LBB0_5
; %bb.2:
	str	x21, [x20]
	bl	_av_buffer_pool_get
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_3:
	ldr	w0, [x22]
	bl	_av_buffer_pool_get
	cbz	x0, LBB0_6
LBB0_4:
	str	x0, [x19, #16]
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	w8, [x0]
	str	w8, [x19, #8]
	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
LBB0_5:
	str	xzr, [x20]
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_av_buffer_allocz,4,2           ; @av_buffer_allocz
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_get_frame_buffer
.subsections_via_symbols
