	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	movl	(%r13), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	leaq	16(%r13), %rdi
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	callq	_inflateReset
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.1:
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_init
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %r15d
	xorl	%edx, %edx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_FF_REGET_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	8(%r13), %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_55
## %bb.4:
	cmpl	$6, %r15d
	jl	LBB0_8
## %bb.5:
	leaq	-68(%rbp), %rdi
	cmpl	$8192, %r15d                    ## imm = 0x2000
	jb	LBB0_22
## %bb.6:
	callq	_bytestream2_get_le24
	jmp	LBB0_45
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.9:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-68(%rbp), %rdi
	movl	$2, %esi
	callq	_bytestream2_seek
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.10:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r15, %rax
	leaq	-68(%rbp), %r15
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_bytestream2_get_le16
	imull	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	%eax, %ebx
	addl	%r12d, %ebx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_40
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	decl	%r14d
	jne	LBB0_11
## %bb.13:
	movl	$3, %esi
	cmpl	$65534, %ebx                    ## imm = 0xFFFE
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	jg	LBB0_16
## %bb.14:
	movl	$2, %esi
	cmpl	$254, %ebx
	jg	LBB0_16
LBB0_15:
	movl	$1, %esi
LBB0_16:
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_tell
	cltq
	leaq	(,%rax,4), %rcx
	addq	8(%r14), %rcx
	movq	%rcx, 32(%r13)
	movl	(%r14), %ecx
	subl	%eax, %ecx
	movl	%ecx, 16(%r13)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bytestream2_seek
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	leaq	-68(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	movslq	%r15d, %rcx
	shlq	$3, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_40
## %bb.18:
	cmpl	$0, 12(%rbx)
	jne	LBB0_20
## %bb.19:
	movq	8(%r13), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movq	$0, -60(%rbp)
	movl	$0, -52(%rbp)
	movq	16(%rax), %rdi
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	leaq	-64(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_av_image_fill_black
LBB0_20:
	testl	%r15d, %r15d
	jle	LBB0_57
## %bb.21:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	leaq	-68(%rbp), %rbx
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_25
LBB0_22:
	cmpl	$32, %r15d
	jb	LBB0_44
## %bb.23:
	callq	_bytestream2_get_le16
	jmp	LBB0_45
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	-148(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	movq	-112(%rbp), %r15                ## 8-byte Reload
	cmpl	%r15d, %eax
	leaq	-68(%rbp), %rbx
	je	LBB0_62
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movq	%r15, %r14
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %r12d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpl	$1, %r14d
	jne	LBB0_42
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	testl	%esi, %esi
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_43
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	%eax, %r15d
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %r12d
	movl	$1, %eax
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%eax, %ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=1
	leal	(%r15,%rsi), %ecx
	cmpl	%eax, %ecx
	jg	LBB0_40
## %bb.31:                              ##   in Loop: Header=BB0_25 Depth=1
	leal	(%r12,%rbx), %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %ecx
	cmpl	%ecx, %edx
	jg	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	%eax, %r15d
	jg	LBB0_40
## %bb.33:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	%ecx, %r12d
	jg	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_25 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.35:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rdx
	movq	16(%rax), %rax
	movslq	(%rdx), %rdx
	notl	%ebx
	addl	%ebx, %ecx
	movslq	%ecx, %rcx
	imulq	%rdx, %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %esi
	movslq	%esi, %rax
	leaq	(%rcx,%rax,4), %rbx
	imull	%edx, %r15d
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_37 Depth=2
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %rbx
	decl	%r12d
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_24
LBB0_37:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, 24(%r13)
	movl	%r15d, 20(%r13)
	movq	_Z_SYNC_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_inflate
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_36
	jmp	LBB0_39
LBB0_42:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
LBB0_43:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_30
LBB0_44:
	callq	_bytestream2_get_byte
LBB0_45:
	movl	%eax, %ebx
	leaq	-68(%rbp), %rdi
	callq	_bytestream2_tell
	movl	(%r14), %ecx
	subl	%eax, %ecx
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rdx
	cmpl	%ecx, %ebx
	jg	LBB0_54
## %bb.46:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	cltq
	shlq	$2, %rax
	addq	8(%r14), %rax
	movq	%rax, 32(%r13)
	movl	%ebx, 16(%r13)
	movq	40(%r13), %rax
	movq	%rax, 24(%r13)
	movl	$8, 20(%r13)
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_inflate
	movq	_Z_STREAM_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_52
## %bb.47:
	movq	%r15, %rdi
	callq	_inflateReset
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_61
## %bb.48:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %r14                ## 8-byte Reload
	leal	(,%r14,8), %r15d
	leaq	-68(%rbp), %rdi
	movl	%ebx, %esi
	callq	_bytestream2_skip
	movq	40(%r13), %rsi
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	%r15d, -120(%rbp)               ## 4-byte Spill
	movl	%r15d, %edx
	callq	_bytestream2_init
	xorl	%ebx, %ebx
                                        ## kill: def $r14d killed $r14d killed $r14
	.p2align	4, 0x90
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r12, %rdi
	callq	_bytestream2_get_le16
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_bytestream2_get_le16
	imull	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	%eax, %ebx
	addl	%r15d, %ebx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	decl	%r14d
	jne	LBB0_49
## %bb.51:
	xorl	%eax, %eax
	cmpl	$255, %ebx
	setge	%al
	incl	%eax
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	movl	$3, %esi
	cmovll	%eax, %esi
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_tell
	cltq
	leaq	(,%rax,4), %rcx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	addq	8(%r14), %rcx
	movq	%rcx, 32(%r13)
	movl	(%r14), %ecx
	subl	%eax, %ecx
	movl	%ecx, 16(%r13)
	movq	40(%r13), %rsi
	movq	%rbx, %rdi
	movl	-120(%rbp), %edx                ## 4-byte Reload
	callq	_bytestream2_init
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_17
LBB0_52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_av_log
LBB0_53:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rdx
	jmp	LBB0_54
LBB0_39:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_av_log
LBB0_40:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_41:
	movl	(%rax), %eax
LBB0_55:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_65
## %bb.56:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_57:
	movq	8(%r13), %rsi
	movl	$0, 8(%rsi)
	movq	-144(%rbp), %rbx                ## 8-byte Reload
LBB0_58:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
LBB0_59:
	movl	(%rax), %eax
	movl	%eax, 12(%rsi)
	movq	%r12, %rdi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_55
## %bb.60:
	movl	$1, (%rbx)
	movl	(%r14), %eax
	jmp	LBB0_55
LBB0_61:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rdx
LBB0_54:
	movl	(%rdx), %eax
	jmp	LBB0_55
LBB0_62:
	movq	8(%r13), %rsi
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rsi)
	testl	%eax, %eax
	je	LBB0_64
## %bb.63:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_64:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_58
LBB0_65:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_FF_REGET_BUFFER_FLAG_READONLY,4,2 ## @FF_REGET_BUFFER_FLAG_READONLY
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ## @Z_STREAM_END
L_.str.1:                               ## @.str.1
	.asciz	"Inflate failed with return code: %d.\n"

	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_Z_SYNC_FLUSH,4,2               ## @Z_SYNC_FLUSH
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x3
	mov	x25, x2
	mov	x27, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x23, [x0, #16]
	mov	x20, x23
	ldr	w21, [x20], #16
	mov	x0, x20
	bl	_inflateReset
Lloh3:
	adrp	x8, _Z_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	ldr	x1, [x24, #8]
	ldr	w2, [x24]
	add	x0, sp, #36
	bl	_bytestream2_init
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mov	x19, x0
Lloh6:
	adrp	x8, _FF_REGET_BUFFER_FLAG_READONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FF_REGET_BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w2, w8, wzr, eq
	ldr	x1, [x23, #8]
	mov	x0, x22
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_52
; %bb.2:
	cmp	w19, #6
	b.lt	LBB0_6
; %bb.3:
	add	x0, sp, #36
	cmp	w19, #2, lsl #12                ; =8192
	b.lo	LBB0_13
; %bb.4:
	bl	_bytestream2_get_le24
	b	LBB0_16
LBB0_5:
	mov	x3, x0
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh14:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
	b	LBB0_51
LBB0_6:
	cbz	w19, LBB0_30
; %bb.7:
Lloh16:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh17:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x0, sp, #36
	mov	w1, #2
	bl	_bytestream2_seek
	cmp	w19, #1
	b.lt	LBB0_28
; %bb.8:
	stp	x27, x25, [sp, #16]             ; 16-byte Folded Spill
	mov	x26, x24
	mov	w27, #0
Lloh18:
	adrp	x28, _INT_MAX@GOTPAGE
Lloh19:
	ldr	x28, [x28, _INT_MAX@GOTPAGEOFF]
	mov	x24, x19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #36
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mov	x25, x0
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mul	w8, w25, w21
	madd	w27, w8, w0, w27
	ldr	w8, [x28]
	cmp	w27, w8
	b.gt	LBB0_50
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_9
; %bb.11:
	mov	w8, #65534
	cmp	w27, w8
	b.le	LBB0_26
; %bb.12:
	mov	w1, #3
	mov	x24, x26
	ldp	x27, x25, [sp, #16]             ; 16-byte Folded Reload
Lloh20:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh21:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
	b	LBB0_29
LBB0_13:
	cmp	w19, #32
	b.lo	LBB0_15
; %bb.14:
	bl	_bytestream2_get_le16
	b	LBB0_16
LBB0_15:
	bl	_bytestream2_get_byte
LBB0_16:
	mov	x26, x0
	add	x0, sp, #36
	bl	_bytestream2_tell
	ldr	w8, [x24]
	sub	w8, w8, w0
	cmp	w26, w8
	b.gt	LBB0_24
; %bb.17:
	ldr	x8, [x24, #8]
	add	x8, x8, w0, sxtw #2
	ldr	x9, [x23, #40]
	stp	x9, x8, [x23, #24]
	mov	w8, #8
	stp	w26, w8, [x23, #16]
Lloh22:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_inflate
Lloh25:
	adrp	x8, _Z_STREAM_END@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Z_STREAM_END@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.18:
	mov	x0, x20
	bl	_inflateReset
Lloh28:
	adrp	x8, _Z_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_25
; %bb.19:
	stp	x27, x25, [sp, #16]             ; 16-byte Folded Spill
	str	x24, [sp]                       ; 8-byte Folded Spill
	lsl	w24, w19, #3
	add	x0, sp, #36
	mov	x1, x26
	bl	_bytestream2_skip
	ldr	x1, [x23, #40]
	add	x0, sp, #40
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	x2, x24
	bl	_bytestream2_init
	mov	w28, #0
Lloh31:
	adrp	x25, _INT_MAX@GOTPAGE
Lloh32:
	ldr	x25, [x25, _INT_MAX@GOTPAGEOFF]
Lloh33:
	adrp	x27, _AVERROR_INVALIDDATA@GOTPAGE
Lloh34:
	ldr	x27, [x27, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	mov	x24, x19
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #40
	bl	_bytestream2_get_le16
	mov	x26, x0
	add	x0, sp, #40
	bl	_bytestream2_get_le16
	mul	w8, w26, w21
	madd	w28, w8, w0, w28
	ldr	w8, [x25]
	cmp	w28, w8
	b.gt	LBB0_58
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_20
; %bb.22:
	cmp	w28, #254
	mov	w8, #1
	cinc	w8, w8, gt
	mov	w9, #65534
	mov	w10, #3
	cmp	w28, w9
	csel	w1, w10, w8, gt
	add	x0, sp, #36
	bl	_bytestream2_skip
	add	x0, sp, #36
	bl	_bytestream2_tell
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	ldr	x8, [x24, #8]
	add	x8, x8, w0, sxtw #2
	str	x8, [x23, #32]
	ldr	w8, [x24]
	sub	w8, w8, w0
	str	w8, [x23, #16]
	ldr	x1, [x23, #40]
	add	x0, sp, #36
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_bytestream2_init
	ldp	x27, x25, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_30
LBB0_23:
	mov	x3, x0
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.1@PAGE
Lloh39:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_av_log
LBB0_24:
Lloh40:
	adrp	x27, _AVERROR_INVALIDDATA@GOTPAGE
Lloh41:
	ldr	x27, [x27, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x27]
	b	LBB0_52
LBB0_25:
	mov	x3, x0
Lloh43:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str@PAGE
Lloh47:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_av_log
Lloh48:
	adrp	x27, _AVERROR_EXTERNAL@GOTPAGE
Lloh49:
	ldr	x27, [x27, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x27]
	b	LBB0_52
LBB0_26:
	cmp	w27, #254
	mov	x24, x26
	ldp	x27, x25, [sp, #16]             ; 16-byte Folded Reload
Lloh51:
	adrp	x26, _SEEK_SET@GOTPAGE
Lloh52:
	ldr	x26, [x26, _SEEK_SET@GOTPAGEOFF]
	b.le	LBB0_28
; %bb.27:
	mov	w1, #2
	b	LBB0_29
LBB0_28:
	mov	w1, #1
LBB0_29:
	add	x0, sp, #36
	bl	_bytestream2_skip
	add	x0, sp, #36
	bl	_bytestream2_tell
	ldr	x8, [x24, #8]
	add	x8, x8, w0, sxtw #2
	str	x8, [x23, #32]
	ldr	w8, [x24]
	sub	w8, w8, w0
	str	w8, [x23, #16]
	ldr	w2, [x26]
	add	x0, sp, #36
	mov	w1, #2
	bl	_bytestream2_seek
LBB0_30:
	add	x0, sp, #36
	bl	_bytestream2_get_bytes_left
	cmp	x0, w19, sxtw #3
	b.lt	LBB0_50
; %bb.31:
	ldr	w8, [x22, #12]
	cbnz	w8, LBB0_33
; %bb.32:
	ldr	x8, [x23, #8]
	ldr	x9, [x8]
	ldr	w9, [x9]
	stp	w9, wzr, [sp, #40]
	str	xzr, [sp, #48]
	ldr	x0, [x8, #16]
	ldp	w5, w2, [x22, #4]
	ldr	w4, [x22]
	add	x1, sp, #40
	mov	w3, #0
	bl	_av_image_fill_black
LBB0_33:
	cmp	w19, #0
	b.le	LBB0_54
; %bb.34:
	stp	x27, x25, [sp, #16]             ; 16-byte Folded Spill
	str	x24, [sp]                       ; 8-byte Folded Spill
	mov	w24, #0
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_36 Depth=1
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	add	w24, w24, #1
	cmp	w24, w19
	b.eq	LBB0_59
LBB0_36:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_47 Depth 2
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mov	x26, x0
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mov	x28, x0
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mov	x27, x0
	add	x0, sp, #36
	bl	_bytestream2_get_le16
	mov	x25, x0
	ldr	w8, [x22]
	cmp	w19, #1
	b.ne	LBB0_41
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	cbnz	w26, LBB0_41
; %bb.38:                               ;   in Loop: Header=BB0_36 Depth=1
	cbnz	w28, LBB0_41
; %bb.39:                               ;   in Loop: Header=BB0_36 Depth=1
	cmp	w27, w8
	b.ne	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	w8, [x22, #4]
	cmp	w25, w8
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	csinc	w8, w8, wzr, ne
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x8, x27
LBB0_41:                                ;   in Loop: Header=BB0_36 Depth=1
	add	w9, w27, w26
	cmp	w9, w8
	b.gt	LBB0_50
; %bb.42:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	w9, [x22, #4]
	add	w10, w25, w28
	cmp	w10, w9
	b.gt	LBB0_50
; %bb.43:                               ;   in Loop: Header=BB0_36 Depth=1
	cmp	w27, w8
	b.gt	LBB0_50
; %bb.44:                               ;   in Loop: Header=BB0_36 Depth=1
	cmp	w25, w9
	b.gt	LBB0_50
; %bb.45:                               ;   in Loop: Header=BB0_36 Depth=1
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w25, #1
	b.lt	LBB0_35
; %bb.46:                               ;   in Loop: Header=BB0_36 Depth=1
	ldr	x8, [x23, #8]
	ldr	x10, [x8, #16]
	ldr	x10, [x10]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mvn	w11, w28
	add	w9, w9, w11
	mul	w8, w8, w9
	add	x8, x10, w8, sxtw #2
	mul	w9, w26, w21
	add	x26, x8, w9, sxtw #2
	mul	w24, w27, w21
LBB0_47:                                ;   Parent Loop BB0_36 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	x26, [x23, #24]
	str	w24, [x23, #20]
Lloh53:
	adrp	x8, _Z_SYNC_FLUSH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _Z_SYNC_FLUSH@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_inflate
Lloh56:
	adrp	x8, _Z_OK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _Z_STREAM_END@GOTPAGE
Lloh60:
	ldr	x9, [x9, _Z_STREAM_END@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_49
; %bb.48:                               ;   in Loop: Header=BB0_47 Depth=2
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	sub	x26, x26, x8, lsl #2
	subs	w25, w25, #1
	b.ne	LBB0_47
	b	LBB0_35
LBB0_49:
	mov	x3, x0
Lloh62:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
Lloh65:
	adrp	x2, l_.str.1@PAGE
Lloh66:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_av_log
LBB0_50:
Lloh67:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh68:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_51:
	ldr	w0, [x8]
LBB0_52:
	ldr	x8, [sp, #56]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_62
; %bb.53:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_54:
	ldr	x1, [x23, #8]
	str	wzr, [x1, #8]
LBB0_55:
Lloh72:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh73:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
LBB0_56:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	mov	x0, x27
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_52
; %bb.57:
	mov	w8, #1
	str	w8, [x25]
	ldr	w0, [x24]
	b	LBB0_52
LBB0_58:
	ldr	w0, [x27]
	b	LBB0_52
LBB0_59:
	ldr	x1, [x23, #8]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	str	w8, [x1, #8]
	cbz	w8, LBB0_61
; %bb.60:
Lloh74:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh75:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	ldp	x27, x25, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_56
LBB0_61:
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	ldp	x27, x25, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_55
LBB0_62:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inflate reset error: %d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_FF_REGET_BUFFER_FLAG_READONLY,4,2 ; @FF_REGET_BUFFER_FLAG_READONLY
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_STREAM_END,4,2               ; @Z_STREAM_END
l_.str.1:                               ; @.str.1
	.asciz	"Inflate failed with return code: %d.\n"

	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_Z_SYNC_FLUSH,4,2               ; @Z_SYNC_FLUSH
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.no_dead_strip	_decode_frame
.subsections_via_symbols
