	.file	"extr_dsound_convert.c_convert_ieee_32_to_8.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	convert_ieee_32_to_8, @function
convert_ieee_32_to_8:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rdi
	mov	r12d, DWORD PTR 96[rsp]
	mov	QWORD PTR 16[rsp], r8
	mov	DWORD PTR 12[rsp], r9d
	test	r8, r8
	jle	.L1
	movsx	rax, ecx
	mov	rbx, rsi
	lea	r15, 12[rsp]
	mov	ebp, edx
	mov	QWORD PTR [rsp], rax
	lea	r14, 16[rsp]
	lea	r13, 24[rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rax]
	call	le32@PLT
	movss	xmm1, DWORD PTR .LC0[rip]
	movd	xmm0, eax
	mov	eax, -256
	comiss	xmm1, xmm0
	ja	.L3
	comiss	xmm0, DWORD PTR .LC1[rip]
	mov	eax, 255
	ja	.L3
	mulss	xmm0, DWORD PTR .LC2[rip]
	subss	xmm0, DWORD PTR .LC3[rip]
	cvttss2si	eax, xmm0
	xor	al, -128
.L3:
	mov	DWORD PTR [rbx], eax
	mov	r8d, r12d
	mov	rcx, r15
	mov	rdx, r14
	mov	esi, ebp
	mov	rdi, r13
	add	rbx, QWORD PTR [rsp]
	call	src_advance@PLT
	cmp	QWORD PTR 16[rsp], 0
	jg	.L4
.L1:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	convert_ieee_32_to_8, .-convert_ieee_32_to_8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	3212836864
	.align 4
.LC1:
	.long	1065353216
	.align 4
.LC2:
	.long	1124007936
	.align 4
.LC3:
	.long	1056964608
	.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_dsound_convert.c_convert_ieee_32_to_8.c"
	.text
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_f2iz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_ieee_32_to_8, %function
convert_ieee_32_to_8:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	ip, [sp, #56]
	ldr	r6, [sp, #64]
	cmp	ip, #0
	str	r0, [sp, #12]
	ble	.L1
	mov	r4, r1
	mov	r5, r2
	mov	r9, r3
	mov	r8, #1065353216
	ldr	r7, .L11
	ldr	fp, .L11+4
.L4:
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	le32
	mov	r1, r7
	mov	r10, r0
	bl	__aeabi_fcmplt
	cmp	r0, #0
	mvnne	r0, #255
	bne	.L3
	mov	r1, r8
	mov	r0, r10
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	movne	r0, #255
	bne	.L3
	mov	r1, fp
	mov	r0, r10
	bl	__aeabi_fmul
	mov	r1, #1056964608
	bl	__aeabi_fsub
	bl	__aeabi_f2iz
	eor	r0, r0, #128
.L3:
	str	r0, [r4], r9
	add	r3, sp, #60
	mov	r1, r5
	str	r6, [sp]
	add	r2, sp, #56
	add	r0, sp, #12
	bl	src_advance
	ldr	r3, [sp, #56]
	cmp	r3, #0
	bgt	.L4
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	-1082130432
	.word	1124007936
	.size	convert_ieee_32_to_8, .-convert_ieee_32_to_8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
