	.file	"extr_snd_adpcm.c_S_AdpcmMemoryNeeded.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	S_AdpcmMemoryNeeded
	.type	S_AdpcmMemoryNeeded, @function
S_AdpcmMemoryNeeded:
.LFB0:
	.cfi_startproc
	endbr64
	movss	xmm0, DWORD PTR [rdi]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, QWORD PTR 8[rdi]
	divss	xmm1, DWORD PTR dma[rip]
	divss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	ecx, eax
	cdq
	shr	ecx, 31
	add	ecx, eax
	idiv	DWORD PTR PAINTBUFFER_SIZE[rip]
	sar	ecx
	cmp	edx, 1
	sbb	eax, -1
	lea	eax, [rcx+rax*4]
	ret
	.cfi_endproc
.LFE0:
	.size	S_AdpcmMemoryNeeded, .-S_AdpcmMemoryNeeded
	.comm	dma,4,4
	.comm	PAINTBUFFER_SIZE,4,4
	.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_snd_adpcm.c_S_AdpcmMemoryNeeded.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2iz
	.global	__aeabi_idivmod
	.align	2
	.global	S_AdpcmMemoryNeeded
	.syntax unified
	.arm
	.fpu softvfp
	.type	S_AdpcmMemoryNeeded, %function
S_AdpcmMemoryNeeded:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	__aeabi_i2f
	ldr	r3, .L8
	ldr	r1, [r3]	@ float
	bl	__aeabi_fdiv
	mov	r1, r0
	ldr	r0, [r4]	@ float
	bl	__aeabi_fdiv
	bl	__aeabi_f2iz
	ldr	r3, .L8+4
	add	r4, r0, r0, lsr #31
	ldr	r1, [r3]
	bl	__aeabi_idivmod
	cmp	r1, #0
	asr	r4, r4, #1
	addne	r0, r0, #1
	add	r0, r4, r0, lsl #2
	pop	{r4, pc}
.L9:
	.align	2
.L8:
	.word	dma
	.word	PAINTBUFFER_SIZE
	.size	S_AdpcmMemoryNeeded, .-S_AdpcmMemoryNeeded
	.comm	dma,4,4
	.comm	PAINTBUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
