	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int_goertzel
_int_goertzel:                          ## @int_goertzel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_int_cos
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	cmpq	$1, %r14
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %r8
	andq	$-2, %r8
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %esi
	imull	%eax, %esi
	leal	32767(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$15, %ecx
	subl	%ebx, %ecx
	addl	(%r15,%rdx,4), %ecx
	movl	%ecx, %ebx
	imull	%eax, %ebx
	leal	32767(%rbx), %esi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %esi
	sarl	$15, %esi
	subl	%edi, %esi
	addl	4(%r15,%rdx,4), %esi
	addq	$2, %rdx
	movl	%esi, %edi
	movl	%ecx, %ebx
	cmpq	%rdx, %r8
	jne	LBB0_5
LBB0_6:
	testb	$1, %r14b
	je	LBB0_8
## %bb.7:
	movl	%esi, %edi
	imull	%eax, %edi
	leal	32767(%rdi), %ebx
	testl	%edi, %edi
	cmovnsl	%edi, %ebx
	sarl	$15, %ebx
	subl	%ecx, %ebx
	addl	(%r15,%rdx,4), %ebx
	movl	%esi, %ecx
	movl	%ebx, %esi
LBB0_8:
	movl	%ecx, %edx
	imull	%ecx, %edx
	movl	%esi, %ebx
	imull	%esi, %ebx
	addl	%edx, %ebx
	imull	%esi, %eax
	imull	%ecx, %eax
	leal	32767(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$15, %ecx
	subl	%ecx, %ebx
	imulq	%r14, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_do_div
	movslq	%ebx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_int_goertzel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int_goertzel
_int_goertzel:                          ; @int_goertzel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_int_cos
	lsl	w8, w0, #1
	cbz	x19, LBB0_3
; %bb.1:
	mov	w11, #0
	mov	w13, #0
	mov	w10, #32767
	mov	x12, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x11
	ldr	w11, [x20], #4
	mul	w14, w9, w8
	add	w15, w14, w10
	cmp	w14, #0
	csel	w14, w15, w14, lt
	asr	w14, w14, #15
	sub	w13, w14, w13
	add	w11, w13, w11
	mov	x13, x9
	subs	x12, x12, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #0
	mov	w11, #0
LBB0_4:
	mul	w10, w9, w9
	madd	w10, w11, w11, w10
	mul	w8, w11, w8
	mul	w8, w8, w9
	mov	w9, #32767
	add	w9, w8, w9
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sub	w20, w10, w8, asr #15
	mul	x1, x19, x19
	mov	x0, x20
	bl	_do_div
	sxtw	x0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_int_goertzel
.subsections_via_symbols
