	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dx2_decode_slice_420
_dx2_decode_slice_420:                  ## @dx2_decode_slice_420
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.1:
	movq	%r8, %rbx
	movq	%rdi, %r14
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	8(%rsi), %rcx
	movq	16(%rsi), %r8
	movslq	(%rcx), %rax
	movslq	8(%rcx), %r9
	movl	%r9d, %edi
	sarl	%edi
	imull	%edx, %edi
	movslq	%edi, %r11
	shlq	$2, %r11
	addq	16(%r8), %r11
	movslq	(%rsi), %rdi
	movslq	4(%rcx), %r10
	movl	%r10d, %ecx
	sarl	%ecx
	imull	%edx, %ecx
	movslq	%ecx, %r12
	shlq	$2, %r12
	addq	8(%r8), %r12
	movq	(%r8), %r8
	imull	%eax, %edx
	movslq	%edx, %rdx
	leaq	(%r8,%rdx,4), %r13
	leal	(%rdi,%rdi), %esi
	leal	(%rsi,%rsi,2), %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	leaq	32(%rbx), %rsi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	leal	(%rax,%rax), %esi
	addq	%rdx, %rax
	leaq	64(%rbx), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movslq	%esi, %rdx
	leaq	(%r8,%rax,4), %r15
	addq	$4, %r15
	shlq	$2, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %r9
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	shlq	$2, %r10
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	$2, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	addq	%rcx, %r15
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	addq	%rcx, %r13
	addq	-112(%rbp), %rdx                ## 8-byte Folded Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	addq	-104(%rbp), %r12                ## 8-byte Folded Reload
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rdx, %r11
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %r15
	movq	%r11, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_get_bits_left
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%edi, %edi
	movq	%r13, %rdx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %r13
	callq	_decode_sym
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%r12,4)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_decode_sym
	movl	%eax, 4(%rbx,%r12,4)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_decode_sym
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, -4(%r15,%r12,4)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_decode_sym
	movl	%eax, (%r15,%r12,4)
	movq	%r14, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_decode_sym
	xorl	$128, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,2)
	movq	%r14, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_decode_sym
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	%r13, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	$128, %eax
	movl	%eax, (%rdx,%r12,2)
	addq	$2, %r12
	cmpq	%rdi, %r12
	jl	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dx2_decode_slice_420
.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_420
_dx2_decode_slice_420:                  ; @dx2_decode_slice_420
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	cmp	w3, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	sub	w8, w3, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldrsw	x22, [x1]
	ldp	x8, x9, [x1, #8]
	ldp	x13, x10, [x9, #8]
	ldrsw	x11, [x8, #8]
	asr	w12, w11, #1
	mul	w12, w12, w2
	add	x26, x10, w12, sxtw #2
	ldpsw	x10, x8, [x8]
	asr	w12, w8, #1
	mul	w12, w12, w2
	ldr	x9, [x9]
	add	x27, x13, w12, sxtw #2
	add	w12, w22, w22, lsl #1
	mul	w13, w10, w2
	lsl	w12, w12, #1
	str	w12, [sp, #48]                  ; 4-byte Folded Spill
	add	x23, x4, #32
	add	x24, x4, #64
	add	x9, x9, w13, sxtw #2
	lsl	w12, w10, #1
	lsl	x8, x8, #2
	stp	x8, x4, [sp, #24]               ; 16-byte Folded Spill
	add	x8, x9, #4
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	sbfiz	x9, x12, #2, #32
	lsl	x21, x10, #2
	lsl	x8, x11, #2
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	str	x21, [sp, #64]                  ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	add	w20, w20, #2
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	add	x27, x27, x8
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x8, x8, x9
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x26, x8
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w20, w8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x19
	bl	_get_bits_left
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.le	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	cmp	w22, #1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, #0
	mov	x28, #0
	ldr	x25, [sp, #56]                  ; 8-byte Folded Reload
	str	x27, [sp, #72]                  ; 8-byte Folded Spill
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x21, x9
	mov	x1, x9
	bl	_decode_sym
	stur	w0, [x25, #-4]
	mov	x0, x19
	mov	x1, x21
	bl	_decode_sym
	str	w0, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_decode_sym
	mov	x27, x26
	mov	x26, x24
	mov	x24, x23
	mov	x23, x22
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	x22, x25, x8
	stur	w0, [x22, #-4]
	mov	x0, x19
	mov	x1, x21
	bl	_decode_sym
	str	w0, [x22]
	mov	x22, x23
	mov	x23, x24
	mov	x24, x26
	mov	x26, x27
	ldr	x27, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x23
	bl	_decode_sym
	eor	w8, w0, #0x80
	str	w8, [x27, x20]
	mov	x0, x19
	mov	x1, x24
	bl	_decode_sym
	mov	x9, x21
	eor	w8, w0, #0x80
	str	w8, [x26, x20]
	add	x28, x28, #2
	add	x20, x20, #4
	add	x25, x25, #8
	cmp	x28, x22
	b.lt	LBB0_6
	b	LBB0_2
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dx2_decode_slice_420
.subsections_via_symbols
