	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rax
	movq	%rdi, %rbx
	movl	(%rcx), %edx
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rdi
	cmpl	$33, %edx
	jl	LBB0_12
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r15
	leaq	32(%r15), %r14
	movl	4(%rcx), %esi
	movq	%r14, %rdi
	movq	%rcx, %r12
	callq	_bytestream2_init
	leaq	24(%r15), %r13
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_bytestream2_init_writer
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %edi
	addl	$28, %edi
	callq	_AV_RL32
	sarl	%eax
	movl	28(%r15), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_decompress
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left_p
	movl	(%r15), %r14d
	movl	8(%rbx), %ecx
	imull	%r14d, %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	cmpl	%ecx, %eax
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rdi
	jg	LBB0_12
## %bb.3:
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left_p
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setge	%dil
	callq	_av_assert0
	movq	8(%r15), %r14
	movq	%r13, %rdi
	callq	_bytestream2_tell_p
	cltq
	leaq	(%r14,%rax,4), %r14
	movq	%r13, %rdi
	callq	_bytestream2_get_bytes_left_p
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	8(%r15), %rdi
	movq	16(%r15), %rdx
	movl	4(%r15), %ecx
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_vertical_predict
	movq	8(%r15), %rdi
	movl	4(%r15), %ecx
	movl	(%rbx), %r8d
	decl	%r8d
	movl	%ecx, %esi
	movq	%rdi, %rdx
	callq	_vertical_predict
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r14
	movq	16(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r9
	movq	16(%rcx), %r10
	movq	8(%r15), %r11
	movl	4(%rbx), %edx
	leal	-1(%rax), %r13d
	movl	%eax, %r12d
	testl	%edx, %edx
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_9:
	subl	%r12d, %eax
	movslq	4(%r15), %rcx
	cltq
	imulq	%rcx, %rax
	leaq	(%r11,%rax,4), %rsi
	movl	8(%r14), %eax
	imull	%r13d, %eax
	cltq
	leaq	(%r10,%rax,4), %rdi
	movl	4(%r14), %eax
	imull	%r13d, %eax
	cltq
	leaq	(%r9,%rax,4), %rax
	movl	(%r14), %ecx
	imull	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edx
	movl	%edx, (%rax,%r8)
	movl	4(%rsi), %edx
	movl	%edx, (%rcx,%r8,4)
	movl	8(%rsi), %edx
	movl	%edx, (%rdi,%r8)
	movl	12(%rsi), %edx
	movl	%edx, 4(%rcx,%r8,4)
	movl	16(%rsi), %edx
	movl	%edx, 4(%rax,%r8)
	movl	20(%rsi), %edx
	movl	%edx, 8(%rcx,%r8,4)
	movl	24(%rsi), %edx
	movl	%edx, 4(%rdi,%r8)
	movl	28(%rsi), %edx
	movl	%edx, 12(%rcx,%r8,4)
	movl	32(%rsi), %edx
	movl	%edx, 16(%rcx,%r8,4)
	movl	36(%rsi), %edx
	movl	%edx, 20(%rcx,%r8,4)
	movl	40(%rsi), %edx
	movl	%edx, 24(%rcx,%r8,4)
	movl	44(%rsi), %edx
	movl	%edx, 28(%rcx,%r8,4)
	movl	4(%rbx), %edx
	addq	$8, %r8
	addq	$48, %rsi
	cmpl	%edx, %r8d
	jl	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %r12d
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	decl	%r12d
	movl	(%rbx), %eax
	decl	%r13d
	testl	%edx, %edx
	jg	LBB0_9
	jmp	LBB0_6
LBB0_11:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	movl	$1, 8(%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	movl	(%rdi), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.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:
	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	x20, x2
	ldr	w2, [x3]
	cmp	w2, #33
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x0, #16]
	add	x24, x25, #32
	ldr	w1, [x3, #4]
	mov	x0, x24
	bl	_bytestream2_init
	add	x23, x25, #24
	ldr	x1, [x25, #8]
	ldr	w2, [x25]
	mov	x0, x23
	bl	_bytestream2_init_writer
	ldr	w8, [x19, #4]
	add	w0, w8, #28
	bl	_AV_RL32
	asr	w1, w0, #1
	ldr	w3, [x25, #28]
	mov	x0, x24
	mov	x2, x23
	bl	_decompress
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x23
	bl	_bytestream2_get_bytes_left_p
	ldr	w24, [x25]
	ldr	w8, [x22, #8]
	mul	w8, w24, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	cmp	w0, w8
	b.le	LBB0_6
LBB0_3:
Lloh0:
	adrp	x19, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x19]
LBB0_5:
	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_6:
	mov	x0, x23
	bl	_bytestream2_get_bytes_left_p
	cmp	w24, w0
	cset	w0, ge
	bl	_av_assert0
	ldr	x24, [x25, #8]
	mov	x0, x23
	bl	_bytestream2_tell_p
	add	x24, x24, w0, sxtw #2
	mov	x0, x23
	bl	_bytestream2_get_bytes_left_p
	mov	x2, x0
	mov	x0, x24
	mov	w1, #0
	bl	_memset
	ldp	x0, x2, [x25, #8]
	ldr	w3, [x25, #4]
	mov	w1, #0
	mov	w4, #1
	bl	_vertical_predict
	ldr	x0, [x25, #8]
	ldr	w1, [x25, #4]
	ldr	w8, [x22]
	sub	w4, w8, #1
	mov	x2, x0
	mov	x3, x1
	bl	_vertical_predict
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_5
; %bb.7:
	ldr	w16, [x22]
	subs	w8, w16, #1
	b.lt	LBB0_13
; %bb.8:
	ldr	x12, [x21, #16]
	ldr	x9, [x21]
	ldp	x10, x11, [x12]
	ldr	x12, [x12, #16]
	ldr	x13, [x25, #8]
	ldr	w0, [x22, #4]
	mov	x14, x16
	cmp	w0, #1
	b.ge	LBB0_10
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	sub	w14, w14, #1
	ldr	w16, [x22]
	sub	w8, w8, #1
	cmp	w0, #1
	b.lt	LBB0_12
LBB0_10:
	mov	x15, #0
	sub	w16, w16, w14
	ldr	w17, [x25, #4]
	mul	w16, w16, w17
	add	x16, x13, w16, sxtw #2
	ldp	w0, w17, [x9, #4]
	ldr	w2, [x9]
	mul	w17, w17, w8
	add	x17, x12, w17, sxtw #2
	mul	w0, w0, w8
	add	x1, x11, w0, sxtw #2
	mul	w0, w2, w8
	add	x2, x10, w0, sxtw #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x17, x15
	add	x3, x1, x15
	add	x4, x2, x15, lsl #2
	ldr	w5, [x16]
	str	w5, [x3]
	ldr	w5, [x16, #4]
	str	w5, [x4]
	ldr	w5, [x16, #8]
	str	w5, [x0]
	ldr	w5, [x16, #12]
	str	w5, [x4, #4]
	ldr	w5, [x16, #16]
	str	w5, [x3, #4]
	ldr	w3, [x16, #20]
	str	w3, [x4, #8]
	ldr	w3, [x16, #24]
	str	w3, [x0, #4]
	ldr	w0, [x16, #28]
	str	w0, [x4, #12]
	ldr	w0, [x16, #32]
	str	w0, [x4, #16]
	ldr	w0, [x16, #36]
	str	w0, [x4, #20]
	ldr	w0, [x16, #40]
	str	w0, [x4, #24]
	ldr	w0, [x16, #44]
	str	w0, [x4, #28]
	ldr	w0, [x22, #4]
	add	x15, x15, #8
	add	x16, x16, #48
	cmp	w15, w0
	b.lt	LBB0_11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	w14, #1
	b.gt	LBB0_9
LBB0_13:
Lloh2:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x21, #8]
	str	w9, [x20]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.no_dead_strip	_decode_frame
.subsections_via_symbols
