	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_array
_setup_array:                           ## @setup_array
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_av_sample_fmt_is_planar
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movzbl	%r12b, %edi
	callq	_av_get_bytes_per_sample
	movq	_SWR_CH_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.2:
	imull	%r15d, %eax
	movslq	%eax, %r8
	leaq	-1(%r10), %rax
	movl	%r10d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_10:
	movq	%r14, (%rbx)
	jmp	LBB0_9
LBB0_4:
	andl	$-4, %r10d
	leaq	(,%r8,8), %r11
	movq	%r8, %rax
	shlq	$4, %rax
	leaq	(,%r8,4), %rcx
	leaq	(%rcx,%rcx,2), %r15
	xorl	%esi, %esi
	movq	%r14, %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, (%rbx,%rsi,8)
	leaq	(%rdi,%rcx), %rdx
	movq	%rdx, 8(%rbx,%rsi,8)
	leaq	(%rdi,%r11), %rdx
	movq	%rdx, 16(%rbx,%rsi,8)
	leaq	(%rdi,%r15), %rdx
	movq	%rdx, 24(%rbx,%rsi,8)
	addq	$4, %rsi
	addq	%rax, %rdi
	cmpq	%rsi, %r10
	jne	LBB0_5
LBB0_6:
	testq	%r9, %r9
	je	LBB0_9
## %bb.7:
	leaq	(%rbx,%rsi,8), %rax
	imulq	%r8, %rsi
	leaq	(%r14,%rsi,4), %rcx
	shlq	$2, %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, (%rax,%rdx,8)
	incq	%rdx
	addq	%r8, %rcx
	cmpq	%rdx, %r9
	jne	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWR_CH_MAX,4,2                 ## @SWR_CH_MAX
	.no_dead_strip	_setup_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_array
_setup_array:                           ; @setup_array
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_av_sample_fmt_is_planar
	cbz	x0, LBB0_4
; %bb.1:
	and	w0, w22, #0xff
	bl	_av_get_bytes_per_sample
Lloh0:
	adrp	x8, _SWR_CH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWR_CH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	mul	w8, w0, w21
	sxtw	x10, w8
	lsl	x8, x10, #2
	cmp	w9, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	b	LBB0_8
LBB0_4:
	str	x20, [x19]
	b	LBB0_10
LBB0_5:
	and	x11, x9, #0xfffffffc
	add	x12, x10, x10, lsl #1
	lsl	x12, x12, #2
	lsl	x13, x10, #4
	lsl	x14, x10, #3
	add	x15, x19, #16
	mov	x16, x11
	mov	x17, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x17, x8
	add	x1, x17, x14
	add	x2, x17, x12
	stp	x17, x0, [x15, #-16]
	stp	x1, x2, [x15], #32
	add	x17, x17, x13
	subs	x16, x16, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x9
	b.eq	LBB0_10
LBB0_8:
	mul	x10, x11, x10
	add	x10, x20, x10, lsl #2
	add	x12, x19, x11, lsl #3
	sub	x9, x9, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	x10, [x12], #8
	add	x10, x10, x8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SWR_CH_MAX,4,2                 ; @SWR_CH_MAX
	.no_dead_strip	_setup_array
.subsections_via_symbols
