	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quantize_band_cost_cached
_quantize_band_cost_cached:             ## @quantize_band_cost_cached
	.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
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movslq	16(%rbp), %r14
	xorl	%edi, %edi
	cmpq	$256, %r14                      ## imm = 0x100
	setb	%dil
	movl	24(%rbp), %r13d
	callq	_av_assert1
	movl	%r13d, %r9d
	movl	48(%rbp), %r11d
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %r13
	shll	$4, %r12d
	addl	%ebx, %r12d
	movslq	%r12d, %rbx
	shlq	$5, %rbx
	movq	(%r13,%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	%r9d, 8(%r13,%rbx)
	jne	LBB0_3
## %bb.2:
	cmpl	%r11d, 12(%r13,%rbx)
	je	LBB0_4
LBB0_3:
	leaq	(%rbx,%r13), %r12
	leaq	(%rbx,%r13), %r10
	addq	$20, %r10
	leaq	(%rbx,%r13), %rax
	addq	$24, %rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r9d, %r14d
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_quantize_band_cost
	addq	$32, %rsp
	movss	%xmm0, 16(%r13,%rbx)
	movl	%r14d, 8(%r13,%rbx)
	movl	48(%rbp), %eax
	movl	%eax, 12(%r13,%rbx)
	movq	(%r15), %rax
	movq	%rax, (%r12)
LBB0_4:
	movq	40(%rbp), %rax
	movq	32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movl	20(%r13,%rbx), %ecx
	movl	%ecx, (%rdx)
LBB0_6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movss	24(%r13,%rbx), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rax)
LBB0_8:
	movss	16(%r13,%rbx), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_quantize_band_cost_cached
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quantize_band_cost_cached
_quantize_band_cost_cached:             ; @quantize_band_cost_cached
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x7
	mov	x21, x6
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	mov	x24, x3
	mov	x25, x2
	fmov	s8, s1
	fmov	s9, s0
	mov	x26, x1
	mov	x20, x0
	ldr	w23, [x29, #32]
	ldp	x28, x27, [x29, #16]
	cmp	w6, #256
	cset	w0, lo
	bl	_av_assert1
	ldp	x9, x8, [x20]
	ldr	x22, [x8, w21, sxtw #3]
	add	w8, w25, w26, lsl #4
	sxtw	x25, w8
	add	x26, x22, x25, lsl #5
	ldr	x8, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x26, #8]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
	add	x8, x22, x25, lsl #5
	ldr	w8, [x8, #12]
	cmp	w8, w23
	b.eq	LBB0_4
LBB0_3:
	add	x6, x26, #20
	add	x7, x26, #24
	str	w23, [sp]
	mov	x0, x20
	mov	x1, x24
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	mov	x4, x21
	mov	x5, x19
	fmov	s0, s9
	fmov	s1, s8
	bl	_quantize_band_cost
	str	s0, [x26, #16]
	stp	w19, w23, [x26, #8]
	ldr	x8, [x20]
	str	x8, [x26]
LBB0_4:
	cbz	x28, LBB0_6
; %bb.5:
	add	x8, x22, x25, lsl #5
	ldr	w8, [x8, #20]
	str	w8, [x28]
LBB0_6:
	cbz	x27, LBB0_8
; %bb.7:
	add	x8, x22, x25, lsl #5
	ldr	s0, [x8, #24]
	str	s0, [x27]
LBB0_8:
	add	x8, x22, x25, lsl #5
	ldr	s0, [x8, #16]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_quantize_band_cost_cached
.subsections_via_symbols
