	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_paired_channels
_count_paired_channels:                 ## @count_paired_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rcx), %r8d
	xorl	%r9d, %r9d
	cmpl	%esi, %r8d
	jge	LBB0_14
## %bb.1:
	movslq	%r8d, %rax
	movq	_TYPE_CPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r11d
	movq	_AAC_CHANNEL_FRONT@GOTPCREL(%rip), %r10
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdi,%rax,4), %rbx
	addq	$8, %rbx
	xorl	%edi, %edi
	movl	(%r10), %r14d
	xorl	%edx, %r14d
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r9d
	xorl	$1, %edi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r8d
	addq	$12, %rbx
	cmpl	%r8d, %esi
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rbx)
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r11d, -8(%rbx)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	orl	%r14d, %eax
	setne	%al
	testl	%edi, %edi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %r9d
	xorl	%edi, %edi
	movl	$1, %eax
	jmp	LBB0_9
LBB0_10:
	movl	%esi, %r8d
LBB0_11:
	testl	%edi, %edi
	je	LBB0_14
## %bb.12:
	cmpl	%edx, (%r10)
	sete	%sil
	testl	%eax, %eax
	setne	%bl
	movl	$-1, %eax
	testb	%bl, %sil
	jne	LBB0_15
## %bb.13:
	movq	_AAC_CHANNEL_SIDE@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	je	LBB0_15
LBB0_14:
	movl	%r8d, (%rcx)
	movl	%r9d, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	$-1, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CPE,4,2                   ## @TYPE_CPE
	.comm	_AAC_CHANNEL_FRONT,4,2          ## @AAC_CHANNEL_FRONT
	.comm	_AAC_CHANNEL_SIDE,4,2           ## @AAC_CHANNEL_SIDE
	.no_dead_strip	_count_paired_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_paired_channels
_count_paired_channels:                 ; @count_paired_channels
	.cfi_startproc
; %bb.0:
	ldr	w9, [x3]
	cmp	w9, w1
	b.ge	LBB0_9
; %bb.1:
	mov	x8, x0
	mov	w11, #0
	mov	w12, #0
	mov	w0, #0
	sxtw	x15, w9
Lloh0:
	adrp	x10, _TYPE_CPE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TYPE_CPE@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x10]
Lloh3:
	adrp	x10, _AAC_CHANNEL_FRONT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AAC_CHANNEL_FRONT@GOTPAGEOFF]
	ldr	w14, [x10]
	mov	w16, #12
	madd	x8, x15, x16, x8
	add	x8, x8, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
	eor	w11, w11, #0x1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	add	x8, x8, #12
	cmp	w1, w9
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x8]
	cmp	w15, w2
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w15, [x8, #-8]
	cmp	w15, w13
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w14, w2
	ccmp	w12, #0, #0, eq
	cset	w12, ne
	cbz	w11, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w12, #0, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #0
	add	w0, w0, #2
	mov	w12, #1
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
	mov	x9, x1
LBB0_11:
	cbz	w11, LBB0_14
; %bb.12:
	ldr	w8, [x10]
	cmp	w12, #0
	ccmp	w8, w2, #0, ne
Lloh5:
	adrp	x8, _AAC_CHANNEL_SIDE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AAC_CHANNEL_SIDE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ccmp	w8, w2, #4, ne
	b.ne	LBB0_14
LBB0_13:
	mov	w0, #-1
	ret
LBB0_14:
	str	w9, [x3]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CPE,4,2                   ; @TYPE_CPE
	.comm	_AAC_CHANNEL_FRONT,4,2          ; @AAC_CHANNEL_FRONT
	.comm	_AAC_CHANNEL_SIDE,4,2           ; @AAC_CHANNEL_SIDE
	.no_dead_strip	_count_paired_channels
.subsections_via_symbols
