	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_video_buffer
_get_video_buffer:                      ## @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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	cmpq	$0, (%rbx)
	jle	LBB0_12
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movslq	%esi, %rsi
	addq	64(%rbx), %rsi
	subq	56(%rbx), %rsi
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rbx)
	movslq	%edx, %rdx
	setg	%cl
	addq	48(%rbx), %rdx
	movl	(%rax), %edi
	subq	40(%rbx), %rdx
	addq	%rcx, %rdx
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	%r15d, (%rax)
	movl	%r14d, 4(%rax)
	movq	16(%rax), %r15
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.3:
	movq	8(%rax), %r14
	movl	(%r14), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.4:
	movq	16(%rbx), %r9
	movb	(%r9), %cl
	movq	24(%rbx), %r8
	movl	8(%rbx), %r10d
	movl	%r10d, %edx
	sarl	%cl, %edx
	movb	(%r8), %cl
	movq	32(%rbx), %r11
	imull	(%r11), %edx
	movl	12(%rbx), %r12d
	movl	%r12d, %ebx
	sarl	%cl, %ebx
	imull	%edi, %ebx
	addl	%edx, %ebx
	movslq	%ebx, %rcx
	addq	%rcx, %rsi
	movq	%rsi, (%r15)
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.5:
	movl	4(%r14), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.6:
	movb	4(%r9), %cl
	movl	%r10d, %edx
	sarl	%cl, %edx
	imull	4(%r11), %edx
	movb	4(%r8), %cl
	movl	%r12d, %ebx
	sarl	%cl, %ebx
	imull	%edi, %ebx
	addl	%edx, %ebx
	movslq	%ebx, %rcx
	addq	%rcx, %rsi
	movq	%rsi, 8(%r15)
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.7:
	movl	8(%r14), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.8:
	movb	8(%r9), %cl
	movl	%r10d, %edx
	sarl	%cl, %edx
	imull	8(%r11), %edx
	movb	8(%r8), %cl
	movl	%r12d, %ebx
	sarl	%cl, %ebx
	imull	%edi, %ebx
	addl	%edx, %ebx
	movslq	%ebx, %rcx
	addq	%rcx, %rsi
	movq	%rsi, 16(%r15)
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.9:
	movl	12(%r14), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.10:
	movb	12(%r9), %cl
	sarl	%cl, %r10d
	movb	12(%r8), %cl
	imull	12(%r11), %r10d
	sarl	%cl, %r12d
	imull	%edi, %r12d
	addl	%r10d, %r12d
	movslq	%r12d, %rcx
	addq	%rcx, %rsi
	movq	%rsi, 24(%r15)
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_video_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_video_buffer
_get_video_buffer:                      ; @get_video_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
	ldr	x8, [x0]
	ldr	x21, [x8, #8]
	ldr	x9, [x21]
	cmp	x9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldp	x9, x8, [x21, #56]
	add	x8, x8, w1, sxtw
	sub	x1, x8, x9
	ldp	x9, x8, [x21, #40]
	ldr	w10, [x21, #8]
	add	x8, x8, w2, sxtw
	sub	x8, x8, x9
	cmp	w10, #0
	cinc	x2, x8, gt
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_12
; %bb.2:
	stp	w20, w19, [x0]
	ldr	x8, [x0, #16]
	ldr	x15, [x8]
	cbz	x15, LBB0_12
; %bb.3:
	ldr	x9, [x0, #8]
	ldr	w16, [x9]
	cbz	w16, LBB0_12
; %bb.4:
	ldp	x10, x11, [x21, #16]
	ldr	w14, [x10]
	ldr	w17, [x11]
	ldp	w12, w13, [x21, #8]
	asr	w1, w12, w14
	ldr	x14, [x21, #32]
	ldr	w2, [x14]
	mul	w1, w2, w1
	asr	w17, w13, w17
	madd	w16, w17, w16, w1
	add	x15, x15, w16, sxtw
	str	x15, [x8]
	ldr	x15, [x8, #8]
	cbz	x15, LBB0_12
; %bb.5:
	ldr	w16, [x9, #4]
	cbz	w16, LBB0_12
; %bb.6:
	ldr	w17, [x10, #4]
	ldr	w1, [x11, #4]
	asr	w17, w12, w17
	ldr	w2, [x14, #4]
	mul	w17, w2, w17
	asr	w1, w13, w1
	madd	w16, w1, w16, w17
	add	x15, x15, w16, sxtw
	str	x15, [x8, #8]
	ldr	x15, [x8, #16]
	cbz	x15, LBB0_12
; %bb.7:
	ldr	w16, [x9, #8]
	cbz	w16, LBB0_12
; %bb.8:
	ldr	w17, [x10, #8]
	ldr	w1, [x11, #8]
	asr	w17, w12, w17
	ldr	w2, [x14, #8]
	mul	w17, w2, w17
	asr	w1, w13, w1
	madd	w16, w1, w16, w17
	add	x15, x15, w16, sxtw
	str	x15, [x8, #16]
	ldr	x15, [x8, #24]
	cbz	x15, LBB0_12
; %bb.9:
	ldr	w9, [x9, #12]
	cbz	w9, LBB0_12
; %bb.10:
	ldr	w10, [x10, #12]
	ldr	w11, [x11, #12]
	asr	w10, w12, w10
	ldr	w12, [x14, #12]
	mul	w10, w12, w10
	asr	w11, w13, w11
	madd	w9, w11, w9, w10
	add	x9, x15, w9, sxtw
	str	x9, [x8, #24]
	b	LBB0_12
LBB0_11:
	mov	x0, #0
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_video_buffer
.subsections_via_symbols
