	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_best_code
_set_best_code:                         ## @set_best_code
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leaq	8(%rdi), %r13
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r9d, (%rax,%r14,4)
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	_DCA_CODE_BOOKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$56, %r13
	cmpq	%rax, %r14
	jge	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	imulq	$56, %r14, %r12
	cmpq	$0, (%r15,%r12)
	sete	%al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx,%r14,8)
	setne	%cl
	xorb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert0
	movq	(%r15,%r12), %rbx
	movq	_ff_dca_quant_index_group_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %r9d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r10d, %r10d
	testl	%r9d, %r9d
	jle	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %r9d
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r9), %r8
	cmpl	$2, %r9d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r10d, %r10d
	movl	$1, %esi
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r8b
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%r15, %r12
	movq	(%r12,%rsi,8), %rax
	cmpq	%rax, %rbx
	setle	%cl
	testq	%rax, %rax
	sete	%dl
	orb	%cl, %dl
	cmovnel	%r10d, %esi
	cmoveq	%rax, %rbx
	movl	%esi, %r10d
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$2, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	cmpq	%rax, %rbx
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r10d, (%rax,%r14,4)
	addq	%rbx, -48(%rbp)                 ## 8-byte Folded Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r9d, (%rcx,%r14,4)
	addq	%rax, -48(%rbp)                 ## 8-byte Folded Spill
	jmp	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%r10d, %r10d
	movl	$1, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$2, %rsi
	cmpq	%rdi, %rax
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%r13,%rsi,8), %rax
	cmpq	%rax, %rbx
	setle	%cl
	testq	%rax, %rax
	sete	%dl
	orb	%cl, %dl
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%esi, %r10d
	movq	%rax, %rbx
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r13,%rsi,8), %rcx
	cmpq	%rcx, %rbx
	setle	%al
	testq	%rcx, %rcx
	sete	%dl
	orb	%al, %dl
	leaq	1(%rsi), %rax
	testb	%dl, %dl
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %r10d
	movq	%rcx, %rbx
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_CODE_BOOKS,4,2             ## @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_group_size,8,3 ## @ff_dca_quant_index_group_size
	.no_dead_strip	_set_best_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_best_code
_set_best_code:                         ; @set_best_code
	.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
Lloh0:
	adrp	x23, _DCA_CODE_BOOKS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DCA_CODE_BOOKS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x24, #0
	mov	x22, #0
	mov	w25, #56
Lloh2:
	adrp	x26, _ff_dca_quant_index_group_size@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ff_dca_quant_index_group_size@GOTPAGEOFF]
	mov	x27, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19, x24, lsl #2]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x27, x27, #56
	cmp	x24, x8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mul	x28, x24, x25
	ldr	x8, [x21, x28]
	cmp	x8, #0
	cset	w8, eq
	ldr	x9, [x20, x24, lsl #3]
	cmp	x9, #0
	cset	w9, ne
	eor	w0, w8, w9
	bl	_av_assert0
	ldr	x9, [x21, x28]
	ldr	x8, [x26]
	ldr	w8, [x8, x24, lsl #2]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #1
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x27, x11, lsl #3]
	cmp	x9, x12
	ccmp	x12, #0, #4, gt
	csel	w10, w10, w11, eq
	csel	x9, x9, x12, eq
	add	x11, x11, #1
	cmp	x8, x11
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #2
	ldr	x11, [x20, x24, lsl #3]
	cmp	x9, x11
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w10, [x19, x24, lsl #2]
	add	x22, x9, x22
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19, x24, lsl #2]
	add	x22, x11, x22
	b	LBB0_3
LBB0_13:
	mov	x22, #0
LBB0_14:
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_CODE_BOOKS,4,2             ; @DCA_CODE_BOOKS
	.comm	_ff_dca_quant_index_group_size,8,3 ; @ff_dca_quant_index_group_size
	.no_dead_strip	_set_best_code
.subsections_via_symbols
