	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asv1_decode_block
_asv1_decode_block:                     ## @asv1_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r13
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	shll	$3, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rbx)
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r14
	addq	$16, %r12
	cmpq	$176, %r12
	je	LBB0_15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ccp_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	cmpl	$16, %eax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$10, %r14
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$8, %bl
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$4, %bl
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$2, %bl
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %bl
	je	LBB0_14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_asv1_get_level
	movq	(%r15), %rcx
	imull	(%rcx,%r12), %eax
	movq	16(%r15), %rcx
	sarl	$4, %eax
	movq	(%rcx,%r12,2), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	testb	$4, %bl
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_asv1_get_level
	movq	(%r15), %rcx
	imull	4(%rcx,%r12), %eax
	movq	16(%r15), %rcx
	sarl	$4, %eax
	movq	8(%rcx,%r12,2), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	testb	$2, %bl
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_asv1_get_level
	movq	(%r15), %rcx
	imull	8(%rcx,%r12), %eax
	movq	16(%r15), %rcx
	sarl	$4, %eax
	movq	16(%rcx,%r12,2), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	testb	$1, %bl
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_asv1_get_level
	movq	(%r15), %rcx
	imull	12(%rcx,%r12), %eax
	movq	16(%r15), %rcx
	sarl	$4, %eax
	movq	24(%rcx,%r12,2), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_5:
	movl	24(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ccp_vlc,4,2                    ## @ccp_vlc
	.comm	_VLC_BITS,4,2                   ## @VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coded coeff pattern damaged\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_asv1_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asv1_decode_block
_asv1_decode_block:                     ; @asv1_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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	mov	w1, #8
	bl	_get_bits
	mov	x23, #0
	mov	x24, #0
	lsl	w8, w0, #3
	str	w8, [x20]
	mov	w25, #24
Lloh0:
	adrp	x26, _ccp_vlc@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ccp_vlc@GOTPAGEOFF]
Lloh2:
	adrp	x27, _VLC_BITS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _VLC_BITS@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	add	x25, x25, #32
	add	x23, x23, #16
	cmp	x25, #376
	b.eq	LBB0_14
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x21
	mov	w3, #1
	bl	_get_vlc2
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	cmp	w0, #16
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w22, #31, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x24, #10
	b.hs	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w22, #3, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w22, #2, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w22, #1, LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w22, #0, LBB0_1
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_asv1_get_level
	ldr	x8, [x19]
	ldr	w8, [x8, x23]
	mul	w8, w8, w0
	asr	w8, w8, #4
	ldr	x9, [x19, #16]
	add	x9, x9, x25
	ldur	x9, [x9, #-24]
	str	w8, [x20, x9, lsl #2]
	tbz	w22, #2, LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_asv1_get_level
	ldr	x8, [x19]
	add	x8, x8, x23
	ldr	w8, [x8, #4]
	mul	w8, w8, w0
	asr	w8, w8, #4
	ldr	x9, [x19, #16]
	add	x9, x9, x25
	ldur	x9, [x9, #-16]
	str	w8, [x20, x9, lsl #2]
	tbz	w22, #1, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_asv1_get_level
	ldr	x8, [x19]
	add	x8, x8, x23
	ldr	w8, [x8, #8]
	mul	w8, w8, w0
	asr	w8, w8, #4
	ldr	x9, [x19, #16]
	add	x9, x9, x25
	ldur	x9, [x9, #-8]
	str	w8, [x20, x9, lsl #2]
	tbz	w22, #0, LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_asv1_get_level
	ldr	x8, [x19]
	add	x8, x8, x23
	ldr	w8, [x8, #12]
	mul	w8, w8, w0
	asr	w8, w8, #4
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x25]
	str	w8, [x20, x9, lsl #2]
	b	LBB0_1
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_16:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ccp_vlc,4,2                    ; @ccp_vlc
	.comm	_VLC_BITS,4,2                   ; @VLC_BITS
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coded coeff pattern damaged\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_asv1_decode_block
.subsections_via_symbols
