	.file	"648232.c"
	.intel_syntax noprefix
	.text
	.globl	div_and_round_double
	.type	div_and_round_double, @function
div_and_round_double:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -56[rbp], eax
	lea	rdx, -56[rbp]
	lea	rax, -60[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	neg_double@PLT
	mov	ebx, 3
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	div	ecx
	mov	edx, eax
	movsx	rax, ebx
	mov	DWORD PTR -48[rbp+rax*4], edx
	sub	ebx, 1
.L2:
	test	ebx, ebx
	jns	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	div_and_round_double, .-div_and_round_double
	.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	"648232.c"
	.text
	.global	__aeabi_uidiv
	.global	__aeabi_uidivmod
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	div_and_round_double
	.syntax unified
	.arm
	.fpu softvfp
	.type	div_and_round_double, %function
div_and_round_double:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-40]
	sub	r2, fp, #40
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	neg_double
	mov	r4, #3
	b	.L2
.L3:
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	lsl	r3, r4, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-20]
	ldr	r3, [fp, #-44]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	sub	r4, r4, #1
.L2:
	cmp	r4, #0
	bge	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	div_and_round_double, .-div_and_round_double
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
