// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
fldz
fstpt (%rsp)
callq 0x5bf0
movl 0x40(%rbx), %eax
movl %eax, -0x28(%rbp)
fimull -0x28(%rbp)
movq 0x20(%rbx), %rax
flds 0x2a2d(%rip)            # 0x7a54
movq %rax, %rcx
testq %rax, %rax
jne 0x504f
fstp %st(0)
xorl %eax, %eax
cmpq $0x1, 0x18(%rbx)
sete %al
shll $0x4, %eax
leaq 0x2a1b(%rip), %rcx      # 0x7a60
fldt (%rax,%rcx)
movl $0x6, %ecx
xorl %eax, %eax
cmpq $0x1, 0x18(%rbx)
cmovneq %rcx, %rax
testq %rax, %rax
je 0x5068
fdivs 0x29f5(%rip)            # 0x7a58
decq %rax
jne 0x505d
faddp %st, %st(1)
fnstcw -0x22(%rbp)
movzwl -0x22(%rbp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0x24(%rbp)
fldcw -0x24(%rbp)
fld %st(0)
fstpt -0x44(%rbp)
fistpll -0x38(%rbp)
fldcw -0x22(%rbp)
movq -0x38(%rbp), %r14
movl $0xa, %esi
movq %r14, %rdi
callq 0x5b46
movq %rax, %r15
movq %rax, %rdi
callq 0x48d0
movq %rax, %r12
cmpb $0x20, 0x5a(%rbx)
jne 0x5128
movb 0x5c(%rbx), %al
cmpb $0x2d, %al
je 0x50d8
cmpq $0x0, 0x18(%rbx)
je 0x50d2
cmpl $0x0, 0x40(%rbx)
jns 0x50d2
movq 0x20(%rbx), %rcx
addq %r12, %rcx
addq $0x2, %rcx
cmpq 0x10(%rbx), %rcx
jb 0x510e
cmpl $0x1, 0x40(%rbx)
je 0x510e
movq 0x18(%rbx), %rcx
cmpq $0x1, %rcx
jne 0x50f8
cmpl $0x1, 0x40(%rbx)
jne 0x50f8
movq 0x20(%rbx), %rdx
addq %r12, %rdx
incq %rdx
cmpq 0x10(%rbx), %rdx
jb 0x510e
cmpb $0x2d, %al
jne 0x5102
cmpl $0x1, 0x40(%rbx)
je 0x510e
cmpq $0x1, %rcx
jne 0x5128
cmpl $0x1, 0x40(%rbx)
jne 0x5128
leaq 0x28d0(%rip), %rsi      # 0x79e5
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2d, 0x5c(%rbx)
je 0x515b
cmpq $0x0, 0x18(%rbx)
jne 0x5140
leaq 0x7(%r12), %rax
cmpq 0x10(%rbx), %rax
jb 0x5150
movq 0x20(%rbx), %rax
addq %r12, %rax
incq %rax
cmpq 0x10(%rbx), %rax
jae 0x515b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x67cc
cmpb $0x30, 0x59(%rbx)
jne 0x5172
cmpq 0x10(%rbx), %r12
jae 0x5172
movq %rbx, %rdi
movq %r12, %rsi
callq 0x64f4
cmpl $-0x1, 0x40(%rbx)
jne 0x5198
cmpb $0x2b, 0x5b(%rbx)
je 0x5198
leaq 0x28bb(%rip), %rsi      # 0x7a40
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2b, 0x5b(%rbx)
jne 0x51aa
movslq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x5f64
movq %r15, %rdi
callq 0x4720
addq %r12, 0x30(%rbx)
movq %r15, %rdi
callq 0x1030
cmpq $0x0, 0x20(%rbx)
je 0x5255
leaq 0x28b8(%rip), %rsi      # 0x7a88
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
movq %r14, -0x30(%rbp)
fildll -0x30(%rbp)
fldt -0x44(%rbp)
fsubp %st, %st(1)
movq 0x20(%rbx), %rax
testq %rax, %rax
movl $0x6, %esi
cmovneq %rax, %rsi
fstpt (%rsp)
movq %rbx, %rdi
callq 0x528a
cmpb $0x2d, 0x5c(%rbx)
jne 0x5245
cmpq $0x0, 0x18(%rbx)
jne 0x5225
movq 0x38(%rbx), %rax
addq $0x7, %rax
cmpq 0x10(%rbx), %rax
jb 0x5239
movq 0x20(%rbx), %rax
movq 0x38(%rbx), %rcx
addq %rcx, %rax
incq %rax
cmpq 0x10(%rbx), %rax
jae 0x5245
movq 0x38(%rbx), %rsi
movq %rbx, %rdi
callq 0x67cc
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x51c9
cmpq $0x1, %rax
jne 0x520a
cmpb $0x23, 0x58(%rbx)
jne 0x520a
leaq 0x2813(%rip), %rsi      # 0x7a88
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
jmp 0x520a