	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_out_frame
_alloc_out_frame:                       ## @alloc_out_frame
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	movl	4(%rcx), %edx
	movq	%rcx, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r12
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movl	4(%r15), %eax
	movl	%eax, 4(%r12)
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	subq	(%rax), %r13
	sarq	$2, %r13
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movslq	8(%rsi), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_5:
	movl	16(%rsi), %esi
	movl	$1, %edi
	callq	_av_make_q
	movl	12(%r15), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_av_rescale_q
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, 24(%r12)
	cmpl	$0, 4(%r15)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movslq	(%rax), %rdi
	movslq	%ebx, %rbx
	imulq	%rbx, %rdi
	addq	(%rcx), %rdi
	movl	(%r14), %edx
	imull	(%r15), %edx
	xorl	%esi, %esi
	callq	_memset
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_out_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_out_frame
_alloc_out_frame:                       ; @alloc_out_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	ldp	w1, w2, [x3]
	mov	x0, x3
	bl	_ff_get_video_buffer
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	d0, [x19]
	str	d0, [x0]
	ldp	x8, x25, [x23, #16]
	ldr	x8, [x8]
	sub	x8, x24, x8
	asr	x8, x8, #2
	ldrsw	x9, [x22, #8]
	ldr	w1, [x22, #16]
	sdiv	x22, x8, x9
	mov	w0, #1
	bl	_av_make_q
	mov	x1, x0
	ldr	w2, [x19, #12]
	mov	x0, x22
	bl	_av_rescale_q
	add	x8, x0, x25
	str	x8, [x21, #24]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.4:
	mov	w22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x21, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	sxtw	x10, w22
	madd	x0, x9, x10, x8
	ldr	w8, [x19]
	ldr	w9, [x20]
	mul	w2, w9, w8
	mov	w1, #0
	bl	_memset
	add	w22, w22, #1
	ldr	w8, [x19, #4]
	cmp	w22, w8
	b.lt	LBB0_5
	b	LBB0_1
LBB0_6:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_out_frame
.subsections_via_symbols
