	.file	"extr_lochnagar-hwmon.c_float_to_long.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	float_to_long, @function
float_to_long:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sar	r12d, 23
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	movzx	r12d, r12b
	and	ebx, 8388607
	lea	r13d, -150[r12]
	add	ebx, 8388608
	imul	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, ebx
	call	fls64@PLT
	add	eax, r13d
	cmp	eax, 63
	jle	.L2
	mov	rax, QWORD PTR LONG_MAX[rip]
.L3:
	mov	rdx, rax
	neg	rdx
	test	ebp, ebp
	cmovs	rax, rdx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, ebx
	mov	ecx, r13d
	sal	eax, cl
	cdqe
	test	r13d, r13d
	jns	.L3
	mov	ecx, r13d
	mov	eax, 1
	movsx	rbx, ebx
	not	ecx
	sal	rax, cl
	mov	ecx, 150
	add	rax, rbx
	sub	ecx, r12d
	shr	rax, cl
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	float_to_long, .-float_to_long
	.comm	LONG_MAX,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_lochnagar-hwmon.c_float_to_long.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	float_to_long, %function
float_to_long:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	bic	r3, r0, #-16777216
	bic	r3, r3, #8388608
	add	r3, r3, #8388608
	push	{r4, r5, r6, lr}
	mul	r4, r1, r3
	asr	r6, r0, #23
	mov	r5, r0
	mov	r0, r4
	bl	fls64
	and	r6, r6, #255
	sub	r1, r6, #150
	add	r0, r0, r1
	cmp	r0, #31
	ble	.L2
	ldr	r3, .L8
	ldr	r0, [r3]
.L3:
	cmp	r5, #0
	rsblt	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r1, #0
	lslge	r0, r4, r1
	bge	.L3
	mvn	r0, r1
	mov	r1, #1
	sub	ip, r0, #32
	lsl	r3, r1, ip
	lsl	r2, r1, r0
	rsb	ip, r0, #32
	adds	r2, r2, r4
	orr	r3, r3, r1, lsr ip
	rsb	r1, r6, #150
	adc	r3, r3, r4, asr #31
	lsr	r1, r2, r1
	sub	r2, r6, #118
	orr	r1, r1, r3, lsl r2
	rsb	r0, r6, #118
	mov	r4, r3
	orr	r0, r1, r3, lsr r0
	b	.L3
.L9:
	.align	2
.L8:
	.word	LONG_MAX
	.size	float_to_long, .-float_to_long
	.comm	LONG_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
