	.file	"494495.c"
	.intel_syntax noprefix
	.text
	.globl	float64_default_nan
	.bss
	.align 4
	.type	float64_default_nan, @object
	.size	float64_default_nan, 4
float64_default_nan:
	.zero	4
	.globl	float_flag_invalid
	.align 4
	.type	float_flag_invalid, @object
	.size	float_flag_invalid, 4
float_flag_invalid:
	.zero	4
	.text
	.globl	float64_rem
	.type	float64_rem, @function
float64_rem:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	DWORD PTR -80[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	extractFloat64Frac@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	extractFloat64Exp@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	edi, eax
	call	extractFloat64Sign@PLT
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	extractFloat64Frac@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	extractFloat64Exp@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	extractFloat64Sign@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 2047
	jne	.L2
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2047
	jne	.L4
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L4
.L3:
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, edx
	mov	edi, eax
	call	propagateFloat64NaN@PLT
	jmp	.L23
.L4:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR float_flag_invalid[rip]
	or	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR float64_default_nan[rip]
	jmp	.L23
.L2:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2047
	jne	.L6
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	je	.L7
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, edx
	mov	edi, eax
	call	propagateFloat64NaN@PLT
	jmp	.L23
.L7:
	mov	eax, DWORD PTR -76[rbp]
	jmp	.L23
.L6:
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR float_flag_invalid[rip]
	or	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR float64_default_nan[rip]
	jmp	.L23
.L9:
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, -44[rbp]
	lea	rcx, -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	normalizeFloat64Subnormal@PLT
.L8:
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -76[rbp]
	jmp	.L23
.L11:
	mov	eax, DWORD PTR -48[rbp]
	lea	rdx, -48[rbp]
	lea	rcx, -56[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	normalizeFloat64Subnormal@PLT
.L10:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, DWORD PTR -52[rbp]
	sub	eax, edx
	mov	DWORD PTR -40[rbp], eax
	mov	edi, 0
	call	LIT64@PLT
	mov	edx, DWORD PTR -48[rbp]
	or	eax, edx
	sal	eax, 11
	mov	DWORD PTR -48[rbp], eax
	mov	edi, 0
	call	LIT64@PLT
	mov	edx, DWORD PTR -44[rbp]
	or	eax, edx
	sal	eax, 11
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L12
	cmp	DWORD PTR -40[rbp], -1
	jge	.L13
	mov	eax, DWORD PTR -76[rbp]
	jmp	.L23
.L13:
	mov	eax, DWORD PTR -48[rbp]
	sar	eax
	mov	DWORD PTR -48[rbp], eax
.L12:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	cmp	edx, eax
	setle	al
	movzx	eax, al
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L14
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -44[rbp]
	sub	eax, edx
	mov	DWORD PTR -48[rbp], eax
.L14:
	sub	DWORD PTR -40[rbp], 64
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, 0
	mov	edi, eax
	call	estimateDiv128To64@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, 2
	cmp	DWORD PTR -36[rbp], 2
	cmovge	eax, DWORD PTR -36[rbp]
	sub	eax, 2
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	sar	eax, 2
	imul	eax, DWORD PTR -36[rbp]
	neg	eax
	mov	DWORD PTR -48[rbp], eax
	sub	DWORD PTR -40[rbp], 62
.L15:
	cmp	DWORD PTR -40[rbp], 0
	jg	.L16
	add	DWORD PTR -40[rbp], 64
	cmp	DWORD PTR -40[rbp], 0
	jle	.L17
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, 0
	mov	edi, eax
	call	estimateDiv128To64@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, 2
	cmp	DWORD PTR -36[rbp], 2
	cmovge	eax, DWORD PTR -36[rbp]
	sub	eax, 2
	mov	DWORD PTR -36[rbp], eax
	mov	eax, 64
	sub	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	sar	DWORD PTR -36[rbp], cl
	mov	eax, DWORD PTR -44[rbp]
	sar	eax, 2
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -48[rbp], eax
	jmp	.L19
.L17:
	mov	eax, DWORD PTR -48[rbp]
	sar	eax, 2
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	sar	eax, 2
	mov	DWORD PTR -44[rbp], eax
.L19:
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -24[rbp], eax
	add	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -44[rbp]
	sub	eax, edx
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jns	.L19
	mov	edx, DWORD PTR -48[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cdqe
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	js	.L20
	cmp	QWORD PTR -16[rbp], 0
	jne	.L21
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 1
	test	eax, eax
	je	.L21
.L20:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -48[rbp], eax
.L21:
	mov	eax, DWORD PTR -48[rbp]
	shr	eax, 31
	movzx	eax, al
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -48[rbp]
	neg	eax
	mov	DWORD PTR -48[rbp], eax
.L22:
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -32[rbp]
	xor	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	normalizeRoundAndPackFloat64@PLT
.L23:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	float64_rem, .-float64_rem
	.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	"494495.c"
	.text
	.comm	float64_default_nan,4,4
	.comm	float_flag_invalid,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	float64_rem
	.syntax unified
	.arm
	.fpu softvfp
	.type	float64_rem, %function
float64_rem:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-60]
	bl	extractFloat64Frac
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-60]
	bl	extractFloat64Exp
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	extractFloat64Sign
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-64]
	bl	extractFloat64Frac
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-64]
	bl	extractFloat64Exp
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-64]
	bl	extractFloat64Sign
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-52]
	ldr	r2, .L25+4
	cmp	r3, r2
	bne	.L2
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-48]
	ldr	r2, .L25+4
	cmp	r3, r2
	bne	.L4
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L4
.L3:
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-60]
	bl	propagateFloat64NaN
	mov	r3, r0
	b	.L23
.L4:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	b	.L23
.L2:
	ldr	r3, [fp, #-48]
	ldr	r2, .L25+4
	cmp	r3, r2
	bne	.L6
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L7
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-60]
	bl	propagateFloat64NaN
	mov	r3, r0
	b	.L23
.L7:
	ldr	r3, [fp, #-60]
	b	.L23
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, .L25+8
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	b	.L23
.L9:
	ldr	r3, [fp, #-40]
	sub	r2, fp, #40
	sub	r1, fp, #48
	mov	r0, r3
	bl	normalizeFloat64Subnormal
.L8:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-60]
	b	.L23
.L11:
	ldr	r3, [fp, #-44]
	sub	r2, fp, #44
	sub	r1, fp, #52
	mov	r0, r3
	bl	normalizeFloat64Subnormal
.L10:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	mov	r0, #0
	bl	LIT64
	mov	r2, r0
	ldr	r3, [fp, #-44]
	orr	r3, r2, r3
	lsl	r3, r3, #11
	str	r3, [fp, #-44]
	mov	r0, #0
	bl	LIT64
	mov	r2, r0
	ldr	r3, [fp, #-40]
	orr	r3, r2, r3
	lsl	r3, r3, #11
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L12
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bge	.L13
	ldr	r3, [fp, #-60]
	b	.L23
.L13:
	ldr	r3, [fp, #-44]
	asr	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L14
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
.L14:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #64
	str	r3, [fp, #-36]
	b	.L15
.L16:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	mov	r1, #0
	mov	r0, r3
	bl	estimateDiv128To64
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	movge	r3, r3
	movlt	r3, #2
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	asr	r3, r3, #2
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #62
	str	r3, [fp, #-36]
.L15:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L16
	ldr	r3, [fp, #-36]
	add	r3, r3, #64
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L17
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	mov	r1, #0
	mov	r0, r3
	bl	estimateDiv128To64
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	movge	r3, r3
	movlt	r3, #2
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #64
	ldr	r2, [fp, #-32]
	asr	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	asr	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	asr	r2, r3, #1
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	lsl	r2, r2, r3
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-32]
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-44]
	b	.L19
.L17:
	ldr	r3, [fp, #-44]
	asr	r3, r3, #2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	asr	r3, r3, #2
	str	r3, [fp, #-40]
.L19:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L19
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L21
.L20:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-44]
.L21:
	ldr	r3, [fp, #-44]
	lsr	r3, r3, #31
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-44]
	rsb	r3, r3, #0
	str	r3, [fp, #-44]
.L22:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	eor	r1, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	ldr	r0, [fp, #-56]
	bl	normalizeRoundAndPackFloat64
	mov	r3, r0
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	2047
	.word	float_flag_invalid
	.word	float64_default_nan
	.size	float64_rem, .-float64_rem
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
