	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_sequence_buffers
_alloc_sequence_buffers:                ## @alloc_sequence_buffers
	.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	%rdi, %r15
	movl	40(%rdi), %edi
	movl	$4, %esi
	callq	_DIVRNDUP
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	44(%r15), %edi
	movl	$4, %esi
	callq	_DIVRNDUP
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAX_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%r15), %edx
	movl	%ebx, %esi
	movl	%edx, %ecx
	sarl	%cl, %ebx
	movl	4(%r15), %eax
	movl	%eax, %ecx
	sarl	%cl, %esi
	movl	40(%r15), %r14d
	movl	%edx, %ecx
	sarl	%cl, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r15), %r14d
	xorl	%eax, %eax
	movl	%ebx, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	44(%r15), %r13d
	movl	%eax, %ecx
	sarl	%cl, %r13d
	movq	_MAX_DWT_LEVELS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	movl	%esi, %r15d
	shrl	$31, %r15d
	addl	%esi, %r15d
	sarl	%r15d
	movl	%r15d, %esi
	callq	_FFMAX
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MAX_DWT_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_CALC_PADDING
	movl	%eax, %edi
	movl	$8, %esi
	callq	_FFALIGN
	movl	%eax, %r14d
	movq	_MAX_DWT_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_CALC_PADDING
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	addl	%r13d, %r15d
	addl	%eax, %r15d
	addl	%r14d, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movzbl	8(%rax), %ecx
	movl	$2, %esi
	shll	%cl, %esi
	imull	%r15d, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_av_mallocz_array
	movq	32(%r15), %rcx
	movl	%eax, 8(%rcx,%r12)
	leal	16(%r14), %edi
	movzbl	8(%r15), %ecx
	movl	$2, %esi
	shll	%cl, %esi
	callq	_av_malloc_array
	movq	32(%r15), %rdx
	movq	%rax, (%rdx,%r12)
	movzbl	8(%r15), %ecx
	movl	$2, %esi
	shll	%cl, %esi
	movl	8(%rdx,%r12), %ecx
	imull	%r14d, %esi
	imull	%r13d, %esi
	addl	%ecx, %esi
	movslq	%esi, %rsi
	movq	%rsi, 16(%rdx,%r12)
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %r12
	cmpq	$72, %r12
	jne	LBB0_2
## %bb.8:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_av_malloc_array
	movq	%rax, 24(%r15)
	shll	$4, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_av_malloc_array
	movq	%rax, 16(%r15)
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.9:
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BLOCKSIZE,4,2              ## @MAX_BLOCKSIZE
	.comm	_MAX_DWT_LEVELS,4,2             ## @MAX_DWT_LEVELS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_sequence_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_sequence_buffers
_alloc_sequence_buffers:                ; @alloc_sequence_buffers
	.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	x19, x0
	ldr	w0, [x0, #40]
	mov	w1, #4
	bl	_DIVRNDUP
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w0, [x19, #44]
	mov	w1, #4
	bl	_DIVRNDUP
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x26, #0
Lloh0:
	adrp	x28, _MAX_DWT_LEVELS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MAX_DWT_LEVELS@GOTPAGEOFF]
	mov	w20, #1
	mov	w21, #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
Lloh2:
	adrp	x8, _MAX_BLOCKSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_BLOCKSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w27, [x8]
	cbz	x26, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w10, w8, [x19]
	asr	w9, w27, w8
	asr	w27, w27, w10
	ldr	w11, [x19, #40]
	asr	w22, w11, w10
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
	ldr	w22, [x19, #40]
	mov	x9, x27
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w10, [x19, #44]
	asr	w23, w10, w8
	ldr	w8, [x28]
	lsl	w0, w20, w8
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w24, w8, #1
	mov	x1, x24
	bl	_FFMAX
	mov	x25, x0
	ldr	w1, [x28]
	mov	x0, x22
	bl	_CALC_PADDING
	mov	w1, #8
	bl	_FFALIGN
	mov	x22, x0
	ldr	w1, [x28]
	mov	x0, x23
	bl	_CALC_PADDING
	add	w8, w25, w24
	add	w8, w8, w0
	add	w0, w22, w27
	ldr	w9, [x19, #8]
	lsl	w9, w21, w9
	mul	w1, w8, w9
	bl	_av_mallocz_array
	ldr	x8, [x19, #32]
	add	x8, x8, x26
	str	w0, [x8, #8]
	add	w0, w22, #16
	ldr	w8, [x19, #8]
	lsl	w1, w21, w8
	bl	_av_malloc_array
	ldr	x8, [x19, #32]
	add	x8, x8, x26
	str	x0, [x8]
	ldr	w9, [x8, #8]
	mul	w10, w22, w25
	ldr	w11, [x19, #8]
	lsl	w11, w21, w11
	madd	w10, w10, w11, w9
	sxtw	x10, w10
	str	x10, [x8, #16]
	cbz	w9, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x26, x26, #24
	cmp	x26, #72
	b.ne	LBB0_1
; %bb.7:
	ldp	w21, w20, [sp, #8]              ; 8-byte Folded Reload
	mov	x0, x20
	mov	x1, x21
	bl	_av_malloc_array
	str	x0, [x19, #24]
	lsl	w1, w21, #4
	mov	x0, x20
	bl	_av_malloc_array
	str	x0, [x19, #16]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.8:
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #0
	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
	ret
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BLOCKSIZE,4,2              ; @MAX_BLOCKSIZE
	.comm	_MAX_DWT_LEVELS,4,2             ; @MAX_DWT_LEVELS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_sequence_buffers
.subsections_via_symbols
