	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on2avc_read_channel_data
_on2avc_read_channel_data:              ## @on2avc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_on2avc_decode_band_types
	testl	%eax, %eax
	js	LBB0_14
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_on2avc_decode_band_scales
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	_ON2AVC_SUBFRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.3:
	movl	12(%r15), %eax
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r15), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	%eax, %edx
	incl	%esi
	cmpl	%ecx, %esi
	jge	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%eax, %eax
	jle	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movslq	%edx, %r13
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_on2avc_decode_pairs
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	leaq	(%r12,%rbx,4), %r12
	movslq	12(%r15), %rax
	incq	%r13
	cmpq	%rax, %r14
	jge	LBB0_4
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r15), %rax
	movslq	4(%rax,%r14,4), %rbx
	movslq	(%rax,%r14,4), %rax
	incq	%r14
	movq	24(%r15), %rcx
	subq	%rax, %rbx
	movl	(%rcx,%r13,4), %r8d
	testl	%r8d, %r8d
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	32(%r15), %rax
	movl	(%rax,%r13,4), %r9d
	movq	%r15, %rdi
	cmpl	$8, %r8d
	jg	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_on2avc_decode_quads
	jmp	LBB0_9
LBB0_14:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ON2AVC_SUBFRAME_SIZE,4,2       ## @ON2AVC_SUBFRAME_SIZE
	.no_dead_strip	_on2avc_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 on2avc_read_channel_data
_on2avc_read_channel_data:              ; @on2avc_read_channel_data
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_on2avc_decode_band_types
	tbnz	w0, #31, LBB0_14
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_on2avc_decode_band_scales
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	x8, [x20]
	ldr	x21, [x8, w21, sxtw #3]
Lloh0:
	adrp	x8, _ON2AVC_SUBFRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ON2AVC_SUBFRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w9, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.3:
	mov	w23, #0
	mov	w24, #0
	ldr	w8, [x20, #12]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x20, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w8, w23
	add	w24, w24, #1
	cmp	w24, w9
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, #0
	sbfiz	x26, x23, #2, #32
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	bl	_on2avc_decode_pairs
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #1
	add	x21, x21, w22, sxtw #2
	ldrsw	x8, [x20, #12]
	cmp	x25, x8
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x8, x25, #2
	ldp	x9, x10, [x20, #16]
	add	x9, x9, x8
	ldp	w9, w11, [x9]
	sub	w22, w11, w9
	add	x9, x10, x26
	ldr	w4, [x9, x8]
	cbz	w4, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x20, #32]
	add	x8, x8, x26
	ldr	w5, [x8, x25, lsl #2]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	cmp	w4, #8
	b.gt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	bl	_on2avc_decode_quads
	b	LBB0_9
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ON2AVC_SUBFRAME_SIZE,4,2       ; @ON2AVC_SUBFRAME_SIZE
	.no_dead_strip	_on2avc_read_channel_data
.subsections_via_symbols
