// File: Ciaxur[P]yagb-emu/include/imgui/imgui_widgets.cpp
// Function: unsigned long long ImGui::ScaleValueFromRatioT<unsigned long long, long long, double>(int, float, unsigned long long, unsigned long long, bool, float, float)
TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, TYPE v_max, bool is_logarithmic, float logarithmic_zero_epsilon, float zero_deadzone_halfsize)
{
    if (v_min == v_max)
        return (TYPE)0.0f;
    const bool is_decimal = (data_type == ImGuiDataType_Float) || (data_type == ImGuiDataType_Double);

    TYPE result;
    if (is_logarithmic)
    {
        // We special-case the extents because otherwise our fudging can lead to "mathematically correct" but non-intuitive behaviors like a fully-left slider not actually reaching the minimum value
        if (t <= 0.0f)
            result = v_min;
        else if (t >= 1.0f)
            result = v_max;
        else
        {
            bool flipped = v_max < v_min; // Check if range is "backwards"

            // Fudge min/max to avoid getting silly results close to zero
            FLOATTYPE v_min_fudged = (ImAbs((FLOATTYPE)v_min) < logarithmic_zero_epsilon) ? ((v_min < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_min;
            FLOATTYPE v_max_fudged = (ImAbs((FLOATTYPE)v_max) < logarithmic_zero_epsilon) ? ((v_max < 0.0f) ? -logarithmic_zero_epsilon : logarithmic_zero_epsilon) : (FLOATTYPE)v_max;

            if (flipped)
                ImSwap(v_min_fudged, v_max_fudged);

            // Awkward special case - we need ranges of the form (-100 .. 0) to convert to (-100 .. -epsilon), not (-100 .. epsilon)
            if ((v_max == 0.0f) && (v_min < 0.0f))
                v_max_fudged = -logarithmic_zero_epsilon;

            float t_with_flip = flipped ? (1.0f - t) : t; // t, but flipped if necessary to account for us flipping the range

            if ((v_min * v_max) < 0.0f) // Range crosses zero, so we have to do this in two parts
            {
                float zero_point_center = (-(float)ImMin(v_min, v_max)) / ImAbs((float)v_max - (float)v_min); // The zero point in parametric space
                float zero_point_snap_L = zero_point_center - zero_deadzone_halfsize;
                float zero_point_snap_R = zero_point_center + zero_deadzone_halfsize;
                if (t_with_flip >= zero_point_snap_L && t_with_flip <= zero_point_snap_R)
                    result = (TYPE)0.0f; // Special case to make getting exactly zero possible (the epsilon prevents it otherwise)
                else if (t_with_flip < zero_point_center)
                    result = (TYPE)-(logarithmic_zero_epsilon * ImPow(-v_min_fudged / logarithmic_zero_epsilon, (FLOATTYPE)(1.0f - (t_with_flip / zero_point_snap_L))));
                else
                    result = (TYPE)(logarithmic_zero_epsilon * ImPow(v_max_fudged / logarithmic_zero_epsilon, (FLOATTYPE)((t_with_flip - zero_point_snap_R) / (1.0f - zero_point_snap_R))));
            }
            else if ((v_min < 0.0f) || (v_max < 0.0f)) // Entirely negative slider
                result = (TYPE)-(-v_max_fudged * ImPow(-v_min_fudged / -v_max_fudged, (FLOATTYPE)(1.0f - t_with_flip)));
            else
                result = (TYPE)(v_min_fudged * ImPow(v_max_fudged / v_min_fudged, (FLOATTYPE)t_with_flip));
        }
    }
    else
    {
        // Linear slider
        if (is_decimal)
        {
            result = ImLerp(v_min, v_max, t);
        }
        else
        {
            // - For integer values we want the clicking position to match the grab box so we round above
            //   This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property..
            // - Not doing a *1.0 multiply at the end of a range as it tends to be lossy. While absolute aiming at a large s64/u64
            //   range is going to be imprecise anyway, with this check we at least make the edge values matches expected limits.
            if (t < 1.0)
            {
                FLOATTYPE v_new_off_f = (SIGNEDTYPE)(v_max - v_min) * t;
                result = (TYPE)((SIGNEDTYPE)v_min + (SIGNEDTYPE)(v_new_off_f + (FLOATTYPE)(v_min > v_max ? -0.5 : 0.5)));
            }
            else
            {
                result = v_max;
            }
        }
    }

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movb %cl, %al
movl %edi, -0xc(%rbp)
movss %xmm0, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movss %xmm1, -0x28(%rbp)
movss %xmm2, -0x2c(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jne 0x165c63
movq $0x0, -0x8(%rbp)
jmp 0x166544
movb $0x1, %al
cmpl $0x8, -0xc(%rbp)
movb %al, -0x69(%rbp)
je 0x165c78
cmpl $0x9, -0xc(%rbp)
sete %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x2d(%rbp)
testb $0x1, -0x21(%rbp)
je 0x16645b
xorps %xmm0, %xmm0
ucomiss -0x10(%rbp), %xmm0
jb 0x165ca0
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x166456
movss -0x10(%rbp), %xmm0
movss 0xaf8f(%rip), %xmm1     # 0x170c3c
ucomiss %xmm1, %xmm0
jb 0x165cbf
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x166454
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq %rcx, %rax
setb -0x39(%rbp)
movaps 0x2856b(%rip), %xmm1    # 0x18e240
movq -0x18(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x2856a(%rip), %xmm1    # 0x18e250
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x15b460
movaps %xmm0, %xmm1
movss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x165d85
movq -0x18(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x74(%rbp)
testq %rax, %rax
movss %xmm0, -0x70(%rbp)
js 0x165d45
movss -0x74(%rbp), %xmm0
movss %xmm0, -0x70(%rbp)
movss -0x70(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x165d6b
movss -0x28(%rbp), %xmm0
movd %xmm0, %eax
xorl $0x80000000, %eax       # imm = 0x80000000
movd %eax, %xmm0
movss %xmm0, -0x78(%rbp)
jmp 0x165d75
movss -0x28(%rbp), %xmm0
movss %xmm0, -0x78(%rbp)
movss -0x78(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x80(%rbp)
jmp 0x165db1
movaps 0x284b4(%rip), %xmm1    # 0x18e240
movq -0x18(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x284b3(%rip), %xmm1    # 0x18e250
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0x80(%rbp)
movsd -0x80(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movaps 0x2847e(%rip), %xmm1    # 0x18e240
movq -0x20(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x2847d(%rip), %xmm1    # 0x18e250
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x15b460
movaps %xmm0, %xmm1
movss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x165e91
movq -0x20(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x88(%rbp)
testq %rax, %rax
movss %xmm0, -0x84(%rbp)
js 0x165e42
movss -0x88(%rbp), %xmm0
movss %xmm0, -0x84(%rbp)
movss -0x84(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x165e6e
movss -0x28(%rbp), %xmm0
movd %xmm0, %eax
xorl $0x80000000, %eax       # imm = 0x80000000
movd %eax, %xmm0
movss %xmm0, -0x8c(%rbp)
jmp 0x165e7b
movss -0x28(%rbp), %xmm0
movss %xmm0, -0x8c(%rbp)
movss -0x8c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x98(%rbp)
jmp 0x165ec0
movaps 0x283a8(%rip), %xmm1    # 0x18e240
movq -0x20(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x283a7(%rip), %xmm1    # 0x18e250
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0x98(%rbp)
movsd -0x98(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
testb $0x1, -0x39(%rbp)
je 0x165ee0
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x15b4a0
movq -0x20(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0xa0(%rbp)
testq %rax, %rax
movss %xmm0, -0x9c(%rbp)
js 0x165f25
movss -0xa0(%rbp), %xmm0
movss %xmm0, -0x9c(%rbp)
movss -0x9c(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x165fa7
jp 0x165fa7
movq -0x18(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0xa8(%rbp)
testq %rax, %rax
movss %xmm0, -0xa4(%rbp)
js 0x165f7c
movss -0xa8(%rbp), %xmm0
movss %xmm0, -0xa4(%rbp)
movss -0xa4(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x165fa7
movss -0x28(%rbp), %xmm0
movd %xmm0, %eax
xorl $0x80000000, %eax       # imm = 0x80000000
movd %eax, %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x50(%rbp)
testb $0x1, -0x39(%rbp)
je 0x165fc4
movss 0xac87(%rip), %xmm0     # 0x170c3c
subss -0x10(%rbp), %xmm0
movss %xmm0, -0xac(%rbp)
jmp 0x165fd1
movss -0x10(%rbp), %xmm0
movss %xmm0, -0xac(%rbp)
movss -0xac(%rbp), %xmm0
movss %xmm0, -0x54(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
imulq %rcx, %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0xb4(%rbp)
testq %rax, %rax
movss %xmm0, -0xb0(%rbp)
js 0x16602b
movss -0xb4(%rbp), %xmm0
movss %xmm0, -0xb0(%rbp)
movss -0xb0(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x1662de
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x15b6e0
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0xbc(%rbp)
testq %rax, %rax
movss %xmm0, -0xb8(%rbp)
js 0x16608d
movss -0xbc(%rbp), %xmm0
movss %xmm0, -0xb8(%rbp)
movss -0xb8(%rbp), %xmm0
movaps 0xbf54(%rip), %xmm1     # 0x171ff0
pxor %xmm1, %xmm0
movss %xmm0, -0xc8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0xc4(%rbp)
testq %rax, %rax
movss %xmm0, -0xc0(%rbp)
js 0x1660ed
movss -0xc4(%rbp), %xmm0
movss %xmm0, -0xc0(%rbp)
movss -0xc0(%rbp), %xmm0
movss %xmm0, -0xd4(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0xd0(%rbp)
testq %rax, %rax
movss %xmm0, -0xcc(%rbp)
js 0x166142
movss -0xd0(%rbp), %xmm0
movss %xmm0, -0xcc(%rbp)
movss -0xd4(%rbp), %xmm0
movss -0xcc(%rbp), %xmm1
subss %xmm1, %xmm0
callq 0x15b230
movaps %xmm0, %xmm1
movss -0xc8(%rbp), %xmm0
divss %xmm1, %xmm0
movss %xmm0, -0x58(%rbp)
movss -0x58(%rbp), %xmm0
subss -0x2c(%rbp), %xmm0
movss %xmm0, -0x5c(%rbp)
movss -0x58(%rbp), %xmm0
addss -0x2c(%rbp), %xmm0
movss %xmm0, -0x60(%rbp)
movss -0x54(%rbp), %xmm0
ucomiss -0x5c(%rbp), %xmm0
jb 0x1661b4
movss -0x54(%rbp), %xmm1
movss -0x60(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jb 0x1661b4
movq $0x0, -0x38(%rbp)
jmp 0x1662d9
movss -0x54(%rbp), %xmm1
movss -0x58(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x16625d
movss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd %xmm1, -0xf8(%rbp)
movsd -0x48(%rbp), %xmm0
movapd 0x2807b(%rip), %xmm2    # 0x18e260
movaps %xmm2, -0xf0(%rbp)
pxor %xmm2, %xmm0
divsd %xmm1, %xmm0
movss -0x54(%rbp), %xmm2
movss -0x5c(%rbp), %xmm1
divss %xmm1, %xmm2
movss 0xaa32(%rip), %xmm1     # 0x170c3c
subss %xmm2, %xmm1
cvtss2sd %xmm1, %xmm1
callq 0x15b510
movsd -0xf8(%rbp), %xmm1
movaps %xmm0, %xmm2
movaps -0xf0(%rbp), %xmm0
mulsd %xmm2, %xmm1
pxor %xmm0, %xmm1
movaps %xmm1, %xmm0
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x28180(%rip), %xmm1    # 0x18e3c8
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x1662d7
movss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd %xmm1, -0x100(%rbp)
movsd -0x50(%rbp), %xmm0
divsd %xmm1, %xmm0
movss -0x54(%rbp), %xmm1
movss -0x60(%rbp), %xmm3
subss %xmm3, %xmm1
movss 0xa9af(%rip), %xmm2     # 0x170c3c
subss %xmm3, %xmm2
divss %xmm2, %xmm1
cvtss2sd %xmm1, %xmm1
callq 0x15b510
movaps %xmm0, %xmm1
movsd -0x100(%rbp), %xmm0
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x28104(%rip), %xmm1    # 0x18e3c8
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x1662d9
jmp 0x166452
movq -0x18(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x108(%rbp)
testq %rax, %rax
movss %xmm0, -0x104(%rbp)
js 0x166323
movss -0x108(%rbp), %xmm0
movss %xmm0, -0x104(%rbp)
movss -0x104(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
ja 0x166388
movq -0x20(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x110(%rbp)
testq %rax, %rax
movss %xmm0, -0x10c(%rbp)
js 0x166378
movss -0x110(%rbp), %xmm0
movss %xmm0, -0x10c(%rbp)
movss -0x10c(%rbp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x1663f3
movsd -0x50(%rbp), %xmm1
movsd %xmm1, -0x118(%rbp)
movsd -0x48(%rbp), %xmm0
divsd %xmm1, %xmm0
movss -0x54(%rbp), %xmm2
movss 0xa891(%rip), %xmm1     # 0x170c3c
subss %xmm2, %xmm1
cvtss2sd %xmm1, %xmm1
callq 0x15b510
movaps %xmm0, %xmm1
movsd -0x118(%rbp), %xmm0
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x27fea(%rip), %xmm1    # 0x18e3c8
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x166450
movsd -0x48(%rbp), %xmm1
movsd %xmm1, -0x120(%rbp)
movsd -0x50(%rbp), %xmm0
divsd %xmm1, %xmm0
movss -0x54(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
callq 0x15b510
movaps %xmm0, %xmm1
movsd -0x120(%rbp), %xmm0
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x27f8b(%rip), %xmm1    # 0x18e3c8
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x166452
jmp 0x166454
jmp 0x166456
jmp 0x16653c
testb $0x1, -0x2d(%rbp)
je 0x16647c
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movss -0x10(%rbp), %xmm0
callq 0x15b710
movq %rax, -0x38(%rbp)
jmp 0x16653a
movss -0x10(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x121c3(%rip), %xmm0    # 0x178650
ucomisd %xmm1, %xmm0
jbe 0x166530
movq -0x20(%rbp), %rax
subq -0x18(%rbp), %rax
cvtsi2ss %rax, %xmm0
mulss -0x10(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x68(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x140(%rbp)
movsd -0x68(%rbp), %xmm0
movsd %xmm0, -0x138(%rbp)
movq -0x18(%rbp), %rax
movq -0x20(%rbp), %rcx
movsd 0x27ede(%rip), %xmm0    # 0x18e3b8
movsd 0x27ede(%rip), %xmm1    # 0x18e3c0
movsd %xmm1, -0x130(%rbp)
cmpq %rcx, %rax
movsd %xmm0, -0x128(%rbp)
ja 0x166507
movsd -0x130(%rbp), %xmm0
movsd %xmm0, -0x128(%rbp)
movq -0x140(%rbp), %rax
movsd -0x138(%rbp), %xmm0
movsd -0x128(%rbp), %xmm1
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
jmp 0x166538
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x16653a
jmp 0x16653c
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)