// File: /workspace/github_c_makefile_star2_O3/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 $0x58, %rsp
movq %rdi, %rbx
fldz
fstpt (%rsp)
callq 0x5ba0
movq 0x18(%rbx), %rcx
movq 0x20(%rbx), %rdx
xorl %esi, %esi
cmpq $0x1, %rcx
sete %sil
shll $0x4, %esi
testq %rdx, %rdx
movl $0x6, %eax
cmovneq %rdx, %rax
leaq 0x2ace(%rip), %rdi      # 0x7a60
fldt (%rsi,%rdi)
flds 0x2ae5(%rip)            # 0x7a80
fcmove %st(1), %st
fstp %st(1)
movl 0x40(%rbx), %esi
movl %esi, -0x44(%rbp)
fxch %st(1)
fimull -0x44(%rbp)
cmpq $0x1, %rcx
cmoveq %rdx, %rax
testq %rax, %rax
je 0x4fc6
fxch %st(1)
fdivs 0x2ac5(%rip)            # 0x7a84
decq %rax
fxch %st(1)
jne 0x4fb7
faddp %st, %st(1)
fnstcw -0x2e(%rbp)
movzwl -0x2e(%rbp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0x34(%rbp)
fldcw -0x34(%rbp)
fld %st(0)
fstpt -0x40(%rbp)
fistpll -0x70(%rbp)
fldcw -0x2e(%rbp)
movq -0x70(%rbp), %r14
movl $0xa, %esi
movq %r14, %rdi
callq 0x5aea
movq %rax, %r15
movq %rax, %rdi
callq 0x481c
movq %rax, %r12
cmpb $0x20, 0x5a(%rbx)
jne 0x509b
movb 0x5c(%rbx), %cl
movq 0x18(%rbx), %rax
cmpb $0x2d, %cl
jne 0x5050
cmpq $0x1, %rax
jne 0x5037
cmpl $0x1, 0x40(%rbx)
jne 0x5037
movq 0x20(%rbx), %rdx
addq %r12, %rdx
incq %rdx
cmpq 0x10(%rbx), %rdx
jb 0x5081
cmpb $0x2d, %cl
jne 0x5042
cmpl $0x1, 0x40(%rbx)
je 0x5081
cmpq $0x1, %rax
jne 0x509b
cmpl $0x1, 0x40(%rbx)
je 0x5081
jmp 0x509b
testq %rax, %rax
setne %sil
movl 0x40(%rbx), %edx
testl %edx, %edx
sets %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x507c
movq 0x20(%rbx), %rdx
addq %r12, %rdx
addq $0x2, %rdx
cmpq 0x10(%rbx), %rdx
jae 0x501b
jmp 0x5081
cmpl $0x1, %edx
jne 0x501b
leaq 0x290b(%rip), %rsi      # 0x7993
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2d, 0x5c(%rbx)
je 0x50d6
cmpq $0x0, 0x18(%rbx)
je 0x50ae
movq 0x10(%rbx), %rax
jmp 0x50bc
leaq 0x7(%r12), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
jb 0x50cb
movq 0x20(%rbx), %rcx
addq %r12, %rcx
incq %rcx
cmpq %rax, %rcx
jae 0x50d6
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6764
cmpb $0x30, 0x59(%rbx)
jne 0x50ed
cmpq 0x10(%rbx), %r12
jae 0x50ed
movq %rbx, %rdi
movq %r12, %rsi
callq 0x649c
cmpl $-0x1, 0x40(%rbx)
jne 0x5113
cmpb $0x2b, 0x5b(%rbx)
je 0x5113
leaq 0x293f(%rip), %rsi      # 0x7a3f
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2b, 0x5b(%rbx)
jne 0x5125
movslq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x5f14
movq %r15, %rdi
callq 0x4668
addq %r12, 0x30(%rbx)
movq %r15, %rdi
callq 0x1030
cmpq $0x0, 0x20(%rbx)
je 0x525f
leaq 0x294d(%rip), %rsi      # 0x7a98
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
movq %r14, -0x60(%rbp)
fildll -0x60(%rbp)
fldt -0x40(%rbp)
fsubp %st, %st(1)
movq 0x20(%rbx), %rax
testq %rax, %rax
movl $0x6, %r15d
cmovneq %rax, %r15
fmuls 0x2903(%rip)            # 0x7a84
flds 0x2901(%rip)            # 0x7a88
xorl %r12d, %r12d
fxch %st(1)
fucomi %st(1), %st
fldz
fcmovnb %st(2), %st
fstp %st(2)
fld %st(0)
fstpt -0x40(%rbp)
fsubp %st, %st(1)
setae %r13b
fnstcw -0x2c(%rbp)
movzwl -0x2c(%rbp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0x32(%rbp)
fldcw -0x32(%rbp)
fistpll -0x68(%rbp)
fldcw -0x2c(%rbp)
movq -0x68(%rbp), %r14
movl %r14d, %edi
callq 0x4600
incq 0x30(%rbx)
incq 0x38(%rbx)
cmpq $0x2, %r15
jb 0x5292
movb %r13b, %r12b
shlq $0x3f, %r12
xorq %r12, %r14
leaq 0x28a9(%rip), %r12      # 0x7a90
movq %r14, -0x50(%rbp)
xorl %eax, %eax
testq %r14, %r14
sets %al
fildll -0x50(%rbp)
fadds (%r12,%rax,4)
fldt -0x40(%rbp)
fsubp %st, %st(1)
fmuls 0x287f(%rip)            # 0x7a84
decq %r15
flds 0x287a(%rip)            # 0x7a88
xorl %r14d, %r14d
fxch %st(1)
fucomi %st(1), %st
fldz
fcmovnb %st(2), %st
fstp %st(2)
fld %st(0)
fstpt -0x40(%rbp)
fsubp %st, %st(1)
setae %r14b
fnstcw -0x2a(%rbp)
movzwl -0x2a(%rbp), %eax
orl $0xc00, %eax            # imm = 0xC00
movw %ax, -0x30(%rbp)
fldcw -0x30(%rbp)
fistpll -0x58(%rbp)
fldcw -0x2a(%rbp)
shlq $0x3f, %r14
movq -0x58(%rbp), %rdi
xorq %rdi, %r14
callq 0x4600
incq 0x30(%rbx)
incq 0x38(%rbx)
cmpq $0x1, %r15
ja 0x51e7
jmp 0x5292
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x5144
cmpq $0x1, %rax
jne 0x5292
cmpb $0x23, 0x58(%rbx)
jne 0x5292
leaq 0x2819(%rip), %rsi      # 0x7a98
movl $0x1, %edx
movl $0x1, %edi
callq 0x1040
incq 0x30(%rbx)
cmpb $0x2d, 0x5c(%rbx)
jne 0x52cd
cmpq $0x0, 0x18(%rbx)
movq 0x38(%rbx), %rsi
je 0x52a9
movq 0x10(%rbx), %rax
jmp 0x52b6
leaq 0x7(%rsi), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
jb 0x52c5
movq 0x20(%rbx), %rcx
addq %rsi, %rcx
incq %rcx
cmpq %rax, %rcx
jae 0x52cd
movq %rbx, %rdi
callq 0x6764
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop