// File: /workspace/github_cpp_makefile_star2_O2/donfreiday[P]gb/./imgui/imgui.cpp
// Function: ImGui::BeginChild(char const*, ImVec2 const&, bool, int)
bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags extra_flags)
{
    ImGuiWindow* window = GetCurrentWindow();
    ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoSavedSettings|ImGuiWindowFlags_ChildWindow;

    const ImVec2 content_avail = ImGui::GetContentRegionAvail();
    ImVec2 size = ImRound(size_arg);
    if (size.x <= 0.0f)
    {
        if (size.x == 0.0f)
            flags |= ImGuiWindowFlags_ChildWindowAutoFitX;
        size.x = ImMax(content_avail.x, 4.0f) - fabsf(size.x); // Arbitrary minimum zero-ish child size of 4.0f (0.0f causing too much issues)
    }
    if (size.y <= 0.0f)
    {
        if (size.y == 0.0f)
            flags |= ImGuiWindowFlags_ChildWindowAutoFitY;
        size.y = ImMax(content_avail.y, 4.0f) - fabsf(size.y);
    }
    if (border)
        flags |= ImGuiWindowFlags_ShowBorders;
    flags |= extra_flags;

    char title[256];
    ImFormatString(title, IM_ARRAYSIZE(title), "%s.%s", window->Name, str_id);

    const float alpha = 1.0f;
    bool ret = ImGui::Begin(title, NULL, size, alpha, flags);

    if (!(window->Flags & ImGuiWindowFlags_ShowBorders))
        GetCurrentWindow()->Flags &= ~ImGuiWindowFlags_ShowBorders;

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %ecx, %r14d
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %rbx
movq 0x407cd(%rip), %rax     # 0x50480
movq 0x1758(%rax), %r13
movb $0x1, 0x72(%r13)
callq 0xfdd2
movsd (%r12), %xmm1
cvttss2si %xmm1, %edx
cvttps2dq %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
cvttss2si %xmm1, %eax
cvtdq2ps %xmm2, %xmm2
cvttps2dq %xmm1, %xmm1
cvtdq2ps %xmm1, %xmm1
movaps %xmm2, %xmm3
unpcklps %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
movlps %xmm3, -0x30(%rbp)
movl $0x100103, %ecx         # imm = 0x100103
testl %edx, %edx
jg 0xfd25
sete %cl
movzbl %cl, %ecx
shll $0x15, %ecx
orl $0x100103, %ecx         # imm = 0x100103
movss 0x266a6(%rip), %xmm3    # 0x363b4
movaps %xmm0, %xmm4
maxss %xmm3, %xmm4
andps 0x265c4(%rip), %xmm2    # 0x362e0
subss %xmm2, %xmm4
movss %xmm4, -0x30(%rbp)
testl %eax, %eax
jg 0xfd52
leal 0x400000(%rcx), %edx
testl %eax, %eax
cmovnel %ecx, %edx
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
maxss 0x26674(%rip), %xmm0    # 0x363b4
andps 0x26599(%rip), %xmm1    # 0x362e0
subss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
movl %edx, %ecx
movl %ecx, %r12d
orl $0x80, %r12d
testb %r15b, %r15b
cmovel %ecx, %r12d
orl %r14d, %r12d
movq (%r13), %rcx
leaq 0x26f50(%rip), %rdx     # 0x36cc1
leaq -0x130(%rbp), %r14
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rbx, %r8
xorl %eax, %eax
callq 0x83b1
leaq -0x30(%rbp), %rdx
movss 0x265fa(%rip), %xmm0    # 0x36390
movq %r14, %rdi
xorl %esi, %esi
movl %r12d, %ecx
callq 0xd385
testb $-0x80, 0xc(%r13)
jne 0xfdc0
movq 0x406cf(%rip), %rcx     # 0x50480
movq 0x1758(%rcx), %rcx
movb $0x1, 0x72(%rcx)
andb $0x7f, 0xc(%rcx)
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq