	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chs_alloc_msb_band_data
_chs_alloc_msb_band_data:               ## @chs_alloc_msb_band_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rsi), %edx
	xorl	%eax, %eax
	cmpl	$2, %edx
	jl	LBB0_2
## %bb.1:
	movq	_DCA_XLL_DECI_HISTORY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movslq	(%rdi), %rbx
	movslq	%eax, %r15
	addq	%r15, %rbx
	movq	16(%r14), %rdi
	movq	24(%r14), %rsi
	imull	4(%r14), %edx
	imull	%ebx, %edx
	shll	$2, %edx
	callq	_av_fast_malloc
	movq	16(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movl	(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_16
## %bb.4:
	leaq	(%rax,%r15,4), %rax
	movl	4(%r14), %r11d
	movq	%r11, %r9
	decq	%r9
	movl	%r11d, %r15d
	andl	$3, %r15d
	movl	%r11d, %r12d
	andl	$-4, %r12d
	movq	%rbx, %r8
	shlq	$4, %r8
	shlq	$2, %rbx
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rcx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	movq	%rcx, %rax
	cmpq	%r10, %rdx
	je	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	testl	%r11d, %r11d
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$3, %r9
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
                                        ## implicit-def: $rcx
	xorl	%esi, %esi
	testq	%r15, %r15
	jne	LBB0_13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rcx
	movq	8(%r14), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rcx, (%rax,%rsi,8)
	movq	8(%r14), %rax
	movq	(%rax,%rdx,8), %rdi
	leaq	(%rcx,%rbx), %rax
	movq	%rax, 8(%rdi,%rsi,8)
	movq	8(%r14), %rdi
	movq	(%rdi,%rdx,8), %rdi
	addq	%rbx, %rax
	movq	%rax, 16(%rdi,%rsi,8)
	movq	8(%r14), %rdi
	movq	(%rdi,%rdx,8), %rdi
	addq	%rbx, %rax
	movq	%rax, 24(%rdi,%rsi,8)
	addq	$4, %rsi
	addq	%rbx, %rax
	cmpq	%rsi, %r12
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%r8, %rcx
	movq	%rcx, %rax
	testq	%r15, %r15
	je	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rcx, (%rax,%rsi,8)
	incq	%rsi
	addq	%rbx, %rcx
	decq	%rdi
	jne	LBB0_14
	jmp	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_XLL_DECI_HISTORY_MAX,4,2   ## @DCA_XLL_DECI_HISTORY_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_chs_alloc_msb_band_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chs_alloc_msb_band_data
_chs_alloc_msb_band_data:               ; @chs_alloc_msb_band_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _DCA_XLL_DECI_HISTORY_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCA_XLL_DECI_HISTORY_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x1]
	cmp	w9, #1
	csel	w21, w8, wzr, gt
	ldr	w8, [x0]
	add	w20, w8, w21
	ldp	x0, x1, [x1, #16]
	mul	w8, w9, w10
	mul	w8, w8, w20
	lsl	w2, w8, #2
	bl	_av_fast_malloc
	ldr	x8, [x19, #16]
	ldr	x10, [x8]
	cbz	x10, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x9, #0
	add	x10, x10, w21, sxtw #2
	ldr	w11, [x19, #4]
	lsl	x12, x11, #3
	sbfiz	x13, x20, #2, #32
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w11, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x14, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x19, #8]
	ldr	x15, [x15, x9, lsl #3]
	str	x10, [x15, x14]
	add	x14, x14, #8
	add	x10, x10, x13
	cmp	x12, x14
	b.ne	LBB0_6
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_XLL_DECI_HISTORY_MAX,4,2   ; @DCA_XLL_DECI_HISTORY_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_chs_alloc_msb_band_data
.subsections_via_symbols
