	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dx2_decode_slice_rgb
_dx2_decode_slice_rgb:                  ## @dx2_decode_slice_rgb
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	movq	16(%rsi), %rax
	movq	8(%rsi), %rcx
	movslq	(%rcx), %rsi
	movslq	%edx, %r12
	movq	%rsi, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	imulq	%rsi, %r12
	shlq	$2, %r12
	addq	(%rax), %r12
	leal	(%rdi,%rdi), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	32(%r8), %r13
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	leaq	64(%r8), %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rdi,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %r12
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	incl	%r14d
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_decode_sym
	movl	%r13d, %ecx
	movl	%eax, (%r12,%rcx,4)
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_decode_sym
	leal	1(%r13), %ecx
	movl	%eax, (%r12,%rcx,4)
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_decode_sym
	leal	2(%r13), %ecx
	movl	%eax, (%r12,%rcx,4)
	addq	$3, %r13
	cmpq	%r13, %r15
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dx2_decode_slice_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dx2_decode_slice_rgb
_dx2_decode_slice_rgb:                  ; @dx2_decode_slice_rgb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x4
	mov	x22, x0
	mov	w19, #0
	ldr	w10, [x1]
	ldp	x9, x8, [x1, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	str	x9, [sp]                        ; 8-byte Folded Spill
	mul	w9, w9, w2
	add	x27, x8, w9, sxtw #2
	add	w8, w10, w10, lsl #1
	lsl	w28, w8, #1
	add	x23, x4, #32
	add	x24, x4, #64
	mov	x26, x10
	add	x20, x10, x10, lsl #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x27, x27, x8, lsl #2
	add	w19, w19, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w19, w8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, w28
	b.le	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x21
	bl	_decode_sym
	str	w0, [x27, w25, uxtw #2]
	mov	x0, x22
	mov	x1, x23
	bl	_decode_sym
	add	w8, w25, #1
	str	w0, [x27, w8, uxtw #2]
	mov	x0, x22
	mov	x1, x24
	bl	_decode_sym
	add	w8, w25, #2
	str	w0, [x27, w8, uxtw #2]
	add	x25, x25, #3
	cmp	x20, x25
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:
	mov	w19, #0
	b	LBB0_9
LBB0_8:
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dx2_decode_slice_rgb
.subsections_via_symbols
