	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aptx_quantized_parity
_aptx_quantized_parity:                 ## @aptx_quantized_parity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_NB_SUBBANDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.1:
	movq	8(%rdi), %rdx
	cmpl	$8, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_3:
	movl	%ecx, %esi
	andl	$-8, %esi
	movd	%eax, %xmm0
	leaq	-8(%rsi), %rdi
	movq	%rdi, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r8d
	andl	$3, %r8d
	cmpq	$24, %rdi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rax
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm2
	pxor	%xmm0, %xmm2
	movdqu	16(%rdx,%rdi,4), %xmm0
	pxor	%xmm1, %xmm0
	movdqu	32(%rdx,%rdi,4), %xmm1
	movdqu	48(%rdx,%rdi,4), %xmm3
	movdqu	64(%rdx,%rdi,4), %xmm4
	pxor	%xmm1, %xmm4
	pxor	%xmm2, %xmm4
	movdqu	80(%rdx,%rdi,4), %xmm2
	pxor	%xmm3, %xmm2
	pxor	%xmm0, %xmm2
	movdqu	96(%rdx,%rdi,4), %xmm0
	pxor	%xmm4, %xmm0
	movdqu	112(%rdx,%rdi,4), %xmm1
	pxor	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rax
	jne	LBB0_6
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(%rdx,%rdi,4), %rax
	addq	$16, %rax
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdi), %xmm2
	pxor	%xmm2, %xmm0
	movdqu	(%rax,%rdi), %xmm2
	pxor	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
LBB0_10:
	pxor	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pxor	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pxor	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rcx, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	(%rdx,%rsi,4), %eax
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_11
LBB0_12:
	andl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_SUBBANDS,4,2                ## @NB_SUBBANDS
	.no_dead_strip	_aptx_quantized_parity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aptx_quantized_parity
_aptx_quantized_parity:                 ; @aptx_quantized_parity
	.cfi_startproc
; %bb.0:
	ldr	w11, [x0]
Lloh0:
	adrp	x8, _NB_SUBBANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NB_SUBBANDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	w8, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w11
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	eor.16b	v1, v4, v1
	eor.16b	v0, v5, v0
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	eor.16b	v0, v0, v1
	eor3.16b	v0, v2, v0, v3
	ext.16b	v1, v0, v0, #8
	eor.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	eor	w11, w12, w11
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	eor	w11, w10, w11
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	and	w0, w11, #0x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_SUBBANDS,4,2                ; @NB_SUBBANDS
	.no_dead_strip	_aptx_quantized_parity
.subsections_via_symbols
