	.file	"225144505.c"
	.intel_syntax noprefix
	.text
	.globl	apply_replay_gain_16bit
	.type	apply_replay_gain_16bit, @function
apply_replay_gain_16bit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	movss	DWORD PTR -20[rbp], xmm0
	movss	DWORD PTR -24[rbp], xmm1
	mov	QWORD PTR -32[rbp], rdi
	mov	DWORD PTR -36[rbp], esi
	mov	DWORD PTR -40[rbp], edx
	mov	DWORD PTR -44[rbp], ecx
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR .LC0[rip]
	divss	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	mov	rax, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	cmp	DWORD PTR -44[rbp], 0
	je	.L2
	movss	xmm0, DWORD PTR -8[rbp]
	mulss	xmm0, DWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR .LC2[rip]
	comiss	xmm0, xmm1
	jbe	.L2
	movss	xmm0, DWORD PTR .LC2[rip]
	divss	xmm0, DWORD PTR -24[rbp]
	movss	DWORD PTR -8[rbp], xmm0
.L2:
	movss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	imul	eax, DWORD PTR -4[rbp]
	sar	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	apply_replay_gain_16bit, .-apply_replay_gain_16bit
	.section	.rodata
	.align 4
.LC0:
	.long	1101004800
	.align 8
.LC1:
	.long	0
	.long	1076101120
	.align 4
.LC2:
	.long	1065353216
	.align 4
.LC3:
	.long	1199570944
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"225144505.c"
	.text
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.global	__aeabi_d2f
	.global	__aeabi_fmul
	.global	__aeabi_fcmpgt
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
	.global	apply_replay_gain_16bit
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_replay_gain_16bit, %function
apply_replay_gain_16bit:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]	@ float
	str	r1, [fp, #-28]	@ float
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, .L7
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L7+4
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-28]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1065353216
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-28]	@ float
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
.L2:
	ldr	r1, .L7+8
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L7+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
	asr	r2, r3, #16
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	ldr	r1, [fp, #-32]
	add	r3, r1, r3
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L5
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	1101004800
	.word	1076101120
	.word	1199570944
	.word	1071644672
	.size	apply_replay_gain_16bit, .-apply_replay_gain_16bit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
