	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asv1_encode_block
_asv1_encode_block:                     ## @asv1_encode_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	$24, %rsp
	.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, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r14
	movl	(%rsi), %edx
	addl	$32, %edx
	sarl	$6, %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	xorl	%r8d, %r8d
	movq	_ff_asv_ccp_tab@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	_ff_asv_ccp_tab@GOTPCREL(%rip), %rdx
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r8
	cmpq	$10, %r8
	je	LBB0_15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_ff_asv_scantab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r8, %rcx
	shlq	$4, %rcx
	movslq	(%rax,%rcx), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	movl	(%r9,%r15,4), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	imull	(%rbx,%r15,4), %ecx
	movswl	%cx, %edi
	xorl	%esi, %esi
	cmpl	%ecx, %edi
	setne	%sil
	addl	$32768, %ecx                    ## imm = 0x8000
	sarl	$16, %ecx
	movl	%ecx, (%rbx,%r15,4)
	movl	32(%r9,%r15,4), %ecx
	imull	32(%rbx,%r15,4), %ecx
	leal	32768(%rcx), %eax
	sarl	$16, %eax
	movswl	%cx, %edi
	cmpl	%ecx, %edi
	leal	(,%rsi,8), %ecx
	leal	4(,%rsi,8), %esi
	cmovel	%ecx, %esi
	movl	%eax, 32(%rbx,%r15,4)
	movl	4(%r9,%r15,4), %ecx
	imull	4(%rbx,%r15,4), %ecx
	leal	32768(%rcx), %eax
	sarl	$16, %eax
	movswl	%cx, %edi
	cmpl	%ecx, %edi
	leal	2(%rsi), %edi
	cmovel	%esi, %edi
	movl	%eax, 4(%rbx,%r15,4)
	movl	36(%r9,%r15,4), %eax
	imull	36(%rbx,%r15,4), %eax
	leal	32768(%rax), %ecx
	sarl	$16, %ecx
	movl	%ecx, 36(%rbx,%r15,4)
	movswl	%ax, %ecx
	xorl	%r12d, %r12d
	cmpl	%eax, %ecx
	setne	%r12b
	orl	%edi, %r12d
	je	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%edi, %ebx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits
	movq	_ff_asv_ccp_tab@GOTPCREL(%rip), %rdx
	decl	%r13d
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_put_bits
	testb	$8, %bl
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$4, %bl
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$2, %bl
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r15,4), %esi
	movq	%r14, %rdi
	callq	_asv1_put_level
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	testb	$1, %r12b
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax,%r15,4), %esi
	movq	%r14, %rdi
	callq	_asv1_put_level
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %esi
	movq	%r14, %rdi
	callq	_asv1_put_level
	testb	$4, %bl
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax,%r15,4), %esi
	movq	%r14, %rdi
	callq	_asv1_put_level
	testb	$2, %bl
	jne	LBB0_9
	jmp	LBB0_10
LBB0_15:
	movq	(%rdx), %rax
	movq	128(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_asv_scantab,8,3             ## @ff_asv_scantab
	.comm	_ff_asv_ccp_tab,8,3             ## @ff_asv_ccp_tab
	.no_dead_strip	_asv1_encode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asv1_encode_block
_asv1_encode_block:                     ; @asv1_encode_block
	.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
	mov	x20, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	add	x19, x0, #8
	ldr	w8, [x1]
	add	w8, w8, #32
	asr	w2, w8, #6
	mov	x0, x19
	mov	w1, #8
	bl	_put_bits
	mov	x22, #0
	mov	w25, #0
	str	wzr, [x20]
Lloh0:
	adrp	x24, _ff_asv_ccp_tab@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ff_asv_ccp_tab@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, #10
	b.eq	LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
Lloh2:
	adrp	x8, _ff_asv_scantab@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ff_asv_scantab@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	lsl	x9, x22, #4
	ldrsw	x26, [x8, x9]
	lsl	x8, x26, #2
	ldr	w9, [x20, x8]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x10, [x10]
	ldr	w11, [x10, x8]
	mul	w9, w11, w9
	add	w11, w9, #8, lsl #12            ; =32768
	asr	w11, w11, #16
	str	w11, [x20, x8]
	add	x14, x26, #8
	lsl	x8, x14, #2
	ldr	w11, [x20, x8]
	ldr	w12, [x10, x8]
	mul	w11, w12, w11
	add	w12, w11, #8, lsl #12           ; =32768
	asr	w12, w12, #16
	str	w12, [x20, x8]
	add	x28, x26, #1
	lsl	x8, x28, #2
	ldr	w12, [x20, x8]
	ldr	w13, [x10, x8]
	mul	w12, w13, w12
	add	w13, w12, #8, lsl #12           ; =32768
	asr	w13, w13, #16
	str	w13, [x20, x8]
	cmp	w9, w9, sxth
	cset	w8, ne
	mov	w9, #4
	bfi	w9, w8, #3, #1
	lsl	w8, w8, #3
	cmp	w11, w11, sxth
	csel	w8, w8, w9, eq
	orr	w9, w8, #0x2
	cmp	w12, w12, sxth
	csel	w27, w8, w9, eq
	add	x23, x26, #9
	lsl	x8, x23, #2
	ldr	w9, [x20, x8]
	ldr	w10, [x10, x8]
	mul	w9, w10, w9
	add	w10, w9, #8, lsl #12            ; =32768
	asr	w10, w10, #16
	str	w10, [x20, x8]
	cmp	w9, w9, sxth
	cset	w8, ne
	orr	w21, w27, w8
	cbz	w21, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x14, [sp]                       ; 8-byte Folded Spill
	cbz	w25, LBB0_6
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_put_bits
	subs	w25, w25, #1
	b.ne	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8, w21, uxtw #3]
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_put_bits
	tbnz	w27, #3, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w27, #2, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w27, #1, LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w21, #0, LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, x26, lsl #2]
	mov	x0, x19
	bl	_asv1_put_level
	tbz	w27, #2, LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w1, [x20, x8, lsl #2]
	mov	x0, x19
	bl	_asv1_put_level
	tbz	w27, #1, LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, x28, lsl #2]
	mov	x0, x19
	bl	_asv1_put_level
	tbz	w21, #0, LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, x23, lsl #2]
	mov	x0, x19
	bl	_asv1_put_level
	mov	w25, #0
	b	LBB0_2
LBB0_15:
	ldr	x8, [x24]
	ldr	x8, [x8, #128]
	ldp	w2, w1, [x8]
	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
	b	_put_bits
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_asv_scantab,8,3             ; @ff_asv_scantab
	.comm	_ff_asv_ccp_tab,8,3             ; @ff_asv_ccp_tab
	.no_dead_strip	_asv1_encode_block
.subsections_via_symbols
