	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_channels
_read_channels:                         ## @read_channels
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	$0, -88(%rbp)
	movq	%rdx, %rdi
	callq	_av_strdup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_16
## %bb.2:
	movq	%rax, %rdi
	movslq	%r14d, %r14
	movl	%ebx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	(,%r14,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-88(%rbp), %rdx
	callq	_av_strtok
	testq	%rax, %rax
	cmovneq	%rax, %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx,%r12), %rsi
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r15, %rdi
	callq	_count_coefficients
	movq	(%rbx,%r12), %rax
	movl	(%rax,%r14,4), %edi
	incl	%edi
	movl	$8, %esi
	callq	_av_calloc
	movq	16(%rbx,%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%rbx,%r12), %rax
	cmpq	$1, (%r13)
	movl	$2, %edi
	sbbl	$0, %edi
	imull	(%rax,%r14,4), %edi
	movl	$8, %esi
	callq	_av_calloc
	movq	8(%rbx,%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	8(%rbx,%r12), %rax
	movq	(%rax,%r14,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx,%r12), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	(%rbx,%r12), %rdx
	movl	(%rdx,%r14,4), %edx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_format@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi,%rax,4), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_read_zp_coefficients
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_read_tf_coefficients
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %r12
	movl	$0, %edi
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_5
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_15:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
LBB0_17:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"|"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_format,8,3                     ## @format
	.no_dead_strip	_read_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_channels
_read_channels:                         ; @read_channels
	.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	x22, x3
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0]
	str	xzr, [sp]
	mov	x0, x2
	bl	_av_strdup
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x24, #0
	mov	x20, #0
	sxtw	x25, w22
	mov	w8, #24
	umull	x26, w21, w8
	lsl	x27, x25, #2
	lsl	x28, x25, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x23, #8]
	mov	x2, sp
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_av_strtok
	cmp	x0, #0
	csel	x20, x20, x0, eq
	cbz	x20, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x22, x24
	ldr	x8, [x21]
	add	x1, x8, x27
	mov	x0, x20
	bl	_count_coefficients
	ldr	x8, [x21]
	ldr	w8, [x8, x27]
	add	w0, w8, #1
	mov	w1, #8
	bl	_av_calloc
	ldr	x8, [x21, #16]
	str	x0, [x8, x28]
	ldr	x8, [x21]
	ldr	w8, [x8, x27]
	ldr	x9, [x23]
	cmp	x9, #0
	mov	w9, #1
	cinc	w9, w9, ne
	mul	w0, w9, w8
	mov	w1, #8
	bl	_av_calloc
	ldr	x8, [x21, #8]
	str	x0, [x8, x28]
	ldr	x8, [x21, #8]
	ldr	x3, [x8, x28]
	cbz	x3, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x25, lsl #3]
	cbz	x8, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x22, x24]
	ldr	w2, [x9, x25, lsl #2]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x9, _format@GOTPAGE
Lloh3:
	ldr	x9, [x9, _format@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w4, [x9, x8, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_read_zp_coefficients
	mov	x22, x0
	tbz	w0, #31, LBB0_9
	b	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_read_tf_coefficients
	mov	x22, x0
	tbnz	w0, #31, LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	add	x24, x24, #24
	cmp	x26, x24
	b.ne	LBB0_3
LBB0_10:
	add	x0, sp, #8
	bl	_av_freep
	mov	w22, #0
	b	LBB0_16
LBB0_11:
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
LBB0_12:
	add	x0, sp, #8
	bl	_av_freep
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	add	x0, sp, #8
	bl	_av_freep
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_16
LBB0_15:
	add	x0, sp, #8
	bl	_av_freep
LBB0_16:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"|"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_format,8,3                     ; @format
	.no_dead_strip	_read_channels
.subsections_via_symbols
