	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_channel_data
_read_channel_data:                     ## @read_channel_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	%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
	leaq	16(%rdi), %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.5:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	addq	$40, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	addq	$48, %rbx
	cmpl	%r14d, %r15d
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	callq	_av_ceil_log2
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_bits_long
	movl	%eax, -40(%rbx)
	cmpl	%r15d, %eax
	jae	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, -8(%rbx)
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$16, %edx
	callq	_als_weighting
	movq	-16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$14, %edx
	callq	_als_weighting
	movq	-16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$16, %edx
	callq	_als_weighting
	movq	-16(%rbx), %rcx
	movq	%rax, 16(%rcx)
	cmpq	$0, -8(%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$16, %edx
	callq	_als_weighting
	movq	-16(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$16, %edx
	callq	_als_weighting
	movq	-16(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$16, %edx
	callq	_als_weighting
	movq	-16(%rbx), %rcx
	movq	%rax, 40(%rcx)
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, -24(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	addq	$-3, %rsi
	movq	%r13, %rdi
	callq	_get_bits
	addq	$3, %rax
	movq	%rax, -32(%rbx)
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
LBB0_2:
	cmpl	%r15d, %r14d
	jne	LBB0_3
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_9
LBB0_3:
	movq	%r13, %rdi
	callq	_align_get_bits
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_9:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid master channel.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Damaged channel data.\n"

	.no_dead_strip	_read_channel_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_channel_data
_read_channel_data:                     ; @read_channel_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20], #16
	ldr	w21, [x8]
	cbz	w21, LBB0_8
; %bb.1:
	mov	x22, x2
	mov	w23, #0
	add	x24, x1, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	add	x24, x24, #48
	cmp	w21, w23
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x24, #16]
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_av_ceil_log2
	mov	x1, x0
	mov	x0, x20
	bl	_get_bits_long
	stur	w0, [x24, #-24]
	cmp	w0, w21
	b.hs	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w22
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x24, #8]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #16
	bl	_als_weighting
	ldr	x8, [x24]
	str	x0, [x8]
	mov	x0, x20
	mov	w1, #2
	mov	w2, #14
	bl	_als_weighting
	ldr	x8, [x24]
	str	x0, [x8, #8]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #16
	bl	_als_weighting
	ldr	x8, [x24]
	str	x0, [x8, #16]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #16
	bl	_als_weighting
	ldr	x8, [x24]
	str	x0, [x8, #24]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #16
	bl	_als_weighting
	ldr	x8, [x24]
	str	x0, [x8, #32]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #16
	bl	_als_weighting
	ldr	x8, [x24]
	str	x0, [x8, #40]
	mov	x0, x20
	bl	_get_bits1
	stur	x0, [x24, #-8]
	ldr	x8, [x19, #8]
	sub	x1, x8, #3
	mov	x0, x20
	bl	_get_bits
	add	x8, x0, #3
	stur	x8, [x24, #-16]
	b	LBB0_2
LBB0_8:
	mov	w23, #0
LBB0_9:
	cmp	w23, w21
	b.ne	LBB0_11
LBB0_10:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_align_get_bits
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid master channel.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Damaged channel data.\n"

	.no_dead_strip	_read_channel_data
.subsections_via_symbols
