	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capidtmf_goertzel_result
_capidtmf_goertzel_result:              ## @capidtmf_goertzel_result
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rdi,%rax,8), %rbx
	xorl	%r12d, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	negq	%rbx
	movzwl	%bx, %edx
	movzwl	%r9w, %r14d
	movl	%edx, %eax
	imull	%r14d, %eax
	movzwl	%ax, %r8d
	negq	%r8
	shrl	$16, %eax
	shrq	$16, %rbx
	movl	%r14d, %esi
	imull	%ebx, %esi
	movq	%rdi, %r11
	movzwl	%si, %edi
	addl	%eax, %edi
	sarl	$16, %esi
	shrq	$16, %r9
	imull	%r9d, %edx
	movzwl	%dx, %ecx
	addl	%edi, %ecx
	movq	%r11, %rdi
	negq	%rcx
	sarl	$16, %edx
	addl	%esi, %edx
	negl	%edx
	movslq	%edx, %rsi
	imull	%r9d, %ebx
	movslq	%ebx, %rax
	subq	%rax, %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %r11
	movq	%r8, %r15
	negq	%r15
	movq	%rcx, %r13
	negq	%r13
	movq	%rsi, %rdx
	negq	%rdx
	testq	%r10, %r10
	cmovnsq	%r8, %r15
	cmovnsq	%rcx, %r13
	cmovnsq	%rsi, %rdx
	movq	%rdi, %rcx
	negq	%rcx
	cmovsq	%rdi, %rcx
	movzwl	%cx, %eax
	movl	%eax, %r10d
	imull	%r10d, %r10d
	movzwl	%r10w, %edi
	movl	%r14d, %ebx
	imull	%r14d, %ebx
	movzwl	%bx, %esi
	addl	%edi, %esi
	addq	%r15, %rsi
	imull	%r14d, %r9d
	shrq	$16, %rcx
	imull	%ecx, %eax
	imull	%ecx, %ecx
	imull	%r11d, %r11d
	addq	%rcx, %r11
	movzwl	%ax, %ecx
	sarl	$15, %eax
	andl	$-2, %eax
	cltq
	addq	%rax, %r11
	movzwl	%r9w, %eax
	sarl	$15, %r9d
	andl	$-2, %r9d
	movslq	%r9d, %rdi
	addq	%rdi, %r11
	addq	%rdx, %r11
	shrl	$16, %r10d
	leal	(%r10,%rcx,2), %ecx
	shrl	$16, %ebx
	addl	%ebx, %ecx
	leal	(%rcx,%rax,2), %eax
	addq	%r13, %rax
	movq	%rsi, %rcx
	sarq	$16, %rcx
	addq	%rcx, %rax
	movq	%rax, %rcx
	sarq	$16, %rcx
	addq	%r11, %rcx
	movzwl	%si, %edx
	shlq	$16, %rax
	orq	%rdx, %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, (%rdi,%r12,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, (%rbx,%r12,8)
	incq	%r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%r12,8), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rax
	movq	%rax, %rcx
	sarq	%rcx
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	andq	$-2, %rax
	movq	%rdi, %rsi
	negq	%rsi
	movq	%rsi, %rdx
	sarq	$16, %rdx
	imulq	%rax, %rdx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	negq	%rcx
	movq	%rdi, %rsi
	negq	%rsi
	movq	%rsi, %rdx
	sarq	$15, %rdx
	andq	$-2, %rdx
	imulq	%rcx, %rdx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %r10
	movzwl	%si, %esi
	imull	%ecx, %esi
	sarl	$15, %esi
	movslq	%esi, %rbx
	movq	%r10, %r9
	negq	%r9
	cmovsq	%r10, %r9
	addq	%rdx, %rbx
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movzwl	%bx, %edx
	movzwl	%r9w, %r14d
	movl	%edx, %ecx
	imull	%r14d, %ecx
	movzwl	%cx, %r8d
	shrl	$16, %ecx
	shrq	$16, %rbx
	movl	%r14d, %esi
	imull	%ebx, %esi
	movzwl	%si, %eax
	addl	%ecx, %eax
	sarl	$16, %esi
	shrq	$16, %r9
	imull	%r9d, %edx
	movzwl	%dx, %ecx
	addl	%eax, %ecx
	sarl	$16, %edx
	addl	%esi, %edx
	movslq	%edx, %rax
	imull	%r9d, %ebx
	movslq	%ebx, %rsi
	addq	%rax, %rsi
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT,4,2 ## @CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT
	.no_dead_strip	_capidtmf_goertzel_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capidtmf_goertzel_result
_capidtmf_goertzel_result:              ; @capidtmf_goertzel_result
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
	lsl	x9, x9, #3
	add	x10, x0, x9
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	neg	x16, x16
	and	w17, w16, #0xffff
	and	w13, w14, #0xffff
	mul	w2, w17, w13
	and	w15, w2, #0xffff
	neg	x15, x15
	lsr	w2, w2, #16
	lsr	x3, x16, #16
	mul	w16, w13, w3
	add	w2, w2, w16, uxth
	asr	w4, w16, #16
	lsr	x14, x14, #16
	mul	w17, w17, w14
	add	w16, w2, w17, uxth
	neg	x16, x16
	add	w17, w4, w17, asr #16
	neg	w17, w17
	sxtw	x17, w17
	mul	w2, w14, w3
	sub	x17, x17, w2, sxtw
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, #0
	cneg	x12, x15, lt
	cneg	x15, x16, lt
	cneg	x16, x17, lt
	cmp	x11, #0
	cneg	x11, x11, mi
	and	w17, w11, #0xffff
	mul	w2, w17, w17
	lsr	x11, x11, #16
	mul	w17, w17, w11
	ubfiz	w3, w17, #1, #16
	asr	w17, w17, #15
	and	w17, w17, #0xfffffffe
	mul	w11, w11, w11
	mul	w4, w13, w13
	and	w5, w4, #0xffff
	add	w5, w5, w2, uxth
	add	x12, x12, x5
	mul	w13, w13, w14
	ubfiz	w5, w13, #1, #16
	asr	w13, w13, #15
	and	w13, w13, #0xfffffffe
	mul	w14, w14, w14
	add	w2, w3, w2, lsr #16
	add	w2, w2, w4, lsr #16
	add	w2, w2, w5
	add	x15, x15, x2
	add	x15, x15, x12, asr #16
	add	x11, x14, x11
	add	x11, x11, w17, sxtw
	add	x11, x11, w13, sxtw
	add	x11, x11, x16
	add	x11, x11, x15, asr #16
	bfi	x12, x15, #16, #48
	str	x12, [x0, x8]
	str	x11, [x10, x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0, x8]
	ldr	x12, [x10, x8]
	ldr	x13, [x1, x8]
	asr	x14, x13, #1
	neg	x15, x11
	asr	x15, x15, #15
	and	x15, x15, #0xfffffffffffffffe
	mneg	x15, x14, x15
	and	x16, x13, #0xfffffffffffffffe
	neg	x17, x11
	asr	x2, x17, #16
	mul	x16, x16, x2
	tst	x13, #0x8000000000000000
	cneg	x13, x14, ne
	csneg	x14, x17, x11, eq
	csel	x15, x15, x16, ne
	and	w14, w14, #0xffff
	mul	w13, w14, w13
	asr	w13, w13, #15
	add	x16, x15, w13, sxtw
	cmp	x12, #0
	cneg	x14, x12, mi
	tbnz	x16, #63, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w17, w16, #0xffff
	and	w13, w14, #0xffff
	mul	w2, w17, w13
	and	w15, w2, #0xffff
	lsr	w2, w2, #16
	lsr	x3, x16, #16
	mul	w16, w13, w3
	add	w2, w2, w16, uxth
	asr	w4, w16, #16
	lsr	x14, x14, #16
	mul	w17, w17, w14
	add	w16, w2, w17, uxth
	add	w17, w4, w17, asr #16
	mul	w2, w14, w3
	sxtw	x2, w2
	add	x17, x2, w17, sxtw
	b	LBB0_3
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT,4,2 ; @CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT
	.no_dead_strip	_capidtmf_goertzel_result
.subsections_via_symbols
