// File: donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::PlotEx(ImGuiPlotType, char const*, float (*)(void*, int), void*, int, int, char const*, float, float, ImVec2)
void ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return;

    ImGuiState& g = *GImGui;
    const ImGuiStyle& style = g.Style;

    const ImVec2 label_size = ImGui::CalcTextSize(label, NULL, true);
    if (graph_size.x == 0.0f)
        graph_size.x = CalcItemWidth() + (style.FramePadding.x * 2);
    if (graph_size.y == 0.0f)
        graph_size.y = label_size.y + (style.FramePadding.y * 2);

    const ImRect frame_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(graph_size.x, graph_size.y));
    const ImRect inner_bb(frame_bb.Min + style.FramePadding, frame_bb.Max - style.FramePadding);
    const ImRect total_bb(frame_bb.Min, frame_bb.Max + ImVec2(label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f, 0));
    ItemSize(total_bb, style.FramePadding.y);
    if (!ItemAdd(total_bb, NULL))
        return;

    // Determine scale from values if not specified
    if (scale_min == FLT_MAX || scale_max == FLT_MAX)
    {
        float v_min = FLT_MAX;
        float v_max = -FLT_MAX;
        for (int i = 0; i < values_count; i++)
        {
            const float v = values_getter(data, i);
            v_min = ImMin(v_min, v);
            v_max = ImMax(v_max, v);
        }
        if (scale_min == FLT_MAX)
            scale_min = v_min;
        if (scale_max == FLT_MAX)
            scale_max = v_max;
    }

    RenderFrame(frame_bb.Min, frame_bb.Max, window->Color(ImGuiCol_FrameBg), true, style.FrameRounding);

    int res_w = ImMin((int)graph_size.x, values_count);
    if (plot_type == ImGuiPlotType_Lines)
        res_w -= 1;

    // Tooltip on hover
    int v_hovered = -1;
    if (IsHovered(inner_bb, 0))
    {
        const float t = ImClamp((g.IO.MousePos.x - inner_bb.Min.x) / (inner_bb.Max.x - inner_bb.Min.x), 0.0f, 0.9999f);
        const int v_idx = (int)(t * (values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0)));
        IM_ASSERT(v_idx >= 0 && v_idx < values_count);

        const float v0 = values_getter(data, (v_idx + values_offset) % values_count);
        const float v1 = values_getter(data, (v_idx + 1 + values_offset) % values_count);
        if (plot_type == ImGuiPlotType_Lines)
            ImGui::SetTooltip("%d: %8.4g\n%d: %8.4g", v_idx, v0, v_idx+1, v1);
        else if (plot_type == ImGuiPlotType_Histogram)
            ImGui::SetTooltip("%d: %8.4g", v_idx, v0);
        v_hovered = v_idx;
    }

    const float t_step = 1.0f / (float)res_w;

    float v0 = values_getter(data, (0 + values_offset) % values_count);
    float t0 = 0.0f;
    ImVec2 p0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) / (scale_max - scale_min)) );

    const ImU32 col_base = window->Color((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLines : ImGuiCol_PlotHistogram);
    const ImU32 col_hovered = window->Color((plot_type == ImGuiPlotType_Lines) ? ImGuiCol_PlotLinesHovered : ImGuiCol_PlotHistogramHovered);

    for (int n = 0; n < res_w; n++)
    {
        const float t1 = t0 + t_step;
        const int v_idx = (int)(t0 * values_count);
        IM_ASSERT(v_idx >= 0 && v_idx < values_count);
        const float v1 = values_getter(data, (v_idx + values_offset + 1) % values_count);
        const ImVec2 p1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) / (scale_max - scale_min)) );

        // NB- Draw calls are merged together by the DrawList system.
        if (plot_type == ImGuiPlotType_Lines)
            window->DrawList->AddLine(ImLerp(inner_bb.Min, inner_bb.Max, p0), ImLerp(inner_bb.Min, inner_bb.Max, p1), v_hovered == v_idx ? col_hovered : col_base);
        else if (plot_type == ImGuiPlotType_Histogram)
            window->DrawList->AddRectFilled(ImLerp(inner_bb.Min, inner_bb.Max, p0), ImLerp(inner_bb.Min, inner_bb.Max, ImVec2(p1.x, 1.0f))+ImVec2(-1,0), v_hovered == v_idx ? col_hovered : col_base);

        t0 = t1;
        p0 = p1;
    }

    // Text overlay
    if (overlay_text)
        RenderTextClipped(ImVec2(frame_bb.Min.x, frame_bb.Min.y + style.FramePadding.y), frame_bb.Max, overlay_text, NULL, NULL, ImGuiAlign_Center);

    RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, inner_bb.Min.y), label);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp            # imm = 0x240
movq 0x10(%rbp), %rax
movlpd %xmm2, -0x8(%rbp)
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
movss %xmm0, -0x34(%rbp)
movss %xmm1, -0x38(%rbp)
callq 0x2e220
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x74(%rax)
je 0x22d7d
jmp 0x23785
movq 0x5673c(%rip), %rax     # 0x794c0
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
addq $0x13e8, %rax           # imm = 0x13E8
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x1, %edx
movss 0x382d1(%rip), %xmm0    # 0x5b07c
callq 0x10930
movlpd %xmm0, -0x58(%rbp)
movss -0x8(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x22de2
jp 0x22de2
callq 0x185e0
movaps %xmm0, %xmm1
movq -0x50(%rbp), %rax
movss 0x20(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x8(%rbp)
movss -0x4(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x22e0c
jp 0x22e0c
movss -0x54(%rbp), %xmm1
movq -0x50(%rbp), %rax
movss 0x24(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x4(%rbp)
movq -0x40(%rbp), %rax
addq $0xa8, %rax
movq %rax, -0x190(%rbp)
movss -0x8(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
leaq -0x78(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x2d280
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdi
callq 0xc7e0
movq -0x190(%rbp), %rsi
movlpd %xmm0, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
movq %rdi, -0x188(%rbp)
leaq -0x70(%rbp), %rdx
callq 0x2eb40
movq -0x188(%rbp), %rdi
movq -0x50(%rbp), %rsi
addq $0x20, %rsi
callq 0xc7e0
movlpd %xmm0, -0x90(%rbp)
leaq -0x60(%rbp), %rdi
movq -0x50(%rbp), %rsi
addq $0x20, %rsi
callq 0xdf20
movlpd %xmm0, -0x98(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x2eb40
leaq -0x68(%rbp), %rax
movq %rax, -0x180(%rbp)
leaq -0x68(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x178(%rbp)
movss -0x58(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x22ef8
movq -0x50(%rbp), %rax
movss 0x34(%rax), %xmm0
addss -0x58(%rbp), %xmm0
movss %xmm0, -0x19c(%rbp)
jmp 0x22f05
xorps %xmm0, %xmm0
movss %xmm0, -0x19c(%rbp)
jmp 0x22f05
movss -0x19c(%rbp), %xmm0
leaq -0xb8(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
xorps %xmm1, %xmm1
callq 0x2d280
movq -0x178(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
callq 0xc7e0
movq -0x180(%rbp), %rsi
movlpd %xmm0, -0xb0(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0xb0(%rbp), %rdx
callq 0x2eb40
movq -0x50(%rbp), %rax
movss 0x24(%rax), %xmm0
leaq -0xa8(%rbp), %rdi
callq 0xc060
leaq -0xa8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xc0a0
testb $0x1, %al
jne 0x22f86
jmp 0x23785
movss -0x34(%rbp), %xmm0
movss 0x38109(%rip), %xmm1    # 0x5b09c
ucomiss %xmm1, %xmm0
jne 0x22f9c
jp 0x22f9c
jmp 0x22fb8
movss -0x38(%rbp), %xmm0
movss 0x380f3(%rip), %xmm1    # 0x5b09c
ucomiss %xmm1, %xmm0
jne 0x23094
jp 0x23094
movss 0x380dc(%rip), %xmm0    # 0x5b09c
movss %xmm0, -0xbc(%rbp)
movss 0x380d0(%rip), %xmm0    # 0x5b0a0
movss %xmm0, -0xc0(%rbp)
movl $0x0, -0xc4(%rbp)
movl -0xc4(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x23050
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rdi
movl -0xc4(%rbp), %esi
callq *%rax
movss %xmm0, -0xc8(%rbp)
movss -0xbc(%rbp), %xmm0
movss -0xc8(%rbp), %xmm1
callq 0xe370
movss %xmm0, -0xbc(%rbp)
movss -0xc0(%rbp), %xmm0
movss -0xc8(%rbp), %xmm1
callq 0xb7c0
movss %xmm0, -0xc0(%rbp)
movl -0xc4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc4(%rbp)
jmp 0x22fe2
movss -0x34(%rbp), %xmm0
movss 0x3803f(%rip), %xmm1    # 0x5b09c
ucomiss %xmm1, %xmm0
jne 0x23071
jp 0x23071
movss -0xbc(%rbp), %xmm0
movss %xmm0, -0x34(%rbp)
movss -0x38(%rbp), %xmm0
movss 0x3801e(%rip), %xmm1    # 0x5b09c
ucomiss %xmm1, %xmm0
jne 0x23092
jp 0x23092
movss -0xc0(%rbp), %xmm0
movss %xmm0, -0x38(%rbp)
jmp 0x23094
movq -0x68(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x40(%rbp), %rdi
movl $0x6, %esi
movss 0x37f5d(%rip), %xmm0    # 0x5b018
callq 0x2ea40
movl %eax, %edi
movq -0x50(%rbp), %rax
movss 0x28(%rax), %xmm2
movsd -0xd0(%rbp), %xmm0
movsd -0xd8(%rbp), %xmm1
movl $0x1, %esi
callq 0x10a20
cvttss2si -0x8(%rbp), %edi
movl -0x2c(%rbp), %esi
callq 0x22cd0
movl %eax, -0xdc(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x2310d
movl -0xdc(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xdc(%rbp)
movl $0xffffffff, -0xe0(%rbp) # imm = 0xFFFFFFFF
leaq -0x88(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0xc3f0
testb $0x1, %al
jne 0x23130
jmp 0x232be
movq -0x48(%rbp), %rax
movss 0xf0(%rax), %xmm0
subss -0x88(%rbp), %xmm0
movss -0x80(%rbp), %xmm1
subss -0x88(%rbp), %xmm1
divss %xmm1, %xmm0
xorps %xmm1, %xmm1
movss 0x37fb8(%rip), %xmm2    # 0x5b118
callq 0xe3b0
movss %xmm0, -0xe4(%rbp)
movss -0xe4(%rbp), %xmm0
movl -0x2c(%rbp), %eax
movl -0xc(%rbp), %esi
xorl %ecx, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpl $0x0, %esi
cmovel %edx, %ecx
addl %ecx, %eax
cvtsi2ss %eax, %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0xe8(%rbp)
xorl %eax, %eax
cmpl $0x0, -0xe8(%rbp)
movb %al, -0x1a9(%rbp)
jl 0x231bf
movl -0xe8(%rbp), %eax
cmpl -0x2c(%rbp), %eax
setl %al
movb %al, -0x1a9(%rbp)
movb -0x1a9(%rbp), %al
testb $0x1, %al
jne 0x231cb
jmp 0x231cd
jmp 0x231ec
leaq 0x38d7a(%rip), %rdi     # 0x5bf4e
leaq 0x380ea(%rip), %rsi     # 0x5b2c5
movl $0x19bd, %edx           # imm = 0x19BD
leaq 0x38d8a(%rip), %rcx     # 0x5bf71
callq 0x7160
movq -0x20(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x28(%rbp), %rdi
movl -0xe8(%rbp), %eax
addl -0x30(%rbp), %eax
cltd
idivl -0x2c(%rbp)
movq -0x1c0(%rbp), %rax
movl %edx, %esi
callq *%rax
movss %xmm0, -0xec(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq -0x28(%rbp), %rdi
movl -0xe8(%rbp), %eax
addl $0x1, %eax
addl -0x30(%rbp), %eax
cltd
idivl -0x2c(%rbp)
movq -0x1b8(%rbp), %rax
movl %edx, %esi
callq *%rax
movss %xmm0, -0xf0(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x2328a
movl -0xe8(%rbp), %esi
movss -0xec(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movl -0xe8(%rbp), %edx
addl $0x1, %edx
movss -0xf0(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0x38d6e(%rip), %rdi     # 0x5bfef
movb $0x2, %al
callq 0x11f80
jmp 0x232b2
cmpl $0x1, -0xc(%rbp)
jne 0x232b0
movl -0xe8(%rbp), %esi
movss -0xec(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x38d50(%rip), %rdi     # 0x5bff9
movb $0x1, %al
callq 0x11f80
jmp 0x232b2
movl -0xe8(%rbp), %eax
movl %eax, -0xe0(%rbp)
cvtsi2ssl -0xdc(%rbp), %xmm1
movss 0x37d4a(%rip), %xmm0    # 0x5b018
divss %xmm1, %xmm0
movss %xmm0, -0xf4(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x28(%rbp), %rdi
movl -0x30(%rbp), %eax
addl $0x0, %eax
cltd
idivl -0x2c(%rbp)
movq -0x1d0(%rbp), %rax
movl %edx, %esi
callq *%rax
movss %xmm0, -0xf8(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0xfc(%rbp)
movss -0xfc(%rbp), %xmm0
movss %xmm0, -0x1c4(%rbp)
movss -0xf8(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss -0x38(%rbp), %xmm1
subss -0x34(%rbp), %xmm1
divss %xmm1, %xmm0
callq 0xa1d0
movaps %xmm0, %xmm2
movss -0x1c4(%rbp), %xmm0
movss 0x37cc4(%rip), %xmm1    # 0x5b018
subss %xmm2, %xmm1
leaq -0x104(%rbp), %rdi
callq 0x2d280
movq -0x40(%rbp), %rdi
movl -0xc(%rbp), %ecx
movl $0x26, %esi
movl $0x24, %eax
cmpl $0x0, %ecx
cmovel %eax, %esi
movss 0x37c95(%rip), %xmm0    # 0x5b018
callq 0x2ea40
movl %eax, -0x108(%rbp)
movq -0x40(%rbp), %rdi
movl -0xc(%rbp), %ecx
movl $0x27, %esi
movl $0x25, %eax
cmpl $0x0, %ecx
cmovel %eax, %esi
movss 0x37c6b(%rip), %xmm0    # 0x5b018
callq 0x2ea40
movl %eax, -0x10c(%rbp)
movl $0x0, -0x110(%rbp)
movl -0x110(%rbp), %eax
cmpl -0xdc(%rbp), %eax
jge 0x236e8
movss -0xfc(%rbp), %xmm0
addss -0xf4(%rbp), %xmm0
movss %xmm0, -0x114(%rbp)
movss -0xfc(%rbp), %xmm0
cvtsi2ssl -0x2c(%rbp), %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x118(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x118(%rbp)
movb %al, -0x1d1(%rbp)
jl 0x2342a
movl -0x118(%rbp), %eax
cmpl -0x2c(%rbp), %eax
setl %al
movb %al, -0x1d1(%rbp)
movb -0x1d1(%rbp), %al
testb $0x1, %al
jne 0x23436
jmp 0x23438
jmp 0x23457
leaq 0x38b0f(%rip), %rdi     # 0x5bf4e
leaq 0x37e7f(%rip), %rsi     # 0x5b2c5
movl $0x19d5, %edx           # imm = 0x19D5
leaq 0x38b1f(%rip), %rcx     # 0x5bf71
callq 0x7160
movq -0x20(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x28(%rbp), %rdi
movl -0x118(%rbp), %eax
addl -0x30(%rbp), %eax
addl $0x1, %eax
cltd
idivl -0x2c(%rbp)
movq -0x1e0(%rbp), %rax
movl %edx, %esi
callq *%rax
movss %xmm0, -0x11c(%rbp)
movss -0x114(%rbp), %xmm0
movss %xmm0, -0x1d8(%rbp)
movss -0x11c(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss -0x38(%rbp), %xmm1
subss -0x34(%rbp), %xmm1
divss %xmm1, %xmm0
callq 0xa1d0
movaps %xmm0, %xmm2
movss -0x1d8(%rbp), %xmm0
movss 0x37b4c(%rip), %xmm1    # 0x5b018
subss %xmm2, %xmm1
leaq -0x124(%rbp), %rdi
callq 0x2d280
cmpl $0x0, -0xc(%rbp)
jne 0x2359c
movq -0x40(%rbp), %rax
movq 0x270(%rax), %rax
movq %rax, -0x1f8(%rbp)
leaq -0x80(%rbp), %rsi
movq %rsi, -0x1e8(%rbp)
leaq -0x88(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
leaq -0x104(%rbp), %rdx
callq 0x23790
movq -0x1f0(%rbp), %rdi
movq -0x1e8(%rbp), %rsi
movlpd %xmm0, -0x12c(%rbp)
leaq -0x124(%rbp), %rdx
callq 0x23790
movlpd %xmm0, -0x134(%rbp)
movl -0xe0(%rbp), %eax
cmpl -0x118(%rbp), %eax
jne 0x23563
movl -0x10c(%rbp), %eax
movl %eax, -0x1fc(%rbp)
jmp 0x2356f
movl -0x108(%rbp), %eax
movl %eax, -0x1fc(%rbp)
movq -0x1f8(%rbp), %rdi
movl -0x1fc(%rbp), %ecx
leaq -0x12c(%rbp), %rsi
leaq -0x134(%rbp), %rdx
movss 0x37a86(%rip), %xmm0    # 0x5b018
callq 0x404c0
jmp 0x236b6
cmpl $0x1, -0xc(%rbp)
jne 0x236b4
movq -0x40(%rbp), %rax
movq 0x270(%rax), %rax
movq %rax, -0x228(%rbp)
leaq -0x80(%rbp), %rsi
movq %rsi, -0x218(%rbp)
leaq -0x88(%rbp), %rdi
movq %rdi, -0x220(%rbp)
leaq -0x104(%rbp), %rdx
callq 0x23790
movlpd %xmm0, -0x13c(%rbp)
movss -0x124(%rbp), %xmm0
leaq -0x154(%rbp), %rdi
movq %rdi, -0x210(%rbp)
movss 0x37a15(%rip), %xmm1    # 0x5b018
callq 0x2d280
movq -0x220(%rbp), %rdi
movq -0x218(%rbp), %rsi
movq -0x210(%rbp), %rdx
callq 0x23790
movlpd %xmm0, -0x14c(%rbp)
leaq -0x15c(%rbp), %rdi
movq %rdi, -0x208(%rbp)
movss 0x37a3c(%rip), %xmm0    # 0x5b07c
xorps %xmm1, %xmm1
callq 0x2d280
movq -0x208(%rbp), %rsi
leaq -0x14c(%rbp), %rdi
callq 0xc7e0
movlpd %xmm0, -0x144(%rbp)
movl -0xe0(%rbp), %eax
cmpl -0x118(%rbp), %eax
jne 0x2367f
movl -0x10c(%rbp), %eax
movl %eax, -0x22c(%rbp)
jmp 0x2368b
movl -0x108(%rbp), %eax
movl %eax, -0x22c(%rbp)
movq -0x228(%rbp), %rdi
movl -0x22c(%rbp), %ecx
leaq -0x13c(%rbp), %rsi
leaq -0x144(%rbp), %rdx
xorps %xmm0, %xmm0
movl $0xf, %r8d
callq 0x40670
jmp 0x236b6
movss -0x114(%rbp), %xmm0
movss %xmm0, -0xfc(%rbp)
movq -0x124(%rbp), %rax
movq %rax, -0x104(%rbp)
movl -0x110(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x110(%rbp)
jmp 0x233c2
cmpq $0x0, 0x10(%rbp)
je 0x23745
movss -0x68(%rbp), %xmm0
movss -0x64(%rbp), %xmm1
movq -0x50(%rbp), %rax
addss 0x24(%rax), %xmm1
leaq -0x164(%rbp), %rdi
callq 0x2d280
leaq -0x68(%rbp), %rsi
addq $0x8, %rsi
movq 0x10(%rbp), %rdx
leaq -0x164(%rbp), %rdi
xorl %eax, %eax
movl %eax, %r8d
movl $0x2, %r9d
movq %r8, %rcx
movq $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
callq 0x105f0
movss -0x60(%rbp), %xmm0
movq -0x50(%rbp), %rax
movss 0x34(%rax), %xmm1
addss %xmm1, %xmm0
movss -0x84(%rbp), %xmm1
leaq -0x16c(%rbp), %rdi
callq 0x2d280
movq -0x18(%rbp), %rdi
movsd -0x16c(%rbp), %xmm0
xorl %eax, %eax
movl %eax, %esi
movl $0x1, %edx
callq 0x10100
addq $0x240, %rsp            # imm = 0x240
popq %rbp
retq
nop