	.file	"647303.c"
	.intel_syntax noprefix
	.text
	.globl	logb
	.type	logb, @function
logb:
.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, 32
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	mov	eax, 1
	call	__HI@PLT
	and	eax, 2147483647
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rax
	mov	eax, 1
	call	__LO@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	or	eax, DWORD PTR -4[rbp]
	test	eax, eax
	jne	.L2
	movsd	xmm0, QWORD PTR -24[rbp]
	movq	xmm1, QWORD PTR .LC0[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	jmp	.L3
.L2:
	cmp	DWORD PTR -8[rbp], 2146435071
	jle	.L4
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, xmm0
	jmp	.L3
.L4:
	sar	DWORD PTR -8[rbp], 20
	cmp	DWORD PTR -8[rbp], 0
	jne	.L5
	movsd	xmm0, QWORD PTR .LC2[rip]
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1023
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
.L3:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	logb, .-logb
	.section	.rodata
	.align 16
.LC0:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC1:
	.long	0
	.long	-1074790400
	.align 8
.LC2:
	.long	0
	.long	-1064308736
	.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	"647303.c"
	.text
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_i2d
	.align	2
	.global	logb
	.syntax unified
	.arm
	.fpu softvfp
	.type	logb, %function
logb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__HI
	mov	r3, r0
	bic	r3, r3, #-2147483648
	str	r3, [fp, #-20]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__LO
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	orr	r3, r2, r3
	cmp	r3, #0
	bne	.L2
	ldr	r4, [fp, #-28]
	ldr	r3, [fp, #-24]
	bic	r5, r3, #-2147483648
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	ldr	r1, .L6
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, .L6+4
	cmp	r3, r2
	ble	.L4
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	b	.L3
.L4:
	ldr	r3, [fp, #-20]
	asr	r3, r3, #20
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	mov	r2, #0
	ldr	r3, .L6+8
	b	.L3
.L5:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1020
	sub	r3, r3, #3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	.align	2
.L6:
	.word	-1074790400
	.word	2146435071
	.word	-1064308736
	.size	logb, .-logb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
