	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aptx_decode_channel
_aptx_decode_channel:                   ## @aptx_decode_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	%rsi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_NB_SUBBANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.1:
	movq	8(%rdi), %r10
	xorl	%esi, %esi
	cmpl	$8, %r8d
	jb	LBB0_11
## %bb.2:
	leaq	-32(%rbp), %rax
	subq	%r10, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.3:
	movl	%r8d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r9d
	andl	$3, %r9d
	cmpq	$24, %rcx
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r10,%rcx,4), %xmm0
	movups	16(%r10,%rcx,4), %xmm1
	movaps	%xmm0, -32(%rbp,%rcx,4)
	movaps	%xmm1, -16(%rbp,%rcx,4)
	movups	32(%r10,%rcx,4), %xmm0
	movups	48(%r10,%rcx,4), %xmm1
	movaps	%xmm0, (%rbp,%rcx,4)
	movaps	%xmm1, 16(%rbp,%rcx,4)
	movups	64(%r10,%rcx,4), %xmm0
	movups	80(%r10,%rcx,4), %xmm1
	movaps	%xmm0, 32(%rbp,%rcx,4)
	movaps	%xmm1, 48(%rbp,%rcx,4)
	movups	96(%r10,%rcx,4), %xmm0
	movups	112(%r10,%rcx,4), %xmm1
	movaps	%xmm0, 64(%rbp,%rcx,4)
	movaps	%xmm1, 80(%rbp,%rcx,4)
	addq	$32, %rcx
	addq	$-4, %rax
	jne	LBB0_6
LBB0_7:
	testq	%r9, %r9
	je	LBB0_10
## %bb.8:
	leaq	-16(,%rcx,4), %r11
	addq	%rbp, %r11
	leaq	(%r10,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rax), %xmm0
	movups	(%rcx,%rax), %xmm1
	movaps	%xmm0, -16(%r11,%rax)
	movaps	%xmm1, (%r11,%rax)
	addq	$32, %rax
	cmpq	%rax, %r9
	jne	LBB0_9
LBB0_10:
	cmpq	%r8, %rsi
	je	LBB0_15
LBB0_11:
	movq	%rsi, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rcx
	andq	$3, %rcx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rsi,4), %eax
	movl	%eax, -32(%rbp,%rsi,4)
	incq	%rsi
	decq	%rcx
	jne	LBB0_12
LBB0_13:
	cmpq	$3, %r9
	jb	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rsi,4), %eax
	movl	%eax, -32(%rbp,%rsi,4)
	movl	4(%r10,%rsi,4), %eax
	movl	%eax, -28(%rbp,%rsi,4)
	movl	8(%r10,%rsi,4), %eax
	movl	%eax, -24(%rbp,%rsi,4)
	movl	12(%r10,%rsi,4), %eax
	movl	%eax, -20(%rbp,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_14
LBB0_15:
	leaq	-32(%rbp), %rsi
	callq	_aptx_qmf_tree_synthesis
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_SUBBANDS,4,2                ## @NB_SUBBANDS
	.no_dead_strip	_aptx_decode_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aptx_decode_channel
_aptx_decode_channel:                   ; @aptx_decode_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	mov	x2, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _NB_SUBBANDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NB_SUBBANDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #8]
	add	x11, sp, #8
	cmp	w8, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x12, x11, x10
	cmp	x12, #64
	b.lo	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff0
	add	x12, sp, #8
	add	x12, x12, #32
	add	x13, x10, #32
	mov	x14, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	lsl	x12, x9, #2
	add	x11, x11, x12
	add	x10, x10, x12
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	str	w9, [x11], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	add	x1, sp, #8
	bl	_aptx_qmf_tree_synthesis
	ldur	x8, [x29, #-8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_SUBBANDS,4,2                ; @NB_SUBBANDS
	.no_dead_strip	_aptx_decode_channel
.subsections_via_symbols
