	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function alloc_slice
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_alloc_slice:                           ## @alloc_slice
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	16(%rbp), %r15d
	movl	%r8d, (%rdi)
	movl	%r9d, 4(%rdi)
	movl	%esi, 8(%rdi)
	movl	%r15d, 12(%rdi)
	movq	$0, 24(%rdi)
	xorl	%eax, %eax
	testl	%r15d, %r15d
	setne	%al
	leal	(%rax,%rax), %r13d
	incl	%r13d
	movl	%r13d, %r12d
	imull	%edx, %r12d
	movl	$8, %edi
	movl	%r12d, %esi
	callq	_av_mallocz_array
                                        ## kill: def $eax killed $eax def $rax
	movq	16(%rbx), %rcx
	movl	%eax, 24(%rcx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	leal	(%rax,%r14,2), %eax
	cltq
	cmovneq	%rax, %rdx
	movq	%rdx, 32(%rcx)
	movl	%r14d, (%rcx)
	imull	-48(%rbp), %r13d                ## 4-byte Folded Reload
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rcx)
	movl	$8, %edi
	movl	%r13d, %esi
	callq	_av_mallocz_array
                                        ## kill: def $eax killed $eax def $rax
	movq	16(%rbx), %rcx
	movl	%eax, 64(%rcx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leal	(%rax,%rsi,2), %eax
	cltq
	cmovneq	%rax, %rdx
	movq	%rdx, 72(%rcx)
	movl	%esi, 40(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rcx)
	movl	$8, %edi
	movl	%r13d, %esi
	callq	_av_mallocz_array
	movq	16(%rbx), %rcx
	movl	%eax, 104(%rcx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addl	%esi, %eax
	addl	%esi, %eax
	xorl	%edx, %edx
	testl	%r15d, %r15d
	cltq
	cmovneq	%rax, %rdx
	movq	%rdx, 112(%rcx)
	movl	%esi, 80(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%rcx)
	movl	$8, %edi
	movl	%r12d, %esi
	callq	_av_mallocz_array
	movq	16(%rbx), %rcx
	movl	%eax, 144(%rcx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	addl	%r14d, %eax
	addl	%r14d, %eax
	xorl	%edx, %edx
	testl	%r15d, %r15d
	cltq
	cmovneq	%rax, %rdx
	movq	%rdx, 152(%rcx)
	movl	%r14d, 120(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 128(%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_slice
_alloc_slice:                           ; @alloc_slice
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x6
	mov	x22, x3
	mov	x19, x2
	mov	x21, x0
	stp	w4, w5, [x0]
	stp	w1, w6, [x0, #8]
	str	xzr, [x0, #24]
	cmp	w6, #0
	mov	w8, #3
	csinc	w24, w8, wzr, ne
	mul	w23, w24, w2
	mov	w0, #8
	mov	x1, x23
	bl	_av_mallocz_array
	ldr	x8, [x21, #16]
	str	w0, [x8, #24]
	cbz	w0, LBB0_5
; %bb.1:
	lsl	w25, w19, #1
	add	w9, w0, w25
	sxtw	x9, w9
	cmp	w20, #0
	csel	x9, xzr, x9, eq
	str	x9, [x8, #32]
	str	w19, [x8]
	mul	w24, w24, w22
	stp	xzr, xzr, [x8, #8]
	mov	w0, #8
	mov	x1, x24
	bl	_av_mallocz_array
	ldr	x8, [x21, #16]
	str	w0, [x8, #64]
	cbz	w0, LBB0_5
; %bb.2:
	lsl	w26, w22, #1
	add	w9, w0, w26
	sxtw	x9, w9
	cmp	w20, #0
	csel	x9, xzr, x9, eq
	str	x9, [x8, #72]
	str	w22, [x8, #40]
	stp	xzr, xzr, [x8, #48]
	mov	w0, #8
	mov	x1, x24
	bl	_av_mallocz_array
	ldr	x8, [x21, #16]
	str	w0, [x8, #104]
	cbz	w0, LBB0_5
; %bb.3:
	add	w9, w0, w26
	sxtw	x9, w9
	cmp	w20, #0
	csel	x9, xzr, x9, eq
	str	x9, [x8, #112]
	str	w22, [x8, #80]
	stp	xzr, xzr, [x8, #88]
	mov	w0, #8
	mov	x1, x23
	bl	_av_mallocz_array
	ldr	x8, [x21, #16]
	str	w0, [x8, #144]
	cbz	w0, LBB0_5
; %bb.4:
	add	w9, w0, w25
	sxtw	x9, w9
	cmp	w20, #0
	csel	x9, xzr, x9, eq
	str	x9, [x8, #152]
	str	w19, [x8, #120]
	stp	xzr, xzr, [x8, #128]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_slice
.subsections_via_symbols
