	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svq3_decode_block
_svq3_decode_block:                     ## @svq3_decode_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	cmpl	$15, %edx
	jg	LBB0_27
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rdi, %r15
	movslq	%ecx, %rax
	leal	(%rax,%rax,2), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	sarl	$2, %ecx
	movl	$16, %r13d
	shrl	%cl, %r13d
	leaq	_svq3_decode_block.scan_patterns(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r15, %rdi
	callq	_get_interleaved_ue_golomb
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_25
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	1(%rax), %ecx
	movl	%ecx, %esi
	shrl	%esi
	cmpl	$3, %r12d
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ebx, %ebx
	cmpl	$6, %ecx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%esi, %edx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$31, %ecx
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_svq3_dct_tables@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	%esi, %edx
	movl	(%rcx,%rdx,8), %ebx
	movl	4(%rcx,%rdx,8), %edx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, %edx
	movl	$1, %ebx
	cmpl	$8, %ecx
	jb	LBB0_22
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%esi, %ebx
	andl	$3, %ebx
	addl	$9, %esi
	shrl	$2, %esi
	subl	%ebx, %esi
	movl	%esi, %edx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$4, -44(%rbp)                   ## 4-byte Folded Reload
	jae	LBB0_12
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	shrl	$5, %ecx
	movl	%esi, %ebx
	andl	$15, %ebx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$2, %edx
	cmpl	$3, %ebx
	jb	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edx, %edx
	cmpl	$10, %ebx
	setb	%dl
	jmp	LBB0_21
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	shrl	$4, %ecx
	movl	%esi, %ebx
	andl	$7, %ebx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %ebx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$2, %edx
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$4, %edx
	jmp	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$8, %edx
	jmp	LBB0_21
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$5, %ebx
	movl	$0, %edx
	adcl	$-1, %edx
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	%ecx, %edx
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	%r14d, %ebx
	cmpl	%r13d, %ebx
	jge	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=2
	andl	$1, %eax
	decl	%eax
	xorl	%eax, %edx
	subl	%eax, %edx
	movslq	%ebx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, (%rcx,%rax,4)
	incl	%ebx
	movq	%r15, %rdi
	callq	_get_interleaved_ue_golomb
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %r14d
	testl	%eax, %eax
	jne	LBB0_4
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$2, %r12d
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %r14d
	leal	8(%r13), %ecx
	cmpl	$16, %r13d
	movl	%ecx, %r13d
	jb	LBB0_2
	jmp	LBB0_27
LBB0_23:
	movl	$-1, %eax
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @svq3_decode_block.scan_patterns
_svq3_decode_block.scan_patterns:
	.quad	129
	.quad	130
	.quad	128
	.quad	131

	.comm	_svq3_dct_tables,8,3            ## @svq3_dct_tables
	.no_dead_strip	_svq3_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svq3_decode_block
_svq3_decode_block:                     ; @svq3_decode_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w2, #15
	b.gt	LBB0_12
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _svq3_decode_block.scan_patterns@PAGE
Lloh1:
	add	x8, x8, _svq3_decode_block.scan_patterns@PAGEOFF
	ldr	x23, [x8, w3, sxtw #3]
	add	w24, w3, w3, lsl #1
	asr	w8, w24, #2
	mov	w9, #16
	lsr	w25, w9, w8
	sbfx	x26, x24, #2, #30
	mov	w27, #1
	mov	w28, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_get_interleaved_ue_golomb
	cbz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w0, #1
	lsr	w9, w8, #1
	cmp	w19, #3
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ubfx	w10, w8, #1, #2
	add	w11, w9, #9
	lsr	w11, w11, #2
	sub	w11, w11, w10
	cmp	w8, #8
	csel	w11, w27, w11, lo
	csel	w10, w27, w10, lo
	cmp	w8, #6
	csel	w8, w9, w11, lo
	csel	w9, wzr, w10, lo
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #31
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x8, _svq3_dct_tables@GOTPAGE
Lloh3:
	ldr	x8, [x8, _svq3_dct_tables@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	add	x8, x8, w9, uxtw #3
	ldp	w9, w8, [x8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ubfx	w9, w8, #1, #4
	lsr	w10, w8, #5
	cmp	w9, #10
	cset	w11, lo
	cmp	w9, #3
	csel	w11, w28, w11, lo
	cmp	w9, #0
	mov	w12, #4
	csel	w11, w12, w11, eq
	add	w10, w11, w10
	ubfx	w11, w8, #1, #3
	lsr	w8, w8, #4
	cmp	w11, #4
	csetm	w12, hi
	cmp	w11, #1
	csel	w12, w28, w12, eq
	cmp	w11, #0
	mov	w13, #8
	csel	w12, w13, w12, eq
	add	w8, w12, w8
	cmp	w24, #4
	csel	w8, w10, w8, lo
	csel	w9, w9, w11, lo
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w9, w22
	cmp	w9, w25
	b.ge	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w10, w0, #0x1
	sub	w10, w10, #1
	eor	w8, w8, w10
	sub	w8, w8, w10
	ldr	x10, [x23, w9, sxtw #3]
	str	w8, [x20, x10, lsl #2]
	add	w22, w9, #1
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	cmp	w19, #2
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x25
	add	w8, w25, #8
	cmp	w25, #16
	mov	x25, x8
	b.lo	LBB0_2
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @svq3_decode_block.scan_patterns
_svq3_decode_block.scan_patterns:
	.quad	129
	.quad	130
	.quad	128
	.quad	131

	.comm	_svq3_dct_tables,8,3            ; @svq3_dct_tables
	.no_dead_strip	_svq3_decode_block
.subsections_via_symbols
