	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capidtmf_goertzel_loop
_capidtmf_goertzel_loop:                ## @capidtmf_goertzel_loop
	.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), %r11d
	xorl	%esi, %esi
	cmpl	$2, %r11d
	jl	LBB0_22
## %bb.1:
	leal	-1(%r11), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-1(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	andq	$-2, %r12
	xorl	%r15d, %r15d
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, (%rdi,%r15,8)
	movq	%r8, (%rdi,%r14,8)
	incq	%r15
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%rdi,%r15,8), %rax
	leaq	(%r15,%r11), %r14
	movq	(%rdi,%r14,8), %r8
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi,%r15,8), %r13
	movq	%r13, %r9
	sarq	%r9
	andq	$-2, %r13
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rcx, %rcx
	jle	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	movq	%rax, %r10
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movswq	(%rdx,%rsi,2), %r11
	movq	%r10, %rbx
	sarq	$16, %rbx
	imulq	%r13, %rbx
	subq	%r8, %rbx
	movzwl	%r10w, %eax
	imull	%r9d, %eax
	sarl	$15, %eax
	movslq	%eax, %r8
	addq	%rbx, %r8
	addq	%r11, %r8
	movswq	2(%rdx,%rsi,2), %r11
	movq	%r8, %rax
	sarq	$16, %rax
	imulq	%r13, %rax
	movzwl	%r8w, %ebx
	imull	%r9d, %ebx
	sarl	$15, %ebx
	movslq	%ebx, %rbx
	subq	%r10, %rax
	addq	%rbx, %rax
	addq	%r11, %rax
	addq	$2, %rsi
	movq	%rax, %r10
	cmpq	%rsi, %r12
	jne	LBB0_8
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rcx, %rcx
	jle	LBB0_2
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r10d, %r10d
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movswq	(%rdx,%r10,2), %r11
	movq	%rbx, %rsi
	sarq	$16, %rsi
	imulq	%r13, %rsi
	subq	%r8, %rsi
	movzwl	%bx, %eax
	imull	%r9d, %eax
	negl	%eax
	sarl	$15, %eax
	negl	%eax
	movslq	%eax, %r8
	addq	%rsi, %r8
	addq	%r11, %r8
	movswq	2(%rdx,%r10,2), %r11
	movq	%r8, %rax
	sarq	$16, %rax
	imulq	%r13, %rax
	movzwl	%r8w, %esi
	imull	%r9d, %esi
	negl	%esi
	sarl	$15, %esi
	negl	%esi
	movslq	%esi, %rsi
	subq	%rbx, %rax
	addq	%rsi, %rax
	addq	%r11, %rax
	addq	$2, %r10
	movq	%rax, %rbx
	cmpq	%r10, %r12
	jne	LBB0_12
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	testb	$1, %cl
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movswq	(%rdx,%rsi,2), %r10
	movq	%rax, %rsi
	sarq	$16, %rsi
	imulq	%r13, %rsi
	subq	%r8, %rsi
	movzwl	%ax, %ebx
	imull	%r9d, %ebx
	sarl	$15, %ebx
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r10d, %r10d
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	testb	$1, %cl
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_3
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movswq	(%rdx,%r10,2), %r10
	movq	%rax, %rsi
	sarq	$16, %rsi
	imulq	%r13, %rsi
	subq	%r8, %rsi
	movzwl	%ax, %ebx
	imull	%r9d, %ebx
	negl	%ebx
	sarl	$15, %ebx
	negl	%ebx
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rbx
	addq	%rsi, %rbx
	addq	%r10, %rbx
	movq	%rax, %r8
	jmp	LBB0_3
LBB0_21:
	movl	-76(%rbp), %esi                 ## 4-byte Reload
LBB0_22:
	movl	%esi, %r8d
	movq	(%rdi,%r8,8), %rax
	addl	%esi, %r11d
	movslq	%r11d, %r13
	movq	(%rdi,%r13,8), %r15
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi,%r8,8), %r10
	andq	$-2, %r10
	js	LBB0_26
## %bb.23:
	testq	%rcx, %rcx
	jle	LBB0_30
## %bb.24:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r11
	cmpq	$1, %rcx
	jne	LBB0_32
## %bb.25:
	xorl	%r14d, %r14d
	jmp	LBB0_34
LBB0_26:
	movq	%r10, %r12
	negq	%r12
	testq	%rcx, %rcx
	jle	LBB0_31
## %bb.27:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r14
	movq	%r14, %r11
	imulq	%rcx, %r11
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r9
	movswq	(%rdx,%r13,2), %r8
	movq	%rax, %rbx
	sarq	$16, %rbx
	imulq	%r12, %rbx
	addq	%r15, %rbx
	movq	%r12, %rax
	shrq	%rax
	movzwl	%r9w, %esi
	imull	%eax, %esi
	sarl	$15, %esi
	negl	%esi
	movslq	%esi, %rax
	subq	%rbx, %rax
	addq	%r8, %rax
	incq	%r13
	addq	%r14, %r12
	movq	%r9, %r15
	cmpq	%r13, %rcx
	jne	LBB0_28
## %bb.29:
	subq	%r10, %r11
	movq	%r11, %r12
	movq	%rax, %rsi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_30:
	movq	%r10, %r12
LBB0_31:
	movq	%rax, %rsi
	movq	%r15, %r9
	jmp	LBB0_36
LBB0_32:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, %r12
	negq	%r12
	xorl	%r14d, %r14d
	movq	%rax, %r13
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movswq	(%rdx,%r14,2), %rax
	movq	%r13, %rsi
	sarq	$16, %rsi
	imulq	%r10, %rsi
	subq	%r15, %rsi
	movq	%r10, %rbx
	shrq	%rbx
	movzwl	%r13w, %r8d
	imull	%ebx, %r8d
	sarl	$15, %r8d
	movslq	%r8d, %r15
	addq	%rsi, %r15
	addq	%rax, %r15
	leaq	(%r12,%r10), %rsi
	subq	%r11, %r10
	movswq	2(%rdx,%r14,2), %r8
	movq	%r15, %rax
	sarq	$16, %rax
	imulq	%rsi, %rax
	shrq	%rsi
	movzwl	%r15w, %r9d
	imull	%esi, %r9d
	sarl	$15, %r9d
	movslq	%r9d, %rsi
	subq	%r13, %rax
	addq	%rsi, %rax
	addq	%r8, %rax
	subq	%r11, %r10
	addq	$2, %r14
	movq	%rax, %r13
	cmpq	%r14, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_33
LBB0_34:
	movq	%r10, %r12
	movq	%rax, %rsi
	movq	%r15, %r9
	testb	$1, %cl
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_36
## %bb.35:
	movswq	(%rdx,%r14,2), %rcx
	movq	%rax, %rdx
	sarq	$16, %rdx
	imulq	%r10, %rdx
	subq	%r15, %rdx
	movq	%r10, %rsi
	shrq	%rsi
	movzwl	%ax, %ebx
	imull	%esi, %ebx
	sarl	$15, %ebx
	movslq	%ebx, %rsi
	addq	%rdx, %rsi
	addq	%rcx, %rsi
	subq	%r11, %r10
	movq	%r10, %r12
	movq	%rax, %r9
LBB0_36:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax,%r8,8)
	movq	%rsi, (%rdi,%r8,8)
	movq	%r9, (%rdi,%r13,8)
	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
	.comm	_CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT,8,3 ## @CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT
	.no_dead_strip	_capidtmf_goertzel_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capidtmf_goertzel_loop
_capidtmf_goertzel_loop:                ; @capidtmf_goertzel_loop
	.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	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.1:
	mov	x9, #0
	sub	w10, w8, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, x14
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x13, [x0, x9, lsl #3]
	str	x15, [x0, x11, lsl #3]
	add	x9, x9, #1
	cmp	x9, x10
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	lsl	x12, x9, #3
	ldr	x13, [x0, x12]
	add	x11, x9, x8
	ldr	x14, [x0, x11, lsl #3]
	ldr	x15, [x1, x12]
	ands	x12, x15, #0xfffffffffffffffe
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x3, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	x16, x15, #1
	mov	x17, x3
	mov	x4, x2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x15, x13
	ldrsh	x13, [x4], #2
	asr	x5, x15, #16
	and	w6, w15, #0xffff
	mul	w6, w6, w16
	asr	w6, w6, #15
	neg	x14, x14
	madd	x14, x5, x12, x14
	add	x14, x14, w6, sxtw
	add	x13, x14, x13
	mov	x14, x15
	subs	x17, x17, #1
	b.ne	LBB0_7
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x3, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	x16, x15, #1
	mov	x17, x3
	mov	x4, x2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x15, x13
	ldrsh	x13, [x4], #2
	asr	x5, x15, #16
	and	w6, w15, #0xffff
	mneg	w6, w6, w16
	neg	w6, w6, asr #15
	neg	x14, x14
	madd	x14, x5, x12, x14
	add	x14, x14, w6, sxtw
	add	x13, x14, x13
	mov	x14, x15
	subs	x17, x17, #1
	b.ne	LBB0_10
	b	LBB0_3
LBB0_11:
	mov	w10, #0
LBB0_12:
	mov	w9, w10
	lsl	x9, x9, #3
	ldr	x11, [x0, x9]
	add	w10, w8, w10
	sxtw	x8, w10
	ldr	x13, [x0, w10, sxtw #3]
	ldr	x10, [x1, x9]
	ands	x10, x10, #0xfffffffffffffffe
	b.lt	LBB0_17
; %bb.13:
	cmp	x3, #1
	b.lt	LBB0_21
; %bb.14:
Lloh3:
	adrp	x12, _CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT@GOTPAGEOFF]
Lloh5:
	ldr	x15, [x12]
	mul	x14, x15, x3
	mov	x16, x10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x12, x11
	ldrsh	x11, [x2], #2
	asr	x17, x12, #16
	lsr	x4, x16, #1
	and	w5, w12, #0xffff
	mul	w4, w5, w4
	asr	w4, w4, #15
	neg	x13, x13
	madd	x13, x17, x16, x13
	add	x13, x13, w4, sxtw
	add	x11, x13, x11
	sub	x16, x16, x15
	mov	x13, x12
	subs	x3, x3, #1
	b.ne	LBB0_15
; %bb.16:
	sub	x14, x10, x14
	b	LBB0_23
LBB0_17:
	neg	x14, x10
	cmp	x3, #1
	b.lt	LBB0_22
; %bb.18:
Lloh6:
	adrp	x12, _CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT@GOTPAGEOFF]
Lloh8:
	ldr	x16, [x12]
	mul	x15, x16, x3
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x12, x11
	ldrsh	x11, [x2], #2
	asr	x17, x12, #16
	lsr	x4, x14, #1
	and	w5, w12, #0xffff
	mul	w4, w5, w4
	neg	w4, w4, asr #15
	sxtw	x4, w4
	madd	x13, x17, x14, x13
	sub	x13, x4, x13
	add	x11, x13, x11
	add	x14, x14, x16
	mov	x13, x12
	subs	x3, x3, #1
	b.ne	LBB0_19
; %bb.20:
	sub	x14, x15, x10
	b	LBB0_23
LBB0_21:
	mov	x14, x10
LBB0_22:
	mov	x12, x13
LBB0_23:
	str	x14, [x1, x9]
	str	x11, [x0, x9]
	str	x12, [x0, x8, lsl #3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT,4,2 ; @CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT
	.comm	_CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT,8,3 ; @CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT
	.no_dead_strip	_capidtmf_goertzel_loop
.subsections_via_symbols
