	.file	"672877.c"
	.intel_syntax noprefix
	.text
	.globl	ldexp
	.type	ldexp, @function
ldexp:
.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	DWORD PTR -28[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 1
	movsd	xmm0, QWORD PTR -24[rbp]
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jnp	.L2
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 33
	movsd	xmm0, QWORD PTR -24[rbp]
	jmp	.L18
.L2:
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jp	.L4
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jne	.L4
	pxor	xmm0, xmm0
	jmp	.L18
.L4:
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	jbe	.L6
	movsd	xmm0, QWORD PTR -24[rbp]
	movq	xmm1, QWORD PTR .LC1[rip]
	xorpd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -12[rbp], -1
.L6:
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR .LC2[rip]
	jbe	.L23
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -12[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
	jmp	.L18
.L23:
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rdx
	movq	xmm0, rax
	call	frexp@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jle	.L10
	cmp	DWORD PTR -28[rbp], 1024
	jle	.L12
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 34
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -12[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	jmp	.L18
.L13:
	movsd	xmm1, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	sub	DWORD PTR -28[rbp], 30
.L12:
	cmp	DWORD PTR -28[rbp], 30
	jg	.L13
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR -24[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L14
.L10:
	cmp	DWORD PTR -28[rbp], -1074
	jge	.L16
	pxor	xmm0, xmm0
	jmp	.L18
.L17:
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	add	DWORD PTR -28[rbp], 30
.L16:
	cmp	DWORD PTR -28[rbp], -30
	jl	.L17
	mov	eax, DWORD PTR -28[rbp]
	neg	eax
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR -24[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
.L14:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -12[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
.L18:
	movq	rax, xmm0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ldexp, .-ldexp
	.section	.rodata
	.align 16
.LC1:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.align 8
.LC3:
	.long	0
	.long	2146435072
	.align 8
.LC4:
	.long	0
	.long	1104150528
	.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	"672877.c"
	.text
	.global	__aeabi_dcmpun
	.global	__aeabi_dcmpeq
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpgt
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ldexp
	.syntax unified
	.arm
	.fpu softvfp
	.type	ldexp, %function
ldexp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpun
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	bl	__errno_location
	mov	r3, r0
	mov	r2, #33
	str	r2, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	b	.L19
.L25:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	mov	r2, #0
	mov	r3, #0
	b	.L19
.L26:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r4, [fp, #-36]
	ldr	r3, [fp, #-32]
	eor	r5, r3, #-2147483648
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	mvn	r3, #0
	str	r3, [fp, #-20]
.L7:
	mvn	r2, #0
	ldr	r3, .L28+4
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	b	.L19
.L27:
	sub	r3, fp, #24
	mov	r2, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	frexp
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-40]
	cmp	r3, #1024
	ble	.L13
	bl	__errno_location
	mov	r3, r0
	mov	r2, #34
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L28+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	b	.L19
.L14:
	mov	r2, #0
	ldr	r3, .L28+12
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #30
	str	r3, [fp, #-40]
.L13:
	ldr	r3, [fp, #-40]
	cmp	r3, #30
	bgt	.L14
	mov	r2, #1
	ldr	r3, [fp, #-40]
	lsl	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L15
.L11:
	ldr	r3, [fp, #-40]
	ldr	r2, .L28+16
	cmp	r3, r2
	bge	.L17
	mov	r2, #0
	mov	r3, #0
	b	.L19
.L18:
	mov	r2, #0
	ldr	r3, .L28+12
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #30
	str	r3, [fp, #-40]
.L17:
	ldr	r3, [fp, #-40]
	cmn	r3, #30
	blt	.L18
	ldr	r3, [fp, #-40]
	rsb	r3, r3, #0
	mov	r2, #1
	lsl	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L15:
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
.L19:
	ldr	r1, .L28
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	2146435071
	.word	2146435072
	.word	1104150528
	.word	-1074
	.size	ldexp, .-ldexp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
