	.file	"extr_real.c_encode_ieee_double.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	encode_ieee_double, @function
encode_ieee_double:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	movsx	rax, DWORD PTR SIGSZ[rip]
	mov	r8, QWORD PTR [rdx]
	mov	ecx, DWORD PTR 8[rdx]
	sal	rax, 2
	movsx	rsi, DWORD PTR -4[r8+rax]
	sal	ecx, 31
	movsx	rbp, ecx
	mov	r10, rsi
	mov	r9, rsi
	shr	r10, 11
	cmp	DWORD PTR HOST_BITS_PER_LONG[rip], 64
	je	.L31
	movsx	r8, DWORD PTR -8[r8+rax]
	mov	eax, DWORD PTR 12[rdx]
	sal	rsi, 21
	and	r10d, 1048575
	shr	r8, 11
	or	r8, rsi
	cmp	eax, 130
	je	.L4
.L34:
	jg	.L5
	xor	edi, edi
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L8
	xor	edi, edi
	test	DWORD PTR SIG_MSB[rip], r9d
	jne	.L32
.L15:
	mov	rax, r10
	or	rax, rbp
	or	rax, rdi
	mov	rdi, r8
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	QWORD PTR FLOAT_WORDS_BIG_ENDIAN[rip], 0
	je	.L16
.L33:
	mov	QWORD PTR [rbx], rbp
	mov	QWORD PTR 8[rbx], rdi
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L8
	mov	edi, DWORD PTR 8[rdi]
	test	edi, edi
	je	.L10
	or	ecx, 2146435072
	xor	edi, edi
	cmp	QWORD PTR FLOAT_WORDS_BIG_ENDIAN[rip], 0
	movsx	rbp, ecx
	jne	.L33
.L16:
	mov	QWORD PTR 8[rbx], rbp
	mov	QWORD PTR [rbx], rdi
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rdx]
	shr	rsi, 44
	mov	r8d, r10d
	mov	r10, rsi
	cmp	eax, 130
	jne	.L34
.L4:
	mov	esi, DWORD PTR 4[rdi]
	test	esi, esi
	je	.L10
	mov	eax, DWORD PTR 16[rdx]
	test	eax, eax
	je	.L11
	mov	esi, DWORD PTR [rdi]
	cmp	DWORD PTR 20[rdx], esi
	je	.L35
	mov	eax, 524288
	test	esi, esi
	jne	.L36
.L13:
	or	rax, 524287
	mov	edi, 4294967295
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	or	ecx, 2147483647
	mov	edi, 4294967295
	movsx	rbp, ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rdx
	mov	QWORD PTR 8[rsp], r10
	mov	QWORD PTR [rsp], r8
	call	REAL_EXP@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	r8, QWORD PTR [rsp]
	lea	edi, 1022[rax]
	movsx	rdi, edi
	sal	rdi, 20
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	call	gcc_unreachable@PLT
	xor	edi, edi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 20[rdx]
	cmp	DWORD PTR [rdi], eax
	mov	rax, r10
	je	.L19
	or	rax, 524288
.L20:
	mov	rdi, r8
.L14:
	or	ecx, 2146435072
	movsx	rbp, ecx
	or	rbp, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	and	rax, -524289
	mov	edi, 0
	mov	rdx, rax
	or	rdx, r8
	mov	edx, 262144
	cmovne	rdi, r8
	cmove	rax, rdx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L35:
	test	esi, esi
	je	.L22
	xor	edi, edi
	mov	eax, 262144
	jmp	.L14
.L36:
	xor	r8d, r8d
	jmp	.L20
.L22:
	xor	eax, eax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	encode_ieee_double, .-encode_ieee_double
	.comm	SIG_MSB,4,4
	.comm	SIGSZ,4,4
	.comm	HOST_BITS_PER_LONG,4,4
	.comm	FLOAT_WORDS_BIG_ENDIAN,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_real.c_encode_ieee_double.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode_ieee_double, %function
encode_ieee_double:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L33
	ldr	r3, .L33+4
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r5, [ip]
	ldr	lr, [r2]
	cmp	r5, #64
	sub	r3, r3, #-1073741823
	ldr	ip, [lr, r3, lsl #2]
	lslne	r3, r3, #2
	addne	r3, lr, r3
	lsr	r5, ip, #11
	ldrne	r3, [r3, #-4]
	bicne	r7, r5, #-16777216
	lslne	r5, ip, #21
	orrne	r5, r5, r3, lsr #11
	ldr	r3, [r2, #8]
	ldr	r4, [r2, #4]
	sub	r3, r3, #128
	mov	r6, r1
	moveq	r7, #0
	lsl	r4, r4, #31
	bicne	r7, r7, #15728640
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L22
	.word	.L7
	.word	.L6
	.word	.L4
.L22:
	mov	r3, #0
.L8:
	ldr	r2, .L33+8
	ldr	r2, [r2]
	cmp	r2, #0
	stmeq	r6, {r3, r4}
	strne	r4, [r6]
	strne	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L10
	orr	r4, r4, #2130706432
	mov	r3, #0
	orr	r4, r4, #15728640
	b	.L8
.L7:
	ldr	r3, .L33+12
	ldr	r3, [r3]
	ands	ip, ip, r3
	bne	.L29
.L15:
	orr	r4, r7, r4
	mov	r3, r5
	orr	r4, r4, ip
	b	.L8
.L6:
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [r2, #12]
	cmp	r3, #0
	beq	.L11
	ldr	r1, [r0]
	ldr	r3, [r2, #16]
	cmp	r3, r1
	beq	.L30
	cmp	r1, #0
	moveq	r7, #524288
	bne	.L31
.L13:
	mvn	r7, r7, lsr #19
	mvn	r3, #0
	mvn	r7, r7, lsl #19
	b	.L14
.L10:
	mvn	r4, r4, lsr #31
	mvn	r3, #0
	mvn	r4, r4, lsl #31
	b	.L8
.L29:
	mov	r0, r2
	bl	REAL_EXP
	add	ip, r0, #1020
	add	ip, ip, #2
	lsl	ip, ip, #20
	b	.L15
.L11:
	ldr	r1, [r2, #16]
	ldr	r2, [r0]
	cmp	r1, r2
	orrne	r7, r7, #524288
	beq	.L32
.L20:
	mov	r3, r5
.L14:
	orr	r4, r7, r4
	orr	r4, r4, #2130706432
	orr	r4, r4, #15728640
	b	.L8
.L32:
	bic	r7, r7, #524288
	orr	r2, r7, r5
	cmp	r2, #0
	movne	r3, r5
	moveq	r7, #262144
	b	.L14
.L30:
	cmp	r3, #0
	beq	.L23
	mov	r3, #0
	mov	r7, #262144
	b	.L14
.L31:
	mov	r5, #0
	mov	r7, #524288
	b	.L20
.L23:
	mov	r7, r3
	b	.L13
.L3:
	bl	gcc_unreachable
	mov	r3, #0
	b	.L8
.L34:
	.align	2
.L33:
	.word	HOST_BITS_PER_LONG
	.word	SIGSZ
	.word	FLOAT_WORDS_BIG_ENDIAN
	.word	SIG_MSB
	.size	encode_ieee_double, .-encode_ieee_double
	.comm	SIG_MSB,4,4
	.comm	SIGSZ,4,4
	.comm	HOST_BITS_PER_LONG,4,4
	.comm	FLOAT_WORDS_BIG_ENDIAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
