	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_audio_calc_dtmf           ## -- Begin function isdn_audio_calc_dtmf
	.p2align	4, 0x90
_isdn_audio_calc_dtmf:                  ## @isdn_audio_calc_dtmf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_12
## %bb.1:
	movl	%edx, %r11d
	movq	%rsi, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	(%r15), %r10
	movq	_DTMF_NPOINTS@GOTPCREL(%rip), %rdi
	movq	_AMP_BITS@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	%r12d, %r11d
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rdi), %r12d
	subl	%r10d, %r12d
	cmpl	%r12d, %r11d
	cmovll	%r11d, %r12d
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_isdn_audio_alaw_to_s16@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_isdn_audio_ulaw_to_s16@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %r12d
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r12b
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%rdi), %r10
	jne	LBB0_11
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r9, %rdi
	cmoveq	%r8, %rdi
	movq	8(%r15), %rcx
	leaq	(%rcx,%r10,4), %rsi
	addq	$4, %rsi
	movl	%r12d, %ebx
	andl	$-2, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13,%rdx), %eax
	movb	$15, %cl
	subb	(%r14), %cl
	movl	(%rdi,%rax,4), %eax
	sarl	%cl, %eax
	leaq	(%r10,%rdx), %rcx
	incq	%rcx
	movq	%rcx, (%r15)
	movl	%eax, -4(%rsi,%rdx,4)
	movzbl	1(%r13,%rdx), %eax
	movl	(%rdi,%rax,4), %eax
	movb	$15, %cl
	subb	(%r14), %cl
	sarl	%cl, %eax
	leaq	(%r10,%rdx), %rcx
	addq	$2, %rcx
	movq	%rcx, (%r15)
	movl	%eax, (%rsi,%rdx,4)
	addq	$2, %rdx
	cmpl	%edx, %ebx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rdx, %r10
	addq	%rdx, %r13
	movq	_DTMF_NPOINTS@GOTPCREL(%rip), %rdi
	testb	$1, %r12b
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movzbl	(%r13), %eax
	cmoveq	%r8, %r9
	movl	(%r9,%rax,4), %eax
	movb	$15, %cl
	subb	(%r14), %cl
	sarl	%cl, %eax
	movq	8(%r15), %rcx
	leaq	1(%r10), %rsi
	movq	%rsi, (%r15)
	movl	%eax, (%rcx,%r10,4)
	incq	%r13
	movq	%rsi, %r10
	cmpq	(%rdi), %r10
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r11d, %ebx
	callq	_isdn_audio_goertzel
	movq	_DTMF_NPOINTS@GOTPCREL(%rip), %rdi
	movl	%ebx, %r11d
	movq	$0, (%r15)
	xorl	%r10d, %r10d
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTMF_NPOINTS,8,3               ## @DTMF_NPOINTS
	.comm	_isdn_audio_alaw_to_s16,8,3     ## @isdn_audio_alaw_to_s16
	.comm	_AMP_BITS,4,2                   ## @AMP_BITS
	.comm	_isdn_audio_ulaw_to_s16,8,3     ## @isdn_audio_ulaw_to_s16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isdn_audio_calc_dtmf           ; -- Begin function isdn_audio_calc_dtmf
	.p2align	2
_isdn_audio_calc_dtmf:                  ; @isdn_audio_calc_dtmf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cbz	w2, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x23, [x8]
Lloh0:
	adrp	x24, _DTMF_NPOINTS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DTMF_NPOINTS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _isdn_audio_alaw_to_s16@GOTPAGE
Lloh3:
	ldr	x26, [x26, _isdn_audio_alaw_to_s16@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh4:
	adrp	x22, _isdn_audio_ulaw_to_s16@GOTPAGE
Lloh5:
	ldr	x22, [x22, _isdn_audio_ulaw_to_s16@GOTPAGEOFF]
Lloh6:
	adrp	x27, _AMP_BITS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _AMP_BITS@GOTPAGEOFF]
	mov	w28, #15
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w20, w20, w25
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w9, [x24]
	sub	w9, w9, w8
	cmp	w20, w9
	csel	w25, w20, w9, lt
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #0
	csel	x9, x22, x26, eq
	ldr	x9, [x9]
	ldr	x10, [x23, #8]
	mov	x11, x25
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w12, [x21], #1
	ldr	w12, [x9, x12, lsl #2]
	ldr	w13, [x27]
	sub	w13, w28, w13
	asr	w12, w12, w13
	str	w12, [x10, x8, lsl #2]
	add	x8, x8, #1
	str	x8, [x23]
	subs	w11, w11, #1
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x24]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23, #8]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_isdn_audio_goertzel
	mov	x8, #0
	str	xzr, [x23]
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DTMF_NPOINTS,8,3               ; @DTMF_NPOINTS
	.comm	_isdn_audio_alaw_to_s16,8,3     ; @isdn_audio_alaw_to_s16
	.comm	_AMP_BITS,4,2                   ; @AMP_BITS
	.comm	_isdn_audio_ulaw_to_s16,8,3     ; @isdn_audio_ulaw_to_s16
.subsections_via_symbols
