	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function await_references
_await_references:                      ## @await_references
	.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	$472, %rsp                      ## imm = 0x1D8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	(%rsi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %r13d
	movq	$0, -448(%rbp)
	leaq	-432(%rbp), %rdi
	movl	$-1, %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_memset
	movl	%r13d, %edi
	callq	_IS_16X16
	testq	%rax, %rax
	movq	%r15, -456(%rbp)                ## 8-byte Spill
	movq	%rbx, -464(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-448(%rbp), %r10
	leaq	-432(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	$16, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	%r14
	jmp	LBB0_5
LBB0_2:
	callq	_IS_16X8
	movl	%r13d, %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r12d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-448(%rbp), %r10
	leaq	-432(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$8, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	%r12
	callq	_get_lowest_part_y
	addq	$32, %rsp
	movl	%r13d, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$8, %ecx
	movl	$8, %r8d
	movl	$8, %r9d
	jmp	LBB0_4
LBB0_6:
	callq	_IS_8X16
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r12d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-448(%rbp), %r10
	leaq	-432(%rbp), %r14
	movq	-464(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-456(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$16, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	%r12
	callq	_get_lowest_part_y
	addq	$32, %rsp
	movl	%r13d, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$4, %ecx
	movl	$16, %r8d
	xorl	%r9d, %r9d
LBB0_4:
	leaq	-448(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	%r12
LBB0_5:
	callq	_get_lowest_part_y
	addq	$32, %rsp
LBB0_19:
	movl	16(%r15), %ecx
	movq	%rcx, %rax
	movq	%rcx, -440(%rbp)                ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_37
## %bb.20:
	movq	-440(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	shlq	$6, %rax
	leaq	-432(%rbp), %rcx
	addq	%rcx, %rax
	addq	$-192, %rax
	movq	%rax, -488(%rbp)                ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_21 Depth=1
	addq	$-192, -488(%rbp)               ## 8-byte Folded Spill
	cmpq	$1, -496(%rbp)                  ## 8-byte Folded Reload
	jle	LBB0_37
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movq	-440(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -496(%rbp)                ## 8-byte Spill
	decq	%rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-464(%rbp), %rdi                ## 8-byte Reload
	callq	_FIELD_PICTURE
	movq	%rax, %r12
	movq	-472(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax,%r15,4), %r14
	addq	$8, %r14
	movl	-476(%rbp), %esi                ## 4-byte Reload
	decl	%esi
	movl	%ebx, %edi
	callq	_FFMIN
	testq	%r12, %r12
	je	LBB0_31
## %bb.33:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=2
	callq	_ff_thread_await_progress
LBB0_35:                                ##   in Loop: Header=BB0_22 Depth=2
	addq	$4, %r15
	cmpq	$192, %r15
	je	LBB0_36
LBB0_22:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-440(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, -448(%rbp,%rax,4)
	je	LBB0_36
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-488(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r15), %ebx
	testl	%ebx, %ebx
	js	LBB0_35
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-456(%rbp), %rdi                ## 8-byte Reload
	movq	24(%rdi), %rax
	movq	-440(%rbp), %r14                ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r15,4), %ecx
	movq	%rcx, -504(%rbp)                ## 8-byte Spill
	movq	%rax, -472(%rbp)                ## 8-byte Spill
	movq	8(%rax,%r15,4), %rax
	movl	(%rax), %r12d
	movq	-464(%rbp), %r13                ## 8-byte Reload
	movl	(%r13), %eax
	shll	$4, %eax
	movl	%r12d, %ecx
	sarl	%cl, %eax
	movl	%eax, -476(%rbp)                ## 4-byte Spill
	callq	_MB_MBAFF
	movl	%eax, %ecx
	shll	%cl, %ebx
	decl	-448(%rbp,%r14,4)
	movq	%r13, %rdi
	callq	_FIELD_PICTURE
	testq	%rax, %rax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=2
	testl	%r12d, %r12d
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-472(%rbp), %r12                ## 8-byte Reload
	movq	8(%r12,%r15,4), %rax
	movl	4(%rax), %eax
	notl	%eax
	xorl	%edi, %edi
	testb	$3, %al
	sete	%dil
	callq	_av_assert2
	movq	8(%r12,%r15,4), %r14
	addq	$8, %r14
	movl	%ebx, %r13d
	sarl	%r13d
	orl	$-2, %ebx
	leal	(%rbx,%r13), %edi
	incl	%edi
	movl	-476(%rbp), %ebx                ## 4-byte Reload
	decl	%ebx
	movl	%ebx, %esi
	callq	_FFMIN
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_ff_thread_await_progress
	movq	8(%r12,%r15,4), %r14
	addq	$8, %r14
	movl	%r13d, %edi
	movl	%ebx, %esi
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	-504(%rbp), %r13                ## 8-byte Reload
	decl	%r13d
	movq	-464(%rbp), %rdi                ## 8-byte Reload
	callq	_FIELD_PICTURE
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=2
	testl	%r12d, %r12d
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-472(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax,%r15,4), %r14
	addq	$8, %r14
	leal	(%r13,%rbx,2), %edi
	movl	-476(%rbp), %esi                ## 4-byte Reload
	decl	%esi
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	callq	_FFMIN
LBB0_31:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	jmp	LBB0_34
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.38:
	addq	$472, %rsp                      ## imm = 0x1D8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r13d, %edi
	callq	_IS_8X8
	movl	%eax, %edi
	callq	_av_assert2
	xorl	%r12d, %r12d
	movq	-456(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_IS_SUB_8X4
	movl	%r13d, %edi
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	-464(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-432(%rbp), %rdx
	movl	%r12d, %ecx
	movl	$4, %r8d
	movl	%ebx, %r9d
	movl	%ebx, %r14d
	leaq	-448(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	-440(%rbp)                      ## 8-byte Folded Reload
	callq	_get_lowest_part_y
	addq	$32, %rsp
	orl	$4, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%r12), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-432(%rbp), %rdx
	movl	$4, %r8d
	movl	%r14d, %r9d
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	pushq	%rbx
	pushq	%rax
	pushq	-440(%rbp)                      ## 8-byte Folded Reload
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_get_lowest_part_y
	addq	$32, %rsp
	addq	$4, %r12
	cmpq	$16, %r12
	movq	-456(%rbp), %r15                ## 8-byte Reload
	je	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r12), %r13d
	movl	%r12d, %ebx
	andl	$8, %ebx
	movl	%r13d, %edi
	callq	_IS_SUB_8X8
	movl	%r13d, %edi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	-464(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	leaq	-432(%rbp), %rdx
	movl	%r12d, %ecx
	movl	$8, %r8d
	movl	%ebx, %r9d
	leaq	-448(%rbp), %rbx
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_IS_SUB_4X8
	testq	%rax, %rax
	movl	%ebx, -472(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	-464(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	-456(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-432(%rbp), %rdx
	movl	%r12d, %ecx
	movl	$8, %r8d
	movl	%ebx, %r9d
	leaq	-448(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	-440(%rbp)                      ## 8-byte Folded Reload
	callq	_get_lowest_part_y
	addq	$32, %rsp
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%r12), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	leaq	-432(%rbp), %rdx
	movl	$8, %r8d
	movl	-472(%rbp), %r9d                ## 4-byte Reload
	jmp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_IS_SUB_4X4
	movl	%eax, %edi
	callq	_av_assert2
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	-464(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-432(%rbp), %rdx
	movl	%r12d, %ecx
	movl	$4, %r8d
	movl	%ebx, %r9d
	leaq	-448(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	callq	_get_lowest_part_y
	addq	$32, %rsp
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -440(%rbp)                ## 8-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%r12), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-432(%rbp), %rdx
	movl	$4, %r8d
	movl	-472(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %r9d
	leaq	-448(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	-440(%rbp)                      ## 8-byte Folded Reload
	callq	_get_lowest_part_y
	addq	$32, %rsp
	movl	%r14d, %ebx
	orl	$4, %ebx
	movl	%ebx, -472(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	leal	2(%r12), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-432(%rbp), %rdx
	movl	$4, %r8d
	movl	%ebx, %r9d
	leaq	-448(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	%r14
	callq	_get_lowest_part_y
	addq	$32, %rsp
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_IS_DIR
	movl	%eax, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_IS_DIR
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%r12), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-456(%rbp), %rsi                ## 8-byte Reload
	leaq	-432(%rbp), %rdx
	movl	$4, %r8d
	movl	-472(%rbp), %r9d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_await_references
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function await_references
_await_references:                      ; @await_references
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #448
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldrsw	x8, [x1]
	ldr	x9, [x0, #8]
	ldr	w21, [x9, x8, lsl #2]
	str	xzr, [sp, #40]
	add	x0, sp, #48
	mov	w1, #-1
	mov	w2, #384
	bl	_memset
	mov	x0, x21
	bl	_IS_16X16
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	x8, sp, #40
	str	x8, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
LBB0_2:
	mov	w4, #16
	mov	w5, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_IS_16X8
	cbz	x0, LBB0_26
; %bb.4:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	x19, sp, #40
	str	x19, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
	mov	w4, #8
	mov	w5, #0
	mov	x6, x22
	bl	_get_lowest_part_y
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_IS_DIR
	mov	x22, x0
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	str	x19, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	w3, #8
	mov	w4, #8
	mov	w5, #8
LBB0_5:
	mov	x6, x22
	bl	_get_lowest_part_y
	mov	x0, x23
LBB0_6:
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	ldr	w25, [x0, #16]
	cmp	w25, #1
	b.lt	LBB0_24
; %bb.7:
	mov	w8, #192
	add	x9, sp, #48
	madd	x8, x25, x8, x9
	sub	x26, x8, #192
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldp	x8, x26, [sp, #8]               ; 16-byte Folded Reload
	sub	x26, x26, #192
	cmp	x8, #1
	b.le	LBB0_24
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x28, #0
	stp	x25, x26, [sp, #8]              ; 16-byte Folded Spill
	sub	x25, x25, #1
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	mov	w9, #3
	bics	wzr, w9, w8
	cset	w0, eq
	bl	_av_assert2
	ldr	x8, [x19, #8]
	add	x22, x8, #8
	asr	w23, w21, #1
	orr	w8, w21, #0xfffffffe
	add	w8, w8, w23
	add	w0, w8, #1
	sub	w21, w20, #1
	mov	x1, x21
	bl	_FFMIN
	mov	x1, x0
	mov	x0, x22
	mov	w2, #1
	bl	_ff_thread_await_progress
	ldr	x8, [x19, #8]
	add	x22, x8, #8
	mov	x0, x23
	mov	x1, x21
	bl	_FFMIN
	mov	x1, x0
	mov	x0, x22
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	w2, #0
	bl	_ff_thread_await_progress
	mov	x0, x27
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x26, x26, #4
	add	x28, x28, #16
	cmp	x28, #768
	b.eq	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, sp, #40
	ldr	w8, [x8, x25, lsl #2]
	cbz	w8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w21, [x26]
	tbnz	w21, #31, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x0, #24]
	ldr	x8, [x8, x25, lsl #3]
	add	x19, x8, x28
	ldr	w22, [x19]
	ldr	x8, [x19, #8]
	ldr	w23, [x8]
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w8, [x24]
	lsl	w8, w8, #4
	asr	w20, w8, w23
	mov	x27, x0
	bl	_MB_MBAFF
	lsl	w21, w21, w0
	lsl	x8, x25, #2
	add	x10, sp, #40
	ldr	w9, [x10, x8]
	sub	w9, w9, #1
	str	w9, [x10, x8]
	mov	x0, x24
	bl	_FIELD_PICTURE
	cbnz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	cbnz	w23, LBB0_10
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=2
	sub	w22, w22, #1
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_FIELD_PICTURE
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=2
	cbnz	w23, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x19, #8]
	add	x23, x8, #8
	add	w0, w22, w21, lsl #1
	sub	w1, w20, #1
	bl	_FFMIN
	mov	x1, x0
	mov	x0, x23
	b	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_FIELD_PICTURE
	mov	x24, x0
	ldr	x8, [x19, #8]
	add	x23, x8, #8
	sub	w1, w20, #1
	mov	x0, x21
	bl	_FFMIN
	mov	x1, x0
	mov	x0, x23
	cbz	x24, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x2, x22
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	w2, #0
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=2
	bl	_ff_thread_await_progress
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_12
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.25:
	add	sp, sp, #448
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	x0, x21
	bl	_IS_8X16
	cbz	x0, LBB0_28
; %bb.27:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	x19, sp, #40
	str	x19, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	w3, #0
	mov	w4, #16
	mov	w5, #0
	mov	x6, x22
	bl	_get_lowest_part_y
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_IS_DIR
	mov	x22, x0
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	str	x19, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x23
	mov	w3, #4
	b	LBB0_2
LBB0_28:
	mov	x0, x21
	bl	_IS_8X8
	bl	_av_assert2
	mov	x21, #0
	add	x25, sp, #40
	mov	x0, x23
	b	LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	w4, #8
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x5, x23
	mov	x6, x24
	bl	_get_lowest_part_y
	add	x21, x21, #4
	cmp	x21, #16
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b.eq	LBB0_6
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	ldr	w22, [x8, x21]
	and	w23, w21, #0x8
	mov	x19, x0
	mov	x0, x22
	bl	_IS_SUB_8X8
	cbnz	x0, LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x22
	bl	_IS_SUB_8X4
	cbz	x0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	mov	w4, #4
	mov	x5, x23
	mov	x6, x24
	bl	_get_lowest_part_y
	orr	w23, w23, #0x4
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	w3, w21, #2
LBB0_35:                                ;   in Loop: Header=BB0_32 Depth=1
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	mov	w4, #4
	b	LBB0_31
LBB0_36:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x22
	bl	_IS_SUB_4X8
	cbz	x0, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	mov	x1, x19
	mov	x3, x21
	mov	w4, #8
	mov	x5, x23
	mov	x6, x24
	bl	_get_lowest_part_y
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	w3, w21, #1
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	b	LBB0_30
LBB0_38:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x22
	bl	_IS_SUB_4X4
	bl	_av_assert2
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	mov	x1, x19
	mov	x3, x21
	mov	w4, #4
	mov	x5, x23
	mov	x6, x24
	bl	_get_lowest_part_y
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	w3, w21, #1
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	mov	w4, #4
	mov	x5, x23
	mov	x6, x24
	bl	_get_lowest_part_y
	orr	w23, w23, #0x4
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	w3, w21, #2
	str	x25, [sp]
	add	x2, sp, #48
	mov	x0, x20
	mov	x1, x19
	mov	w4, #4
	mov	x5, x23
	mov	x6, x24
	bl	_get_lowest_part_y
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_IS_DIR
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #1
	bl	_IS_DIR
	mov	x7, x0
	add	w3, w21, #3
	b	LBB0_35
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_await_references
.subsections_via_symbols
