// File: /workspace/github_cpp_makefile_star2_O3/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::RadioButton(char const*, bool)
bool ImGui::RadioButton(const char* label, bool active)
{
    ImGuiWindow* window = GetCurrentWindow();
    if (window->SkipItems)
        return false;

    ImGuiState& g = *GImGui;
    const ImGuiStyle& style = g.Style;
    const ImGuiID id = window->GetID(label);
    const ImVec2 label_size = CalcTextSize(label, NULL, true);

    const ImRect check_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(label_size.y + style.FramePadding.y*2-1, label_size.y + style.FramePadding.y*2-1));
    ItemSize(check_bb, style.FramePadding.y);

    ImRect total_bb = check_bb;
    if (label_size.x > 0)
        SameLine(0, style.ItemInnerSpacing.x);
    const ImRect text_bb(window->DC.CursorPos + ImVec2(0, style.FramePadding.y), window->DC.CursorPos + ImVec2(0, style.FramePadding.y) + label_size);
    if (label_size.x > 0)
    {
        ItemSize(ImVec2(text_bb.GetWidth(), check_bb.GetHeight()), style.FramePadding.y);
        total_bb.Add(text_bb);
    }

    if (!ItemAdd(total_bb, &id))
        return false;

    ImVec2 center = check_bb.GetCenter();
    center.x = (float)(int)center.x + 0.5f;
    center.y = (float)(int)center.y + 0.5f;
    const float radius = check_bb.GetHeight() * 0.5f;

    bool hovered, held;
    bool pressed = ButtonBehavior(total_bb, id, &hovered, &held, true);

    window->DrawList->AddCircleFilled(center, radius, window->Color((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), 16);
    if (active)
    {
        const float check_sz = ImMin(check_bb.GetWidth(), check_bb.GetHeight());
        const float pad = ImMax(1.0f, (float)(int)(check_sz / 6.0f));
        window->DrawList->AddCircleFilled(center, radius-pad, window->Color(ImGuiCol_CheckMark), 16);
    }

    if (window->Flags & ImGuiWindowFlags_ShowBorders)
    {
        window->DrawList->AddCircle(center+ImVec2(1,1), radius, window->Color(ImGuiCol_BorderShadow), 16);
        window->DrawList->AddCircle(center, radius, window->Color(ImGuiCol_Border), 16);
    }

    if (g.LogEnabled)
        LogRenderedText(text_bb.GetTL(), active ? "(x)" : "( )");
    RenderText(text_bb.GetTL(), label);

    return pressed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq 0x3797f(%rip), %r14     # 0x55480
movq 0x1758(%r14), %r15
movb $0x1, 0x72(%r15)
cmpb $0x0, 0x74(%r15)
jne 0x1e004
movl %esi, %r12d
movq %rdi, %rbx
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xa766
movl %eax, -0x38(%rbp)
movss 0x1f866(%rip), %xmm0    # 0x3d39c
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xe505
movaps %xmm0, -0x90(%rbp)
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1     # xmm1 = xmm1[1,1],xmm0[1,1]
movss 0x140c(%r14), %xmm0
movaps %xmm0, %xmm3
addss %xmm0, %xmm3
movaps %xmm1, -0x100(%rbp)
addss %xmm1, %xmm3
addss 0x1f826(%rip), %xmm3    # 0x3d39c
movss 0xa8(%r15), %xmm2
movaps %xmm2, -0x70(%rbp)
movss 0xac(%r15), %xmm4
movaps %xmm4, -0x60(%rbp)
movaps %xmm2, %xmm1
addss %xmm3, %xmm1
movss %xmm1, -0x30(%rbp)
addss %xmm4, %xmm3
movss %xmm3, -0x2c(%rbp)
subss %xmm2, %xmm1
movaps %xmm3, %xmm2
subss %xmm4, %xmm2
movaps %xmm1, -0xf0(%rbp)
movaps %xmm2, -0xc0(%rbp)
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
leaq -0xa0(%rbp), %rdi
movlps %xmm1, (%rdi)
callq 0xa99d
movaps -0x90(%rbp), %xmm3
movaps -0x70(%rbp), %xmm0
movss %xmm0, -0x50(%rbp)
movaps -0x60(%rbp), %xmm0
movss %xmm0, -0x4c(%rbp)
movss -0x30(%rbp), %xmm0
movss %xmm0, -0x48(%rbp)
movss -0x2c(%rbp), %xmm0
movss %xmm0, -0x44(%rbp)
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm3
jbe 0x1dc60
movss 0x141c(%r14), %xmm0
movq 0x3786b(%rip), %rcx     # 0x55480
movq 0x1758(%rcx), %rax
movb $0x1, 0x72(%rax)
cmpb $0x0, 0x74(%rax)
jne 0x1dc60
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1dc36
movss 0x1414(%rcx), %xmm0
addss 0xb0(%rax), %xmm0
movl 0xb4(%rax), %ecx
movq 0xd0(%rax), %rdx
movq %rdx, 0xc8(%rax)
movss %xmm0, 0xa8(%rax)
movl %ecx, 0xac(%rax)
ucomiss %xmm2, %xmm3
movss 0x140c(%r14), %xmm0
movss 0xa8(%r15), %xmm4
addss %xmm4, %xmm2
movss 0xac(%r15), %xmm1
addss %xmm0, %xmm1
movaps %xmm1, -0xe0(%rbp)
movaps %xmm2, -0xb0(%rbp)
jbe 0x1dd23
addss %xmm2, %xmm3
movaps %xmm3, -0x90(%rbp)
movaps %xmm3, %xmm1
subss %xmm2, %xmm1
leaq -0xa0(%rbp), %rdi
movss %xmm1, (%rdi)
movaps -0xc0(%rbp), %xmm1
movss %xmm1, 0x4(%rdi)
movss %xmm4, -0x74(%rbp)
callq 0xa99d
movaps -0xb0(%rbp), %xmm0
movaps -0x70(%rbp), %xmm1
ucomiss -0x74(%rbp), %xmm1
jbe 0x1dce3
movss %xmm0, -0x50(%rbp)
movaps -0xe0(%rbp), %xmm0
movaps -0x60(%rbp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x1dcf8
movss %xmm0, -0x4c(%rbp)
movaps -0x100(%rbp), %xmm1
addss %xmm0, %xmm1
movaps %xmm1, %xmm0
movaps -0x90(%rbp), %xmm1
ucomiss -0x30(%rbp), %xmm1
jbe 0x1dd18
movss %xmm1, -0x48(%rbp)
ucomiss -0x2c(%rbp), %xmm0
jbe 0x1dd23
movss %xmm0, -0x44(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xaaef
testb %al, %al
je 0x1e004
movq %rbx, -0x90(%rbp)
movaps -0x70(%rbp), %xmm0
addss -0x30(%rbp), %xmm0
movss 0x1f67c(%rip), %xmm2    # 0x3d3cc
mulss %xmm2, %xmm0
movaps -0x60(%rbp), %xmm1
addss -0x2c(%rbp), %xmm1
mulss %xmm2, %xmm1
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
addss %xmm2, %xmm0
leaq -0x40(%rbp), %rax
movss %xmm0, (%rax)
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x4(%rax)
mulss -0xc0(%rbp), %xmm2
movss %xmm2, -0x60(%rbp)
movl -0x38(%rbp), %esi
leaq -0x50(%rbp), %rdi
leaq -0x32(%rbp), %rbx
movl %r12d, -0x2c(%rbp)
leaq -0x31(%rbp), %r13
movq %rbx, %rdx
movq %r13, %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x13a49
movl %eax, %r12d
movq 0x270(%r15), %rax
movq %rax, -0x70(%rbp)
movb (%r13), %al
movl -0x2c(%rbp), %r13d
movb (%rbx), %cl
movl %eax, %edx
xorb $0x1, %dl
andb %cl, %dl
movzbl %dl, %edx
orl $0x6, %edx
testb $0x1, %cl
movl $0x8, %ecx
cmovel %edx, %ecx
movq 0x37691(%rip), %rsi     # 0x55480
testb %al, %al
cmovel %edx, %ecx
shll $0x4, %ecx
movups 0x1460(%rsi,%rcx), %xmm0
leaq -0xa0(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x13e8(%rsi), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8c82
movq -0x70(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movss -0x60(%rbp), %xmm0
movl %eax, %edx
movl $0x10, %ecx
callq 0x2fe28
testb %r13b, %r13b
je 0x1dec8
movaps -0xf0(%rbp), %xmm0
minss -0xc0(%rbp), %xmm0
divss 0x1f54b(%rip), %xmm0    # 0x3d3a4
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movss 0x1f528(%rip), %xmm1    # 0x3d390
maxss %xmm0, %xmm1
movq 0x270(%r15), %rbx
movss -0x60(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x70(%rbp)
movq 0x375f8(%rip), %rax     # 0x55480
movups 0x1580(%rax), %xmm0
leaq -0xa0(%rbp), %rdi
movaps %xmm0, (%rdi)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%rdi), %xmm0
movss %xmm0, 0xc(%rdi)
callq 0x8c82
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
movss -0x70(%rbp), %xmm0
movl %eax, %edx
movl $0x10, %ecx
callq 0x2fe28
testb $-0x80, 0xc(%r15)
je 0x1dfa7
movss 0x1f4b5(%rip), %xmm0    # 0x3d390
leaq -0x40(%rbp), %rax
movss (%rax), %xmm1
addss %xmm0, %xmm1
addss 0x4(%rax), %xmm0
movq 0x270(%r15), %rbx
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
leaq -0xc8(%rbp), %rax
movlps %xmm1, (%rax)
movq 0x37579(%rip), %rax     # 0x55480
movups 0x14b0(%rax), %xmm0
leaq -0xa0(%rbp), %r13
movaps %xmm0, (%r13)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%r13), %xmm0
movss %xmm0, 0xc(%r13)
movq %r13, %rdi
callq 0x8c82
movq %rbx, %rdi
leaq -0xc8(%rbp), %rsi
movss -0x60(%rbp), %xmm0
movl %eax, %edx
movl $0x10, %ecx
callq 0x2fd7e
movq 0x270(%r15), %rbx
movq 0x37521(%rip), %rax     # 0x55480
movups 0x14a0(%rax), %xmm0
movaps %xmm0, (%r13)
movss 0x13e8(%rax), %xmm0
mulss 0xc(%r13), %xmm0
movss %xmm0, 0xc(%r13)
movl -0x2c(%rbp), %r13d
leaq -0xa0(%rbp), %rdi
callq 0x8c82
movq %rbx, %rdi
leaq -0x40(%rbp), %rsi
movss -0x60(%rbp), %xmm0
movl %eax, %edx
movl $0x10, %ecx
callq 0x2fd7e
movaps -0xb0(%rbp), %xmm1
movaps -0xe0(%rbp), %xmm0
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cmpb $0x1, 0x2be8(%r14)
jne 0x1dfec
leaq 0x2042e(%rip), %rax     # 0x3e3f7
leaq 0x2042b(%rip), %rdi     # 0x3e3fb
testb %r13b, %r13b
cmovneq %rax, %rdi
xorl %esi, %esi
movaps %xmm1, -0xb0(%rbp)
callq 0xe021
movaps -0xb0(%rbp), %xmm1
movaps %xmm1, %xmm0
movq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xdecf
jmp 0x1e007
xorl %r12d, %r12d
movl %r12d, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq