	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function escape124_decode_frame
_escape124_decode_frame:                ## @escape124_decode_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rcx), %r14d
	movq	8(%rdi), %r15
	movl	$1, -64(%rbp)
	movl	(%rdi), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	4(%rcx), %esi
	leaq	-44(%rbp), %rdi
	movl	%r14d, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_14
## %bb.1:
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	leaq	-44(%rbp), %rdi
	callq	_get_bits_left
	movslq	%eax, %rcx
	movq	(%r15), %rdx
	leaq	(%rdx,%rdx,2), %rax
	shlq	$3, %rax
	subq	%rdx, %rax
	movabsq	$8745123116425268915, %rdx      ## imm = 0x795CEB240795CEB3
	imulq	%rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$11, %rdx
	addq	%rdx, %rax
	addq	$64, %rax
	movl	$-1, %r12d
	cmpq	%rcx, %rax
	jg	LBB0_54
## %bb.2:
	movq	%r15, %r13
	movl	%r14d, -128(%rbp)               ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movl	%eax, %r15d
	testl	$276, %ebx                      ## imm = 0x114
	je	LBB0_46
## %bb.3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	andl	$125829120, %eax                ## imm = 0x7800000
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_46
## %bb.4:
	testl	$131072, %eax                   ## imm = 0x20000
	movq	%r13, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:
	movl	%r15d, %r13d
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %ecx
	shrq	%cl, %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_51
## %bb.6:
	movl	$1, %r15d
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movq	16(%rbx), %rdi
	callq	_av_freep
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, %ebx
	movq	16(%rax), %r13
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_unpack_codebook
	movl	%eax, (%r13)
	movl	%ebx, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_54
LBB0_7:
	testl	$262144, %eax                   ## imm = 0x40000
	movl	%r15d, -124(%rbp)               ## 4-byte Spill
	je	LBB0_10
## %bb.8:
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	(%rbx), %r15
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, %ecx
	shrq	%cl, %rax
	cmpq	%rax, %r15
	jge	LBB0_51
## %bb.9:
	movl	%r14d, %ecx
	shlq	%cl, %r15
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_av_freep
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	leaq	-44(%rbp), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_unpack_codebook
	movl	%eax, 4(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	movq	16(%rax), %rax
	cmpl	$0, 4(%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_54
LBB0_10:
	testl	$524288, %eax                   ## imm = 0x80000
	jne	LBB0_48
LBB0_11:
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:
	movq	%rbx, %r13
	cmpq	$0, (%rbx)
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	jle	LBB0_55
## %bb.13:
	sarl	$3, %r8d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	8(%r13), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movq	8(%rax), %rax
	movq	(%rax), %rdx
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	subl	%r8d, %ecx
	shll	$3, %ecx
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movl	%esi, %ecx
	subl	%r8d, %ecx
	shll	$3, %ecx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movl	$-1, %ebx
	leaq	-44(%rbp), %r14
	movq	_mask_matrix@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -96(%rbp)                   ## 4-byte Folded Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%edi, -88(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, %r14
	movq	%rdx, %r15
	movq	%r13, %rbx
	movl	%r8d, %r13d
	callq	_copy_superblock
	movl	%r13d, %r8d
	movq	%rbx, %r13
	movq	%r15, %rdx
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	leaq	32(%rdx), %rax
	testq	%rdx, %rdx
	cmoveq	%rdx, %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rcx
	cmoveq	%rdx, %rcx
	cmpl	%r8d, %esi
	cmovneq	%rax, %rcx
	movl	$0, %eax
	cmovel	-132(%rbp), %eax                ## 4-byte Folded Reload
	leaq	32(%r14,%rax,4), %r14
	movl	$0, %eax
	cmovel	%eax, %esi
	movl	%esi, -96(%rbp)                 ## 4-byte Spill
	decl	%ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rcx, %rdx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, (%r13)
	movq	%r14, %rax
	leaq	-44(%rbp), %r14
	jle	LBB0_55
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	cmpl	$-1, %ebx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%r13, %r15
	movl	%r8d, %r13d
	callq	_decode_skip_count
	movl	%r13d, %r8d
	movq	%r15, %r13
	movq	%rbx, %rdx
	movl	%eax, %ebx
	movq	-120(%rbp), %rax                ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	testl	%ebx, %ebx
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	jne	LBB0_15
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rdi
	movl	$8, %esi
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	callq	_copy_superblock
	movq	%r14, %rdi
	callq	_get_bits_left
	xorl	%r13d, %r13d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	orl	%ebx, %r13d
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_get_bits_left
LBB0_22:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_26 Depth 3
	testl	%eax, %eax
	jle	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_decode_macroblock
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=3
	incq	%r14
	cmpq	$16, %r14
	je	LBB0_21
LBB0_26:                                ##   Parent Loop BB0_17 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r12), %rax
	testl	%ebx, (%rax,%r14,4)
	je	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=3
	leaq	-112(%rbp), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_insert_mb_into_sb
	jmp	LBB0_25
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	je	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	$65536, -48(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x10000
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-112(%rbp), %rdx
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	$8, %ecx
	callq	_copy_superblock
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%r14, %rdi
	callq	_get_bits1
	testl	%eax, %eax
	jne	LBB0_30
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_decode_macroblock
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	leaq	-112(%rbp), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_insert_mb_into_sb
	jmp	LBB0_31
LBB0_34:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	$15, %r15d
	testb	$1, %al
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%eax, %ebx
	callq	_get_bits
	movl	%eax, %r15d
	movl	%ebx, %eax
LBB0_36:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r13d, %r15d
	movl	$240, %ebx
	testb	$2, %al
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%eax, %r13d
	callq	_get_bits
	movl	%eax, %ebx
	movl	%r13d, %eax
	shll	$4, %ebx
LBB0_38:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %ebx
	movl	$3840, %ecx                     ## imm = 0xF00
	testb	$4, %al
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%eax, %r15d
	callq	_get_bits
	movl	%eax, %ecx
	movl	%r15d, %eax
	shll	$8, %ecx
LBB0_40:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ebx, %ecx
	movl	$61440, %r15d                   ## imm = 0xF000
	testb	$8, %al
	jne	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%ecx, %ebx
	callq	_get_bits
	movl	%ebx, %ecx
	movl	%eax, %r15d
	shll	$12, %r15d
LBB0_42:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ecx, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=2
	incq	%rbx
	cmpq	$16, %rbx
	je	LBB0_30
LBB0_44:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	testl	%r15d, (%rax,%rbx,4)
	je	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_decode_macroblock
	leaq	-112(%rbp), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_insert_mb_into_sb
	jmp	LBB0_43
LBB0_46:
	movq	8(%r13), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_53
## %bb.47:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	8(%r13), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	cmovsl	%eax, %r15d
	movl	%r15d, %r12d
	jmp	LBB0_54
LBB0_48:
	leaq	-44(%rbp), %rdi
	movl	$20, %esi
	callq	_get_bits_long
	testl	%eax, %eax
	je	LBB0_58
## %bb.49:
	movl	%eax, %r14d
	leal	-1(%r14), %edi
	callq	_av_log2
	movl	%eax, %r15d
	incl	%r15d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r15d, %ecx
	shrq	%cl, %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_51
## %bb.50:
	movq	16(%rbx), %rdi
	addq	$8, %rdi
	callq	_av_freep
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	leaq	-44(%rbp), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_unpack_codebook
	movl	%eax, 8(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	movq	16(%rax), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_11
	jmp	LBB0_54
LBB0_51:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_52:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
LBB0_53:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_54
LBB0_55:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %r9d
	testl	%eax, %eax
	cmovnsl	%eax, %r9d
	sarl	$3, %r9d
	leaq	L_.str.3(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	-124(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-128(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	8(%r13), %rdi
	callq	_av_frame_unref
	movq	8(%r13), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_14
## %bb.56:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movl	%ebx, %r12d
	jmp	LBB0_54
LBB0_14:
	movl	%eax, %r12d
LBB0_54:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_52
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping frame\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid codebook size 0.\n"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Depth or num_superblocks are too large\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_mask_matrix,8,3                ## @mask_matrix
L_.str.3:                               ## @.str.3
	.asciz	"Escape sizes: %i, %i, %i\n"

	.no_dead_strip	_escape124_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function escape124_decode_frame
_escape124_decode_frame:                ; @escape124_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	ldr	x21, [x0, #8]
	mov	w8, #1
	stur	w8, [x29, #-88]
	ldr	w8, [x0]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w22, w9, w8, lt
	ldp	w28, w1, [x3]
	sub	x0, x29, #84
	mov	x2, x28
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_56
; %bb.1:
	sub	x0, x29, #84
	bl	_get_bits_left
	ldr	x8, [x21]
	mov	w9, #23
	mul	x8, x8, x9
	mov	x9, #52915
	movk	x9, #1941, lsl #16
	movk	x9, #60196, lsl #32
	movk	x9, #31068, lsl #48
	smulh	x8, x8, x9
	asr	x9, x8, #11
	add	x8, x9, x8, lsr #63
	add	x8, x8, #64
	cmp	x8, w0, sxtw
	b.le	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_56
LBB0_3:
	sub	x0, x29, #84
	mov	w1, #32
	bl	_get_bits_long
	mov	x19, x0
	sub	x0, x29, #84
	mov	w1, #32
	bl	_get_bits_long
	mov	x27, x0
	mov	w8, #276
	tst	w19, w8
	b.eq	LBB0_48
; %bb.4:
	and	w8, w19, #0x7800000
	cbz	w8, LBB0_48
; %bb.5:
	str	w19, [sp, #84]                  ; 4-byte Folded Spill
	tbz	w19, #17, LBB0_8
; %bb.6:
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	mov	x19, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	x9, x9, x19
	cmp	x8, x9
	b.ge	LBB0_53
; %bb.7:
	mov	w8, #1
	lsl	w20, w8, w19
	ldr	x0, [x21, #16]
	bl	_av_freep
	ldr	x23, [x21, #16]
	sub	x0, x29, #84
	mov	x1, x19
	mov	x2, x20
	bl	_unpack_codebook
	str	w0, [x23]
	ldr	w19, [sp, #84]                  ; 4-byte Folded Reload
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
LBB0_8:
	tbz	w19, #18, LBB0_11
; %bb.9:
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	x9, x9, x0
	cmp	x8, x9
	b.ge	LBB0_53
; %bb.10:
	mov	x19, x0
	lsl	x20, x8, x19
	ldr	x8, [x21, #16]
	add	x0, x8, #4
	bl	_av_freep
	ldr	x23, [x21, #16]
	sub	x0, x29, #84
	mov	x1, x19
	mov	x2, x20
	bl	_unpack_codebook
	str	w0, [x23, #4]
	ldr	w19, [sp, #84]                  ; 4-byte Folded Reload
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_2
LBB0_11:
	tbnz	w19, #19, LBB0_50
LBB0_12:
Lloh6:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x26
	mov	x1, x25
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_56
; %bb.13:
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	ldp	x11, x8, [x21]
	ldr	x10, [x8]
	ldr	w10, [x10]
	cmp	w10, #0
	cinc	w10, w10, lt
	cmp	x11, #1
	b.lt	LBB0_57
; %bb.14:
	mov	w26, #0
	mov	w24, #0
	asr	w19, w22, #3
	asr	w20, w9, #1
	asr	w23, w10, #1
	ldr	x8, [x8, #8]
	ldr	x27, [x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x25, [x8]
	sub	w8, w20, w19
	lsl	w8, w8, #3
	stur	w8, [x29, #-100]                ; 4-byte Folded Spill
	sub	w8, w23, w19
	lsl	w8, w8, #3
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	mov	w28, #-1
Lloh9:
	adrp	x22, _mask_matrix@GOTPAGE
Lloh10:
	ldr	x22, [x22, _mask_matrix@GOTPAGEOFF]
	stp	w20, w19, [sp, #76]             ; 8-byte Folded Spill
	str	w23, [sp, #72]                  ; 4-byte Folded Spill
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	bl	_decode_skip_count
	mov	x28, x0
	cbz	w28, LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x25
	mov	x1, x20
	mov	x2, x27
	mov	x3, x23
	bl	_copy_superblock
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w8, w24, #1
	add	x9, x27, #32
	cmp	x27, #0
	csel	x9, xzr, x9, eq
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	add	x10, x9, x10, lsl #2
	csel	x10, xzr, x10, eq
	cmp	w8, w19
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	csel	w8, w8, wzr, eq
	add	x8, x25, w8, uxtw #2
	csel	x27, x10, x9, eq
	add	x25, x8, #32
	csinc	w24, wzr, w24, eq
	sub	w28, w28, #1
	add	w26, w26, #1
	ldr	x8, [x21]
	cmp	x8, x26
	b.le	LBB0_57
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
                                        ;       Child Loop BB0_26 Depth 3
                                        ;     Child Loop BB0_32 Depth 2
                                        ;     Child Loop BB0_46 Depth 2
	cmn	w28, #1
	b.eq	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cbnz	w28, LBB0_16
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	str	x25, [sp, #88]                  ; 8-byte Folded Spill
	ldur	x0, [x29, #-96]
	mov	w1, #8
	mov	x2, x27
	mov	x3, x23
	bl	_copy_superblock
	sub	x0, x29, #84
	bl	_get_bits_left
	cmp	w0, #1
	b.lt	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w23, #0
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	orr	w23, w20, w23
	sub	x0, x29, #84
	bl	_get_bits_left
	cmp	w0, #1
	b.lt	LBB0_29
LBB0_23:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_26 Depth 3
	sub	x0, x29, #84
	bl	_get_bits1
	cbnz	w0, LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	sub	x1, x29, #84
	sub	x2, x29, #88
	mov	x0, x21
	mov	x3, x26
	bl	_decode_macroblock
	mov	x19, x0
	sub	x0, x29, #84
	mov	w1, #16
	bl	_get_bits
	mov	x20, x0
	mov	x25, #0
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=3
	add	x25, x25, #1
	cmp	x25, #16
	b.eq	LBB0_22
LBB0_26:                                ;   Parent Loop BB0_18 Depth=1
                                        ;     Parent Loop BB0_23 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x22]
	ldr	w8, [x8, x25, lsl #2]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=3
	sub	x0, x29, #96
	mov	x1, x19
	mov	x2, x25
	bl	_insert_mb_into_sb
	b	LBB0_25
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w23, #0
LBB0_29:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	bl	_get_bits1
	cbz	w0, LBB0_35
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	ldr	w23, [sp, #72]                  ; 4-byte Folded Reload
	tbz	w8, #16, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	bl	_get_bits_left
	cmp	w0, #1
	b.lt	LBB0_34
LBB0_32:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x0, x29, #84
	bl	_get_bits1
	cbnz	w0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=2
	sub	x1, x29, #84
	sub	x2, x29, #88
	mov	x0, x21
	mov	x3, x26
	bl	_decode_macroblock
	mov	x19, x0
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	mov	x2, x0
	sub	x0, x29, #96
	mov	x1, x19
	bl	_insert_mb_into_sb
	sub	x0, x29, #84
	bl	_get_bits_left
	cmp	w0, #0
	b.gt	LBB0_32
LBB0_34:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	x2, [x29, #-96]
	ldr	x25, [sp, #88]                  ; 8-byte Folded Reload
	mov	x0, x25
	ldr	w20, [sp, #76]                  ; 4-byte Folded Reload
	mov	x1, x20
	mov	w3, #8
	bl	_copy_superblock
	ldr	w19, [sp, #80]                  ; 4-byte Folded Reload
	b	LBB0_17
LBB0_35:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	mov	x19, x0
	tbnz	w0, #0, LBB0_40
; %bb.36:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	tbz	w19, #1, LBB0_41
LBB0_37:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w20, #240
	tbz	w19, #2, LBB0_42
LBB0_38:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w25, #3840
	tbz	w19, #3, LBB0_43
LBB0_39:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w8, #61440
	b	LBB0_44
LBB0_40:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #15
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	tbnz	w19, #1, LBB0_37
LBB0_41:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	lsl	w20, w0, #4
	tbnz	w19, #2, LBB0_38
LBB0_42:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	lsl	w25, w0, #8
	tbnz	w19, #3, LBB0_39
LBB0_43:                                ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x29, #84
	mov	w1, #4
	bl	_get_bits
	lsl	w8, w0, #12
LBB0_44:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	mov	x19, #0
	eor	w9, w9, w23
	eor	w9, w20, w9
	eor	w9, w25, w9
	eor	w20, w8, w9
	ldr	w23, [sp, #72]                  ; 4-byte Folded Reload
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_46 Depth=2
	add	x19, x19, #1
	cmp	x19, #16
	b.eq	LBB0_34
LBB0_46:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	w8, [x8, x19, lsl #2]
	tst	w8, w20
	b.eq	LBB0_45
; %bb.47:                               ;   in Loop: Header=BB0_46 Depth=2
	sub	x1, x29, #84
	sub	x2, x29, #88
	mov	x0, x21
	mov	x3, x26
	bl	_decode_macroblock
	mov	x1, x0
	sub	x0, x29, #96
	mov	x2, x19
	bl	_insert_mb_into_sb
	b	LBB0_45
LBB0_48:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_55
; %bb.49:
Lloh11:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x26
	bl	_av_log
	mov	w8, #1
	str	w8, [x24]
	ldr	x1, [x21, #8]
	mov	x0, x25
	bl	_av_frame_ref
	cmp	w0, #0
	csel	w0, w0, w27, lt
	b	LBB0_56
LBB0_50:
	sub	x0, x29, #84
	mov	w1, #20
	bl	_get_bits_long
	cbz	w0, LBB0_59
; %bb.51:
	mov	x19, x0
	sub	w0, w0, #1
	bl	_av_log2
	add	w20, w0, #1
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsr	x9, x9, x20
	cmp	x8, x9
	b.ge	LBB0_53
; %bb.52:
	ldr	x8, [x21, #16]
	add	x0, x8, #8
	bl	_av_freep
	ldr	x23, [x21, #16]
	sub	x0, x29, #84
	mov	x1, x20
	mov	x2, x19
	bl	_unpack_codebook
	str	w0, [x23, #8]
	ldr	x8, [x21, #16]
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_12
	b	LBB0_2
LBB0_53:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_54:
	mov	x0, x26
	bl	_av_log
LBB0_55:
Lloh24:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
LBB0_56:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_57:
Lloh27:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	sub	x0, x29, #84
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	ldp	x9, x20, [sp, #32]              ; 16-byte Folded Reload
	stp	x20, x9, [sp]
	str	x8, [sp, #16]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	x1, x19
	bl	_av_log
	ldr	x0, [x21, #8]
	bl	_av_frame_unref
	ldr	x0, [x21, #8]
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_56
; %bb.58:
	mov	w8, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
	mov	x0, x20
	b	LBB0_56
LBB0_59:
Lloh32:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x2, l_.str.1@PAGE
Lloh36:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_54
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping frame\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid codebook size 0.\n"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Depth or num_superblocks are too large\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_mask_matrix,8,3                ; @mask_matrix
l_.str.3:                               ; @.str.3
	.asciz	"Escape sizes: %i, %i, %i\n"

	.no_dead_strip	_escape124_decode_frame
.subsections_via_symbols
