	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_missing_ref
_generate_missing_ref:                  ## @generate_missing_ref
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_alloc_frame
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movl	8(%r15), %eax
	movl	%eax, 16(%r12)
	movq	$0, 8(%r12)
	movq	(%r15), %rax
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ff_thread_report_progress
LBB0_15:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	16(%r15), %rax
	cmpl	$0, 32(%rax)
	movq	24(%r12), %rdx
	je	LBB0_9
## %bb.3:
	movq	8(%rdx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.4:
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdx), %rcx
	cmpq	$0, 8(%rcx,%r13,8)
	leaq	1(%r13), %r13
	je	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	4(%rax), %esi
	movq	8(%rax), %rcx
	movb	(%rcx,%r13,4), %cl
	sarl	%cl, %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movq	(%rdx,%r13,8), %r15
	movslq	(%rcx,%r13,4), %r14
	movslq	%ebx, %rbx
	imulq	%rbx, %r14
	leaq	(%r15,%r14,4), %rdi
	movzbl	(%rax), %ecx
	decb	%cl
	movl	$1, %esi
	shll	%cl, %esi
	callq	_AV_WN16
	leaq	(%r15,%r14,4), %rdi
	addq	$8, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rax
	movl	16(%rax), %edx
	movq	24(%rax), %rax
	movzbl	(%rax,%r13,4), %ecx
	sarl	%cl, %edx
	addl	%edx, %edx
	addl	$-2, %edx
	movl	$2, %esi
	callq	_av_memcpy_backptr
	movq	16(%r15), %rax
	movl	4(%rax), %esi
	movq	8(%rax), %rcx
	movzbl	(%rcx,%r13,4), %ecx
	sarl	%cl, %esi
	incl	%ebx
	movq	24(%r12), %rdx
	cmpl	%esi, %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	16(%rdx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.10:
	movl	(%rcx), %edx
	movl	4(%rcx), %edi
	movb	(%rax), %cl
	decb	%cl
	movl	$1, %esi
	shll	%cl, %esi
	callq	_memset
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movzbl	(%rcx), %ecx
	decb	%cl
	movl	$1, %esi
	shll	%cl, %esi
	callq	_memset
	movq	24(%r12), %rax
	movq	16(%rax), %rax
	movq	(%rax,%rbx), %rax
	addq	$8, %rbx
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_THREAD_FRAME,8,3            ## @FF_THREAD_FRAME
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_generate_missing_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_missing_ref
_generate_missing_ref:                  ; @generate_missing_ref
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_alloc_frame
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
LBB0_2:
	str	w21, [x19]
	ldr	w8, [x20, #8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x0, x19, #4
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ff_thread_report_progress
LBB0_4:
	mov	x0, x19
	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_5:
	ldr	x8, [x20, #16]
	ldr	w10, [x8, #32]
	ldr	x9, [x19, #24]
	cbz	w10, LBB0_12
; %bb.6:
	ldr	x10, [x9, #8]
	ldr	x10, [x10]
	cbz	x10, LBB0_2
; %bb.7:
	mov	x23, #0
	mov	w24, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldr	x10, [x9, #8]
	ldr	x10, [x10, x23, lsl #3]
	cbz	x10, LBB0_2
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w10, [x8, #4]
	ldr	x11, [x8, #8]
	ldr	w11, [x11, x23, lsl #2]
	asr	w10, w10, w11
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w25, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x10, [x9]
	ldr	x10, [x10, x23, lsl #3]
	lsl	x26, x23, #2
	ldr	w9, [x9, x26]
	mul	w9, w9, w25
	add	x22, x10, w9, sxtw #2
	ldr	w8, [x8]
	sub	w8, w8, #1
	lsl	w1, w24, w8
	mov	x0, x22
	bl	_AV_WN16
	add	x0, x22, #8
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #16]
	ldr	x8, [x8, #24]
	ldr	w8, [x8, x26]
	asr	w8, w9, w8
	lsl	w8, w8, #1
	sub	w2, w8, #2
	mov	w1, #2
	bl	_av_memcpy_backptr
	add	w25, w25, #1
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #4]
	ldr	x10, [x8, #8]
	ldr	w10, [x10, x26]
	asr	w10, w9, w10
	ldr	x9, [x19, #24]
	cmp	w25, w10
	b.lt	LBB0_11
	b	LBB0_8
LBB0_12:
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.13:
	ldr	w8, [x8]
	sub	w8, w8, #1
	mov	w22, #1
	lsl	w1, w22, w8
	ldp	w2, w0, [x9]
	bl	_memset
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.14:
	mov	w23, #16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	sub	w9, w9, #1
	lsl	w1, w22, w9
	ldp	w2, w0, [x8]
	bl	_memset
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, x23]
	add	x23, x23, #8
	cbnz	x8, LBB0_15
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_THREAD_FRAME,8,3            ; @FF_THREAD_FRAME
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_generate_missing_ref
.subsections_via_symbols
