	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tscc2_decode_slice
_tscc2_decode_slice:                    ## @tscc2_decode_slice
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	addq	$40, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leal	(,%rsi,8), %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	$16, %r13d
	incq	%rbx
	cmpl	%eax, %ebx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movl	%eax, %edx
	imull	%esi, %edx
	movslq	%edx, %rdx
	addq	%rbx, %rdx
	movslq	(%rcx,%rdx,4), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3, %r15d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movl	(%rdx), %r8d
	movl	%r14d, %edi
	imull	%r8d, %edi
	addl	%r13d, %edi
	movq	32(%r12), %rdx
	movl	-4(%rdx,%r15,4), %esi
	movq	-8(%rcx,%r15,8), %rdx
	addq	$-2, %rdx
	movslq	%edi, %rcx
	addq	(%rax), %rcx
	movq	%r12, %rdi
	xorl	%r9d, %r9d
	callq	_tscc2_decode_mb
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movl	4(%rdx), %r8d
	movl	%r14d, %edi
	imull	%r8d, %edi
	addl	%r13d, %edi
	movq	32(%r12), %rdx
	movl	-4(%rdx,%r15,4), %esi
	movq	-8(%rcx,%r15,8), %rdx
	addq	$-2, %rdx
	movslq	%edi, %rcx
	addq	8(%rax), %rcx
	movq	%r12, %rdi
	movl	$1, %r9d
	callq	_tscc2_decode_mb
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movl	8(%rdx), %r8d
	imull	%r8d, %r14d
	addl	%r13d, %r14d
	movq	32(%r12), %rdx
	movl	-4(%rdx,%r15,4), %esi
	movq	-8(%rcx,%r15,8), %rdx
	addq	$-2, %rdx
	movslq	%r14d, %rcx
	addq	16(%rax), %rcx
	movq	%r12, %rdi
	movl	$2, %r9d
	callq	_tscc2_decode_mb
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tscc2_decode_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tscc2_decode_slice
_tscc2_decode_slice:                    ; @tscc2_decode_slice
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #40
	mov	x1, x2
	mov	x2, x3
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, #0
	mov	w22, #0
	lsl	w23, w19, #3
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #16
	add	x21, x21, #1
	cmp	w21, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	mul	w10, w8, w19
	add	x10, x21, w10, sxtw
	ldr	w9, [x9, x10, lsl #2]
	cmp	w9, #0
	ccmp	w9, #3, #4, ne
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w24, w9, #1
	ldp	x8, x9, [x20, #16]
	ldp	x10, x8, [x8]
	ldr	w4, [x10]
	ldr	x10, [x20, #32]
	ldr	w1, [x10, w24, sxtw #2]
	madd	w10, w23, w4, w22
	ldr	x9, [x9, w24, sxtw #3]
	sub	x2, x9, #2
	ldr	x8, [x8]
	add	x3, x8, w10, sxtw
	mov	x0, x20
	mov	w5, #0
	bl	_tscc2_decode_mb
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x24, w24
	ldp	x8, x9, [x20, #16]
	ldp	x10, x8, [x8]
	ldr	w4, [x10, #4]
	ldr	x10, [x20, #32]
	ldr	w1, [x10, x24, lsl #2]
	madd	w10, w23, w4, w22
	ldr	x9, [x9, x24, lsl #3]
	sub	x2, x9, #2
	ldr	x8, [x8, #8]
	add	x3, x8, w10, sxtw
	mov	x0, x20
	mov	w5, #1
	bl	_tscc2_decode_mb
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x20, #16]
	ldp	x10, x8, [x8]
	ldr	w4, [x10, #8]
	ldr	x10, [x20, #32]
	ldr	w1, [x10, x24, lsl #2]
	madd	w10, w23, w4, w22
	ldr	x9, [x9, x24, lsl #3]
	sub	x2, x9, #2
	ldr	x8, [x8, #16]
	add	x3, x8, w10, sxtw
	mov	x0, x20
	mov	w5, #2
	bl	_tscc2_decode_mb
	cbz	w0, LBB0_3
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tscc2_decode_slice
.subsections_via_symbols
