	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_plane_bitstream
_decode_plane_bitstream:                ## @decode_plane_bitstream
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	%esi, %r14d
	shrl	$31, %r14d
	addl	%esi, %r14d
	sarl	%r14d
	movl	(%rdi), %eax
	cmpl	$8, %eax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jg	LBB0_14
## %bb.1:
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rbx
	movq	%rbx, %rsi
	callq	_OPEN_READER
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_bits_left
                                        ## kill: def $eax killed $eax def $rax
	leal	63(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_2
## %bb.6:
	cmpl	$2, %r12d
	jl	LBB0_9
## %bb.7:
	movl	%r14d, %r14d
	movl	$8, %ebx
	movq	_OP8bits@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	movl	(%r12), %ecx
	movl	%r15d, %edx
	callq	_READ_2PIX_PLANE
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_8
	jmp	LBB0_9
LBB0_14:
	cmpl	$14, %eax
	ja	LBB0_26
## %bb.15:
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rbx
	movq	%rbx, %rsi
	callq	_OPEN_READER
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_bits_left
                                        ## kill: def $eax killed $eax def $rax
	leal	63(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_16
## %bb.20:
	cmpl	$2, %r12d
	jl	LBB0_23
## %bb.21:
	movl	%r14d, %r14d
	movl	$8, %ebx
	movq	_OP14bits@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	movl	(%r12), %ecx
	movl	%r15d, %edx
	callq	_READ_2PIX_PLANE
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_22
	jmp	LBB0_23
LBB0_2:
	cmpl	$2, %r12d
	jl	LBB0_9
## %bb.3:
	movl	%r14d, %r14d
	movl	$8, %ebx
	movq	_OP8bits@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BITS_LEFT
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	movl	(%r12), %ecx
	movl	%r15d, %edx
	callq	_READ_2PIX_PLANE
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_4
LBB0_9:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testb	$1, %r14b
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_re@GOTPCREL(%rip), %rbx
	je	LBB0_13
## %bb.10:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_BITS_LEFT
	testq	%rax, %rax
	jle	LBB0_13
## %bb.11:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_UPDATE_CACHE
	movl	(%rbx), %edi
	movl	%r14d, %ebx
	movq	_VLC_BITS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rsi
	callq	_SHOW_UBITS
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movq	-8(%rcx,%rdx,8), %rdi
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	jmp	LBB0_12
LBB0_26:
	leaq	4(%r13), %rdi
	movq	%rdi, %rbx
	callq	_get_bits_left
                                        ## kill: def $eax killed $eax def $rax
	leal	63(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_27
## %bb.31:
	cmpl	$2, %r12d
	movq	%rbx, %r12
	jl	LBB0_34
## %bb.32:
	movl	%r14d, %r14d
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	movl	%r15d, %edx
	callq	_READ_2PIX_PLANE16
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_33
	jmp	LBB0_34
LBB0_16:
	cmpl	$2, %r12d
	jl	LBB0_23
## %bb.17:
	movl	%r14d, %r14d
	movl	$8, %ebx
	movq	_OP14bits@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BITS_LEFT
	testq	%rax, %rax
	jle	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	movl	(%r12), %ecx
	movl	%r15d, %edx
	callq	_READ_2PIX_PLANE
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_18
LBB0_23:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testb	$1, %r14b
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_re@GOTPCREL(%rip), %rbx
	je	LBB0_13
## %bb.24:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_BITS_LEFT
	testq	%rax, %rax
	jle	LBB0_13
## %bb.25:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_UPDATE_CACHE
	movl	(%rbx), %edi
	movl	%r14d, %ebx
	movq	_VLC_BITS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rsi
	callq	_SHOW_UBITS
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	movq	-8(%rax,%rdx,8), %rdi
	movslq	%r15d, %rax
	movl	(%rcx,%rax,4), %esi
LBB0_12:
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	movq	_re@GOTPCREL(%rip), %rbx
	movq	%r12, %rdx
	movl	$3, %r9d
	callq	_VLC_INTERN
LBB0_13:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CLOSE_READER                   ## TAILCALL
LBB0_27:
	cmpl	$2, %r12d
	movq	%rbx, %r12
	jl	LBB0_34
## %bb.28:
	movl	%r14d, %r14d
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rbx), %rdi
	movq	(%rax,%rbx), %rsi
	movl	%r15d, %edx
	callq	_READ_2PIX_PLANE16
	addq	$16, %rbx
	decq	%r14
	jne	LBB0_29
LBB0_34:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testb	$1, %bl
	je	LBB0_37
## %bb.35:
	movq	%r12, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_37
## %bb.36:
	movq	16(%r13), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	shll	$2, %eax
	movl	%ebx, %r14d
	movslq	%eax, %rbx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_get_bits
	addq	%rbx, %rax
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movq	%rax, -8(%rcx,%rdx,8)
LBB0_37:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_re,4,2                         ## @re
	.comm	_OP8bits,4,2                    ## @OP8bits
	.comm	_VLC_BITS,4,2                   ## @VLC_BITS
	.comm	_OP14bits,4,2                   ## @OP14bits
	.no_dead_strip	_decode_plane_bitstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_plane_bitstream
_decode_plane_bitstream:                ; @decode_plane_bitstream
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w23, w8, #1
	ldr	w8, [x0]
	cmp	w8, #8
	b.gt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x24, _re@GOTPAGE
Lloh1:
	ldr	x24, [x24, _re@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x20, #4
	mov	x1, x22
	bl	_OPEN_READER
	mov	x0, x22
	bl	_get_bits_left
	add	w8, w0, #63
	cmp	w0, #0
	csel	w8, w8, w0, lt
	cmp	w23, w8, asr #6
	b.ge	LBB0_10
; %bb.2:
	cmp	w19, #2
	b.lt	LBB0_14
; %bb.3:
	mov	x25, #0
Lloh2:
	adrp	x26, _OP8bits@GOTPAGE
Lloh3:
	ldr	x26, [x26, _OP8bits@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	add	x8, x8, x25
	ldp	x0, x1, [x8]
	ldr	w3, [x26]
	mov	x2, x21
	bl	_READ_2PIX_PLANE
	add	x25, x25, #16
	subs	x23, x23, #1
	b.ne	LBB0_4
	b	LBB0_14
LBB0_5:
	cmp	w8, #14
	b.hi	LBB0_17
; %bb.6:
Lloh4:
	adrp	x24, _re@GOTPAGE
Lloh5:
	ldr	x24, [x24, _re@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x20, #4
	mov	x1, x22
	bl	_OPEN_READER
	mov	x0, x22
	bl	_get_bits_left
	add	w8, w0, #63
	cmp	w0, #0
	csel	w8, w8, w0, lt
	cmp	w23, w8, asr #6
	b.ge	LBB0_21
; %bb.7:
	cmp	w19, #2
	b.lt	LBB0_25
; %bb.8:
	mov	x25, #0
Lloh6:
	adrp	x26, _OP14bits@GOTPAGE
Lloh7:
	ldr	x26, [x26, _OP14bits@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x8, x8, x25
	ldp	x0, x1, [x8]
	ldr	w3, [x26]
	mov	x2, x21
	bl	_READ_2PIX_PLANE
	add	x25, x25, #16
	subs	x23, x23, #1
	b.ne	LBB0_9
	b	LBB0_25
LBB0_10:
	cmp	w19, #2
	b.lt	LBB0_14
; %bb.11:
	mov	x25, #0
Lloh8:
	adrp	x26, _OP8bits@GOTPAGE
Lloh9:
	ldr	x26, [x26, _OP8bits@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_BITS_LEFT
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	add	x8, x8, x25
	ldp	x0, x1, [x8]
	ldr	w3, [x26]
	mov	x2, x21
	bl	_READ_2PIX_PLANE
	add	x25, x25, #16
	subs	x23, x23, #1
	b.ne	LBB0_12
LBB0_14:
	tbz	w19, #0, LBB0_29
; %bb.15:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_BITS_LEFT
	cmp	x0, #1
	b.lt	LBB0_29
; %bb.16:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w0, [x24]
Lloh10:
	adrp	x23, _VLC_BITS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _VLC_BITS@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x1, x22
	bl	_SHOW_UBITS
	ldr	x8, [x20, #24]
	b	LBB0_28
LBB0_17:
	add	x22, x20, #4
	mov	x0, x22
	bl	_get_bits_left
	add	w8, w0, #63
	cmp	w0, #0
	csel	w8, w8, w0, lt
	cmp	w23, w8, asr #6
	b.ge	LBB0_30
; %bb.18:
	cmp	w19, #2
	b.lt	LBB0_34
; %bb.19:
	mov	x24, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x8, x8, x24
	ldp	x0, x1, [x8]
	mov	x2, x21
	bl	_READ_2PIX_PLANE16
	add	x24, x24, #16
	subs	x23, x23, #1
	b.ne	LBB0_20
	b	LBB0_34
LBB0_21:
	cmp	w19, #2
	b.lt	LBB0_25
; %bb.22:
	mov	x25, #0
Lloh12:
	adrp	x26, _OP14bits@GOTPAGE
Lloh13:
	ldr	x26, [x26, _OP14bits@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_BITS_LEFT
	cmp	x0, #1
	b.lt	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x8, x8, x25
	ldp	x0, x1, [x8]
	ldr	w3, [x26]
	mov	x2, x21
	bl	_READ_2PIX_PLANE
	add	x25, x25, #16
	subs	x23, x23, #1
	b.ne	LBB0_23
LBB0_25:
	tbz	w19, #0, LBB0_29
; %bb.26:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_BITS_LEFT
	cmp	x0, #1
	b.lt	LBB0_29
; %bb.27:
	ldr	w0, [x24]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w0, [x24]
Lloh14:
	adrp	x23, _VLC_BITS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _VLC_BITS@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x1, x22
	bl	_SHOW_UBITS
	ldr	x8, [x20, #8]
LBB0_28:
	ldr	x9, [x20, #16]
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #3
	ldur	x0, [x8, #-8]
	ldr	w1, [x9, w21, sxtw #2]
	ldr	w3, [x24]
	ldr	w4, [x23]
	mov	x2, x22
	mov	w5, #3
	bl	_VLC_INTERN
LBB0_29:
	ldr	w0, [x24]
	mov	x1, x22
	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
	b	_CLOSE_READER
LBB0_30:
	cmp	w19, #2
	b.lt	LBB0_34
; %bb.31:
	mov	x24, #0
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, #1
	b.lt	LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	add	x8, x8, x24
	ldp	x0, x1, [x8]
	mov	x2, x21
	bl	_READ_2PIX_PLANE16
	add	x24, x24, #16
	subs	x23, x23, #1
	b.ne	LBB0_32
LBB0_34:
	tbz	w19, #0, LBB0_37
; %bb.35:
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, #1
	b.lt	LBB0_37
; %bb.36:
	ldr	x8, [x20, #16]
	ldr	w1, [x8, w21, sxtw #2]
Lloh16:
	adrp	x8, _VLC_BITS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VLC_BITS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #3
	bl	_get_vlc2
	lsl	w21, w0, #2
	mov	x0, x22
	mov	w1, #2
	bl	_get_bits
	add	x8, x0, w21, sxtw
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	add	x9, x9, w19, sxtw #3
	stur	x8, [x9, #-8]
LBB0_37:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_re,4,2                         ; @re
	.comm	_OP8bits,4,2                    ; @OP8bits
	.comm	_VLC_BITS,4,2                   ; @VLC_BITS
	.comm	_OP14bits,4,2                   ; @OP14bits
	.no_dead_strip	_decode_plane_bitstream
.subsections_via_symbols
