	.file	"extr_nau8825.c_nau8825_xtalk_sidetone.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nau8825_xtalk_sidetone, @function
nau8825_xtalk_sidetone:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	sete	dil
	test	rsi, rsi
	sete	al
	or	edi, eax
	movzx	edi, dil
	call	WARN_ON@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r12
	call	nau8825_intlog10_dec3@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	nau8825_intlog10_dec3@PLT
	cmp	r12, rax
	jl	.L3
	sub	r12, rax
	mov	rax, QWORD PTR GAIN_AUGMENT[rip]
	lea	rdx, [r12+r12*4]
	lea	rax, [rax+rdx*4]
.L4:
	mov	rcx, QWORD PTR SIDETONE_BASE[rip]
	add	rax, rax
	movabs	rdx, 2361183241434822607
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	sub	rcx, rax
	mov	rax, rcx
	sar	rcx, 63
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sub	rax, rcx
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	sub	rax, r12
	lea	rdx, [rax+rax*4]
	mov	rax, QWORD PTR GAIN_AUGMENT[rip]
	lea	rax, [rax+rdx*4]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	nau8825_xtalk_sidetone, .-nau8825_xtalk_sidetone
	.comm	SIDETONE_BASE,8,8
	.comm	GAIN_AUGMENT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_nau8825.c_nau8825_xtalk_sidetone.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nau8825_xtalk_sidetone, %function
nau8825_xtalk_sidetone:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r2, r1
	cmp	r0, #0
	lsr	r2, r2, #5
	push	{r4, r5, r6, lr}
	mov	r5, r0
	movne	r0, r2
	moveq	r0, #1
	mov	r4, r1
	bl	WARN_ON
	cmp	r0, #0
	beq	.L8
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r5
	bl	nau8825_intlog10_dec3
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	nau8825_intlog10_dec3
	ldr	r3, .L9
	cmp	r4, r0
	ldr	r3, [r3]
	subge	r0, r4, r0
	sublt	r0, r0, r4
	add	r0, r0, r0, lsl #2
	add	r0, r3, r0, lsl #2
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r3, [r3]
	sub	r3, r3, r0, lsl #1
	smull	r1, r2, r3, r2
	asr	r0, r3, #31
	rsb	r0, r0, r2, asr #6
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	GAIN_AUGMENT
	.word	SIDETONE_BASE
	.word	274877907
	.size	nau8825_xtalk_sidetone, .-nau8825_xtalk_sidetone
	.comm	SIDETONE_BASE,4,4
	.comm	GAIN_AUGMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
