// File: /workspace/github_c_makefile_star2_O2/MikeyLHolm[P]Hive-lem-in/libftprintf/srcs/print_f.c
// Function: print_f
t_tags				*print_f(t_tags *ids)
{
	long double	nbr;

	nbr = cast_double(ids, 0);
	nbr = nbr * ids->negative;
	nbr = approximize_nbr(ids, nbr);
	print_front(ids, nbr);
	if (ids->maxwth > 0 || (ids->maxwth == 0 && ids->period == 0))
	{
		write(1, ".", 1);
		ids->printed_chars++;
		print_decimals
(ids, nbr - (long long)nbr, ids->maxwth == 0 ? 6 : ids->maxwth);
	}
	else if (ids->current_flag[0] == '#' && ids->period == 1
	&& ids->maxwth == 0)
	{
		write(1, ".", 1);
		ids->printed_chars++;
	}
	if (ids->current_flag[4] == '-' &&
	((ids->period == 0 && ids->double_len + 7 < ids->minwth) ||
	(ids->double_len + 1 + ids->maxwth < ids->minwth)))
		minwth_print(ids, ids->double_len);
	return (ids);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
fldz
fstpt (%rsp)
callq 0x544c
movq 0x18(%rbx), %rcx
cmpq $0x1, %rcx
sete %al
testb $0x1, %al
fldl 0x304f(%rip)            # 0x7a58
flds 0x3059(%rip)            # 0x7a68
fld %st(0)
fcmovne %st(2), %st
fstp %st(2)
movq 0x20(%rbx), %rdx
testq %rdx, %rdx
pushq $0x6
popq %r13
movq %rdx, %rax
fcmove %st(1), %st
fstp %st(1)
cmoveq %r13, %rax
cmpq $0x1, %rcx
movl 0x40(%rbx), %ecx
movl %ecx, -0x34(%rbp)
fildl -0x34(%rbp)
cmoveq %rdx, %rax
subq $0x1, %rax
jb 0x4a4e
fxch %st(1)
fdivs 0x3022(%rip)            # 0x7a6c
fxch %st(1)
jmp 0x4a3c
fmulp %st, %st(2)
faddp %st, %st(1)
fnstcw -0x2c(%rbp)
movzwl -0x2c(%rbp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0x30(%rbp)
fldcw -0x30(%rbp)
fld %st(0)
fstpt -0x40(%rbp)
fistpll -0x60(%rbp)
fldcw -0x2c(%rbp)
movq -0x60(%rbp), %r14
pushq $0xa
popq %rsi
movq %r14, %rdi
callq 0x53cd
movq %rax, %r15
movq %rax, %rdi
callq 0x431c
movq %rax, %r12
cmpb $0x20, 0x5a(%rbx)
jne 0x4b1f
movb 0x5c(%rbx), %cl
movq 0x18(%rbx), %rax
cmpb $0x2d, %cl
jne 0x4ad8
cmpq $0x1, %rax
jne 0x4abf
cmpl $0x1, 0x40(%rbx)
jne 0x4abf
movq 0x20(%rbx), %rdx
addq %r12, %rdx
incq %rdx
cmpq 0x10(%rbx), %rdx
jb 0x4b09
cmpb $0x2d, %cl
jne 0x4aca
cmpl $0x1, 0x40(%rbx)
je 0x4b09
cmpq $0x1, %rax
jne 0x4b1f
cmpl $0x1, 0x40(%rbx)
je 0x4b09
jmp 0x4b1f
testq %rax, %rax
setne %sil
movl 0x40(%rbx), %edx
testl %edx, %edx
sets %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x4b04
movq 0x20(%rbx), %rdx
addq %r12, %rdx
addq $0x2, %rdx
cmpq 0x10(%rbx), %rdx
jae 0x4aa3
jmp 0x4b09
cmpl $0x1, %edx
jne 0x4aa3
leaq 0x2e83(%rip), %rsi      # 0x7993
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2d, 0x5c(%rbx)
je 0x4b5a
cmpq $0x0, 0x18(%rbx)
je 0x4b32
movq 0x10(%rbx), %rax
jmp 0x4b40
leaq 0x7(%r12), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
jb 0x4b4f
movq 0x20(%rbx), %rcx
addq %r12, %rcx
incq %rcx
cmpq %rax, %rcx
jae 0x4b5a
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5fc4
cmpb $0x30, 0x59(%rbx)
jne 0x4b71
cmpq 0x10(%rbx), %r12
jae 0x4b71
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5cf8
cmpl $-0x1, 0x40(%rbx)
jne 0x4b93
cmpb $0x2b, 0x5b(%rbx)
je 0x4b93
leaq 0x2ebb(%rip), %rsi      # 0x7a3f
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2b, 0x5b(%rbx)
jne 0x4ba5
movslq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x57b8
movq %r15, %rdi
callq 0x4194
addq %r12, 0x30(%rbx)
movq %r15, %rdi
callq 0x1030
cmpq $0x0, 0x20(%rbx)
je 0x4c75
leaq 0x2ea9(%rip), %rsi      # 0x7a74
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1040
incq 0x30(%rbx)
movq %r14, -0x58(%rbp)
fildll -0x58(%rbp)
fldt -0x40(%rbp)
fsubp %st, %st(1)
movq 0x20(%rbx), %rax
testq %rax, %rax
cmovneq %rax, %r13
fmuls 0x2e75(%rip)            # 0x7a6c
flds 0x2e73(%rip)            # 0x7a70
xorl %r12d, %r12d
fxch %st(1)
fucomi %st(1), %st
setae %r15b
fldz
fcmovnb %st(2), %st
fstp %st(2)
fld %st(0)
fstpt -0x40(%rbp)
fsubp %st, %st(1)
fnstcw -0x2a(%rbp)
movzwl -0x2a(%rbp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0x2e(%rbp)
fldcw -0x2e(%rbp)
fistpll -0x50(%rbp)
fldcw -0x2a(%rbp)
movq -0x50(%rbp), %r14
movl %r14d, %edi
callq 0x4148
incq 0x30(%rbx)
incq 0x38(%rbx)
cmpq $0x2, %r13
jb 0x4ca4
movb %r15b, %r12b
shlq $0x3f, %r12
xorl %eax, %eax
xorq %r12, %r14
movq %r14, -0x48(%rbp)
sets %al
fildll -0x48(%rbp)
leaq 0x2dfb(%rip), %rcx      # 0x7a60
fadds (%rcx,%rax,4)
fldt -0x40(%rbp)
fsubp %st, %st(1)
decq %r13
jmp 0x4bf1
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x4bc4
cmpq $0x1, %rax
jne 0x4ca4
cmpb $0x23, 0x58(%rbx)
jne 0x4ca4
leaq 0x2ddf(%rip), %rsi      # 0x7a74
pushq $0x1
popq %rdi
pushq $0x1
popq %rdx
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2d, 0x5c(%rbx)
jne 0x4cdf
cmpq $0x0, 0x18(%rbx)
movq 0x38(%rbx), %rsi
je 0x4cbb
movq 0x10(%rbx), %rax
jmp 0x4cc8
leaq 0x7(%rsi), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
jb 0x4cd7
movq 0x20(%rbx), %rcx
addq %rsi, %rcx
incq %rcx
cmpq %rax, %rcx
jae 0x4cdf
movq %rbx, %rdi
callq 0x5fc4
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)