// File: /workspace/github_cpp_makefile_star2_O3/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 0x42538(%rip), %rax     # 0x55480
movq 0x1758(%rax), %r13
movb $0x1, 0x72(%r13)
callq 0xaf8c
movss 0x18(%r13), %xmm4
movss 0xac(%r13), %xmm1
subss 0x1c(%r13), %xmm1
movss 0xa8(%r13), %xmm5
movsd (%r12), %xmm2
cvttss2si %xmm2, %edx
cvttps2dq %xmm2, %xmm3
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
cvttss2si %xmm2, %eax
cvtdq2ps %xmm3, %xmm3
cvttps2dq %xmm2, %xmm2
cvtdq2ps %xmm2, %xmm2
movaps %xmm3, %xmm6
unpcklps %xmm2, %xmm6            # xmm6 = xmm6[0],xmm2[0],xmm6[1],xmm2[1]
movlps %xmm6, -0x30(%rbp)
movl $0x100103, %ecx         # imm = 0x100103
testl %edx, %edx
jg 0x12fdc
subss %xmm4, %xmm5
movaps %xmm0, %xmm4
subss %xmm5, %xmm4
sete %cl
movzbl %cl, %ecx
shll $0x15, %ecx
orl $0x100103, %ecx         # imm = 0x100103
maxss 0x2a3e4(%rip), %xmm4    # 0x3d3b0
andps 0x2a30d(%rip), %xmm3    # 0x3d2e0
subss %xmm3, %xmm4
movss %xmm4, -0x30(%rbp)
testl %eax, %eax
jg 0x1300d
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
subss %xmm1, %xmm0
leal 0x400000(%rcx), %edx
testl %eax, %eax
cmovnel %ecx, %edx
maxss 0x2a3b5(%rip), %xmm0    # 0x3d3b0
andps 0x2a2de(%rip), %xmm2    # 0x3d2e0
subss %xmm2, %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 0x2acdd(%rip), %rdx     # 0x3dd09
leaq -0x130(%rbp), %r14
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
movq %rbx, %r8
xorl %eax, %eax
callq 0x8678
leaq -0x30(%rbp), %rdx
movss 0x2a33f(%rip), %xmm0    # 0x3d390
movq %r14, %rdi
xorl %esi, %esi
movl %r12d, %ecx
callq 0xf554
testb $-0x80, 0xc(%r13)
jne 0x1307b
movq 0x42414(%rip), %rcx     # 0x55480
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