	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_plane
_decode_plane:                          ## @decode_plane
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	setg	-41(%rbp)                       ## 1-byte Folded Spill
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.1:
	leaq	36(%rbx), %r15
	incq	%r13
	movabsq	$4294967296000000, %r14         ## imm = 0xF424000000000
	movq	_V@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %edi
	movl	$32, %esi
	callq	_sign_extend
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %edi
	movl	$32, %esi
	callq	_sign_extend
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-2(%r13), %esi
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdx,%rdi,8), %rdi
	movq	_H@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdi,%rdx,8), %rdx
	movq	%rax, (%rdx,%rsi,8)
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	(%r12), %rcx
	movq	(%rdi,%rcx,8), %rcx
	movq	%rax, (%rcx,%rsi,8)
	decq	%r13
	cmpq	$1, %r13
	jg	LBB0_2
LBB0_5:
	leaq	36(%rbx), %r15
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r13
	movq	%r15, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, %edi
	movl	$16, %esi
	callq	_sign_extend
	movq	%rax, (%r13)
	leaq	40(%rbx), %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_bytestream2_tell
	addq	%rax, %rbx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bytestream2_get_bytes_left
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	leaq	8(%r13), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %ecx
	decl	%ecx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_read_low_coeffs
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movslq	%r14d, %r8
	movq	%rbx, %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r8,8), %rbx
	movq	24(%rdx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax), %edx
	decl	%edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_read_low_coeffs
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	addq	$8, %rbx
	movq	24(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	decl	%ecx
	decl	%edx
	imull	%ecx, %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %r8d
	callq	_read_low_coeffs
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	%r12, %r13
	js	LBB0_17
## %bb.9:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_18
## %bb.10:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_read_highpass
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %esi
	movq	24(%rbx), %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_lowpass_prediction
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rsi
	movl	16(%rbx), %edx
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	shrl	%cl, %edx
	movl	20(%rbx), %eax
	shrl	%cl, %eax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	_H@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rcx,%rdi,8), %r9
	movq	_V@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rcx,%rdi,8), %rcx
	movq	%rcx, (%rsp)
	movq	%r13, %rdi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_reconstruction
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_12:
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_13:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_15:
	movq	%r12, %rdi
LBB0_16:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_20
LBB0_17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	jmp	LBB0_16
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_19:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$72, %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	_H,8,3                          ## @H
	.comm	_V,8,3                          ## @V
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error in lowpass coefficients for plane %d, top row\n"

L_.str.1:                               ## @.str.1
	.asciz	"error in lowpass coefficients for plane %d, left column\n"

L_.str.2:                               ## @.str.2
	.asciz	"error in lowpass coefficients for plane %d, rest\n"

L_.str.3:                               ## @.str.3
	.asciz	"no bytes left\n"

	.no_dead_strip	_decode_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_plane
_decode_plane:                          ; @decode_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x2, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x21, x1
	mov	x19, x0
	ldr	x28, [x0]
	ldr	x8, [x3]
	sxtw	x22, w21
	ldr	w8, [x8, w1, sxtw #2]
	cmp	w8, #0
	cinc	w9, w8, lt
	cmp	w1, #0
	cset	w8, gt
	stp	w8, w9, [sp, #8]                ; 8-byte Folded Spill
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #72842645340160
	movk	x25, #15, lsl #48
	add	x23, x28, #36
	add	x26, x8, #1
Lloh0:
	adrp	x27, _H@GOTPAGE
Lloh1:
	ldr	x27, [x27, _H@GOTPAGEOFF]
Lloh2:
	adrp	x20, _V@GOTPAGE
Lloh3:
	ldr	x20, [x20, _V@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_bytestream2_get_be32
	mov	w1, #32
	bl	_sign_extend
	mov	x24, x0
	mov	x0, x23
	bl	_bytestream2_get_be32
	mov	w1, #32
	bl	_sign_extend
	cbz	x24, LBB0_18
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x0, LBB0_18
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w26, #2
	udiv	x9, x25, x24
	ldr	x10, [x28, #8]
	ldr	x10, [x10, x22, lsl #3]
	ldr	x11, [x27]
	ldr	x11, [x10, x11, lsl #3]
	lsl	x8, x8, #3
	str	x9, [x11, x8]
	ldr	x9, [x20]
	ldr	x9, [x10, x9, lsl #3]
	udiv	x10, x25, x0
	str	x10, [x9, x8]
	sub	x26, x26, #1
	cmp	x26, #1
	b.gt	LBB0_2
LBB0_5:
	add	x24, x28, #36
	mov	x0, x24
	mov	w1, #4
	bl	_bytestream2_skip
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x23, [x8, x22, lsl #3]
	mov	x0, x24
	bl	_bytestream2_get_be16
	mov	w1, #16
	bl	_sign_extend
	str	x0, [x23]
	add	x25, x28, #40
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x20, [x8]
	mov	x0, x24
	bl	_bytestream2_tell
	add	x26, x0, x20
	mov	x0, x24
	bl	_bytestream2_get_bytes_left
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_12
; %bb.6:
	add	x1, x23, #8
	ldr	x8, [x28, #24]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w8, [x8]
	sub	w2, w8, #1
	mov	x0, x19
	mov	x3, x2
	mov	w4, #0
	bl	_read_low_coeffs
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	asr	w25, w8, #1
	add	x27, x23, w25, sxtw #3
	ldr	x8, [x28, #24]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w8, [x8, #4]
	sub	w2, w8, #1
	mov	x0, x19
	mov	x1, x27
	mov	w3, #1
	mov	x4, x25
	bl	_read_low_coeffs
	tbnz	w0, #31, LBB0_14
; %bb.8:
	ldr	x8, [x28, #24]
	ldr	x8, [x8, x22, lsl #3]
	add	x1, x27, #8
	ldp	w9, w8, [x8]
	sub	w3, w9, #1
	sub	w8, w8, #1
	mul	w2, w8, w3
	mov	x0, x19
	mov	x4, x25
	bl	_read_low_coeffs
	mov	x26, x0
	tbnz	w0, #31, LBB0_15
; %bb.9:
	mov	x0, x24
	mov	x1, x26
	bl	_bytestream2_skip
	mov	x0, x24
	bl	_bytestream2_get_bytes_left
	cmp	x0, #0
	b.le	LBB0_17
; %bb.10:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x21
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	mov	x3, x21
	bl	_read_highpass
	tbnz	w0, #31, LBB0_12
; %bb.11:
	ldr	w1, [x28, #32]
	ldr	x8, [x28, #24]
	lsl	x20, x22, #3
	ldr	x8, [x8, x20]
	ldp	w2, w3, [x8]
	mov	x0, x23
	mov	x4, x25
	bl	_lowpass_prediction
	ldr	x8, [x21, #8]
	ldr	x1, [x8, x20]
	ldp	w8, w9, [x28, #16]
	ldr	x10, [x28, #8]
	ldr	x10, [x10, x20]
	ldr	w11, [sp, #8]                   ; 4-byte Folded Reload
	lsr	w2, w8, w11
Lloh4:
	adrp	x8, _H@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x5, [x10, x8, lsl #3]
	lsr	w3, w9, w11
Lloh7:
	adrp	x8, _V@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x6, [x10, x8, lsl #3]
	mov	x0, x19
	mov	x4, x25
	bl	_reconstruction
	mov	w26, #0
	b	LBB0_19
LBB0_12:
	mov	x26, x0
	b	LBB0_19
LBB0_13:
	mov	x26, x0
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_16
LBB0_14:
	mov	x26, x0
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_av_log
	b	LBB0_19
LBB0_17:
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.3@PAGE
Lloh29:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_18:
Lloh30:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh32:
	ldr	w26, [x8]
LBB0_19:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_H,8,3                          ; @H
	.comm	_V,8,3                          ; @V
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error in lowpass coefficients for plane %d, top row\n"

l_.str.1:                               ; @.str.1
	.asciz	"error in lowpass coefficients for plane %d, left column\n"

l_.str.2:                               ; @.str.2
	.asciz	"error in lowpass coefficients for plane %d, rest\n"

l_.str.3:                               ; @.str.3
	.asciz	"no bytes left\n"

	.no_dead_strip	_decode_plane
.subsections_via_symbols
