// File: /workspace/github_c_makefile_star2_O0/lengjingzju[P]json/dragonbox.c
// Function: dragonbox_convert_asymmetric
static inline void dragonbox_convert_asymmetric(diy_fp_t *v)
{
    int32_t e = v->e;
    const int32_t minus_k = floor_log10_threequarters_pow2(e);
    const int32_t minus_1 = e + floor_log2_pow10(-minus_k);
    const u64x2_t pow10  = compute_pow10_double(-minus_k);
    uint64_t lower        = (pow10.hi - (pow10.hi >> (DP_SIGNIFICAND_SIZE + 2))) >> (63 - DP_SIGNIFICAND_SIZE - minus_1);
    uint64_t upper        = (pow10.hi + (pow10.hi >> (DP_SIGNIFICAND_SIZE + 1))) >> (63 - DP_SIGNIFICAND_SIZE - minus_1);
    /*
     * If we don't accept the left endpoint (but we do!)
     * or if the left endpoint is not an integer, increase it
     */
    lower += !(2 <= e && e <= 3);

    /* Try bigger divisor */
    uint64_t q = upper / 10;
    if ((q << 1) + (q << 3) >= lower) {
        v->f = q;
        v->e = minus_k + 1;
    } else {
        /* Otherwise, compute the round-up of y */
        q = ((pow10.hi >> (63 - (DP_SIGNIFICAND_SIZE + 1) - minus_1)) + 1) >> 1;
        /* When tie occurs, choose one of them according to the rule */
        if (e == -77) {
            q -= (q & (uint64_t)1); /* Round to even. */
        } else {
            q += (q < lower);
        }

        v->f = q;
        v->e = minus_k;
    }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x3c(%rsp)
movl 0x3c(%rsp), %edi
callq 0x5be0
movl %eax, 0x38(%rsp)
movl 0x3c(%rsp), %eax
movl %eax, (%rsp)
xorl %edi, %edi
subl 0x38(%rsp), %edi
callq 0x58c0
movl %eax, %ecx
movl (%rsp), %eax
addl %ecx, %eax
movl %eax, 0x34(%rsp)
xorl %edi, %edi
subl 0x38(%rsp), %edi
callq 0x58d0
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rsp), %rcx
shrq $0x36, %rcx
subq %rcx, %rax
movl $0xb, %ecx
subl 0x34(%rsp), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rsp), %rcx
shrq $0x35, %rcx
addq %rcx, %rax
movl $0xb, %ecx
subl 0x34(%rsp), %ecx
movl %ecx, %ecx
shrq %cl, %rax
movq %rax, 0x10(%rsp)
xorl %eax, %eax
movl $0x2, %ecx
cmpl 0x3c(%rsp), %ecx
movb %al, 0x7(%rsp)
jg 0x5589
cmpl $0x3, 0x3c(%rsp)
setle %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movl $0xa, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
shlq %rax
movq 0x8(%rsp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
cmpq 0x18(%rsp), %rax
jb 0x55ed
movq 0x8(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x38(%rsp), %ecx
addl $0x1, %ecx
movq 0x40(%rsp), %rax
movl %ecx, 0x8(%rax)
jmp 0x5662
movq 0x20(%rsp), %rax
movl $0xa, %ecx
subl 0x34(%rsp), %ecx
movl %ecx, %ecx
shrq %cl, %rax
addq $0x1, %rax
shrq %rax
movq %rax, 0x8(%rsp)
cmpl $-0x4d, 0x3c(%rsp)
jne 0x562b
movq 0x8(%rsp), %rcx
andq $0x1, %rcx
movq 0x8(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0x5649
movq 0x8(%rsp), %rax
cmpq 0x18(%rsp), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
cltq
addq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movl 0x38(%rsp), %ecx
movq 0x40(%rsp), %rax
movl %ecx, 0x8(%rax)
addq $0x48, %rsp
retq
nopw (%rax,%rax)