	.file	"extr_hid-pidff.c_pidff_set_signed.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"calculated from %d to %d"
	.text
	.p2align 4
	.type	pidff_set_signed, @function
pidff_set_signed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdx, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	r12, QWORD PTR [rdi]
	cmp	QWORD PTR [rdx], 0
	js	.L7
	test	esi, esi
	js	.L8
	mov	esi, 32767
	mov	edi, ebp
	call	pidff_rescale@PLT
	mov	QWORD PTR [r12], rax
.L3:
	mov	rax, QWORD PTR [rbx]
	mov	esi, ebp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	mov	rdx, QWORD PTR [rax]
	jmp	debug@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, esi
	mov	esi, 32768
	neg	edi
	call	pidff_rescale@PLT
	mov	QWORD PTR [r12], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, rdx
	mov	edi, ebp
	call	pidff_rescale_signed@PLT
	mov	QWORD PTR [r12], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pidff_set_signed, .-pidff_set_signed
	.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_hid-pidff.c_pidff_set_signed.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"calculated from %d to %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pidff_set_signed, %function
pidff_set_signed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r3, [r2]
	mov	r4, r0
	cmp	r3, #0
	mov	r5, r1
	ldr	r6, [r0]
	blt	.L7
	cmp	r1, #0
	movlt	r1, #32768
	movge	r0, r5
	ldrge	r1, .L8
	rsblt	r0, r5, #0
	bl	pidff_rescale
	str	r0, [r6]
.L3:
	ldr	r3, [r4]
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r2, [r3]
	ldr	r0, .L8+4
	b	debug
.L7:
	mov	r1, r2
	mov	r0, r5
	bl	pidff_rescale_signed
	str	r0, [r6]
	b	.L3
.L9:
	.align	2
.L8:
	.word	32767
	.word	.LC0
	.size	pidff_set_signed, .-pidff_set_signed
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
