// File: /workspace/github_cpp_makefile_star2_O1/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 0x421b0(%rip), %rax     # 0x55490
movq 0x1758(%rax), %r13
movb $0x1, 0x72(%r13)
callq 0xb0a3
movss 0x18(%r13), %xmm5
movss 0xa8(%r13), %xmm4
movss 0xac(%r13), %xmm1
subss 0x1c(%r13), %xmm1
movsd (%r12), %xmm2
cvttps2dq %xmm2, %xmm3
cvtdq2ps %xmm3, %xmm3
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
cvttps2dq %xmm2, %xmm2
cvtdq2ps %xmm2, %xmm2
unpcklps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
movlps %xmm3, -0x30(%rbp)
movss -0x30(%rbp), %xmm3
movl $0x100103, %eax         # imm = 0x100103
xorps %xmm2, %xmm2
ucomiss %xmm3, %xmm2
jb 0x1337a
subss %xmm5, %xmm4
movaps %xmm0, %xmm5
subss %xmm4, %xmm5
movaps %xmm3, %xmm4
cmpeqss %xmm2, %xmm4
movd %xmm4, %eax
andl $0x1, %eax
shll $0x15, %eax
orl $0x100103, %eax         # imm = 0x100103
maxss 0x2a03a(%rip), %xmm5    # 0x3d3a4
andps 0x29f5f(%rip), %xmm3    # 0x3d2d0
subss %xmm3, %xmm5
movss %xmm5, -0x30(%rbp)
movss -0x2c(%rbp), %xmm3
ucomiss %xmm3, %xmm2
jb 0x133b8
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
subss %xmm1, %xmm0
leal 0x400000(%rax), %ecx
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm3
cmovnel %eax, %ecx
cmovpl %eax, %ecx
maxss 0x29ffe(%rip), %xmm0    # 0x3d3a4
andps 0x29f23(%rip), %xmm3    # 0x3d2d0
subss %xmm3, %xmm0
movss %xmm0, -0x2c(%rbp)
movl %ecx, %eax
movl %eax, %r12d
orl $0x80, %r12d
testb %r15b, %r15b
cmovel %eax, %r12d
orl %r14d, %r12d
movq (%r13), %rcx
leaq 0x2a902(%rip), %rdx     # 0x3dcd9
leaq -0x130(%rbp), %r14
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rbx, %r8
xorl %eax, %eax
callq 0x86d8
leaq -0x30(%rbp), %rdx
movss 0x29f84(%rip), %xmm0    # 0x3d380
movq %r14, %rdi
xorl %esi, %esi
movl %r12d, %ecx
callq 0xf7d7
testb $-0x80, 0xc(%r13)
jne 0x13426
movq 0x42079(%rip), %rcx     # 0x55490
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