// File: /workspace/github_c_makefile_star2_O0/smilingthax[P]libfontembed/cff.c
// Function: cff_write_real
void cff_write_real(char **buf,double value) // {{{
{
  char tmp[20];
  int res=snprintf(tmp,250,"%G",value);
  assert(res<15);
  int iA,pos=0;
  for (iA=0;iA<res;iA++) {
    char t=tmp[iA];
    if ( (t>='0')&&(t<='9') ) {
      t-='0';
    } else if (t=='-') {
      t=0xe;
    } else if (t=='.') {
      t=0xa;
    } else if (t=='E') {
      if (tmp[iA+1]=='-') {
        iA++;
        t=0xc;
      } else if (tmp[iA+1]=='+') {
        iA++;
        t=0xb;
      } else { // snprintf does not produce this...
        assert(0);
        t=0xb;
      }
      if (tmp[iA+1]=='0') {
        iA++;
      }
    } else {
      assert(0);
      break;
    }
    if (pos==0) {
      (**buf)=t<<4;
    } else {
      *((*buf)++)|=t;
    }
    pos^=1;
  }
  // end marker
  if (pos==0) {
    *((*buf)++)=0xff;
  } else {
    *((*buf)++)|=0xf;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
leaq -0x30(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movl $0xfa, %esi
leaq 0x2e83(%rip), %rdx      # 0xa849
movb $0x1, %al
callq 0x41c0
movl %eax, -0x34(%rbp)
cmpl $0xf, -0x34(%rbp)
jge 0x79d8
jmp 0x79f7
leaq 0x2e6d(%rip), %rdi      # 0xa84c
leaq 0x26d7(%rip), %rsi      # 0xa0bd
movl $0x52, %edx
leaq 0x2e61(%rip), %rcx      # 0xa853
callq 0x40d0
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x7b60
movslq -0x38(%rbp), %rax
movb -0x30(%rbp,%rax), %al
movb %al, -0x3d(%rbp)
movsbl -0x3d(%rbp), %eax
cmpl $0x30, %eax
jl 0x7a3d
movsbl -0x3d(%rbp), %eax
cmpl $0x39, %eax
jg 0x7a3d
movsbl -0x3d(%rbp), %eax
subl $0x30, %eax
movb %al, -0x3d(%rbp)
jmp 0x7b13
movsbl -0x3d(%rbp), %eax
cmpl $0x2d, %eax
jne 0x7a4f
movb $0xe, -0x3d(%rbp)
jmp 0x7b11
movsbl -0x3d(%rbp), %eax
cmpl $0x2e, %eax
jne 0x7a61
movb $0xa, -0x3d(%rbp)
jmp 0x7b0f
movsbl -0x3d(%rbp), %eax
cmpl $0x45, %eax
jne 0x7aee
movl -0x38(%rbp), %eax
addl $0x1, %eax
cltq
movsbl -0x30(%rbp,%rax), %eax
cmpl $0x2d, %eax
jne 0x7a8f
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
movb $0xc, -0x3d(%rbp)
jmp 0x7ad1
movl -0x38(%rbp), %eax
addl $0x1, %eax
cltq
movsbl -0x30(%rbp,%rax), %eax
cmpl $0x2b, %eax
jne 0x7ab0
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
movb $0xb, -0x3d(%rbp)
jmp 0x7acf
leaq 0x4007(%rip), %rdi      # 0xbabe
leaq 0x25ff(%rip), %rsi      # 0xa0bd
movl $0x64, %edx
leaq 0x2d89(%rip), %rcx      # 0xa853
callq 0x40d0
jmp 0x7ad1
movl -0x38(%rbp), %eax
addl $0x1, %eax
cltq
movsbl -0x30(%rbp,%rax), %eax
cmpl $0x30, %eax
jne 0x7aec
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x7b0d
leaq 0x3fc9(%rip), %rdi      # 0xbabe
leaq 0x25c1(%rip), %rsi      # 0xa0bd
movl $0x6b, %edx
leaq 0x2d4b(%rip), %rcx      # 0xa853
callq 0x40d0
jmp 0x7b0f
jmp 0x7b11
jmp 0x7b13
cmpl $0x0, -0x3c(%rbp)
jne 0x7b2d
movsbl -0x3d(%rbp), %eax
shll $0x4, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq (%rax), %rax
movb %cl, (%rax)
jmp 0x7b49
movsbl -0x3d(%rbp), %edx
movq -0x8(%rbp), %rcx
movq (%rcx), %rax
movq %rax, %rsi
addq $0x1, %rsi
movq %rsi, (%rcx)
movsbl (%rax), %ecx
orl %edx, %ecx
movb %cl, (%rax)
movl -0x3c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x7a05
cmpl $0x0, -0x3c(%rbp)
jne 0x7b7c
movq -0x8(%rbp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movb $-0x1, (%rax)
jmp 0x7b95
movq -0x8(%rbp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movsbl (%rax), %ecx
orl $0xf, %ecx
movb %cl, (%rax)
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)