// File: /workspace/github_cpp_makefile_star2_O1/Ciaxur[P]yagb-emu/include/imgui/imgui.cpp
// Function: ImGui::PushMultiItemsWidths(int, float)
void ImGui::PushMultiItemsWidths(int components, float w_full)
{
    ImGuiContext& g = *GImGui;
    ImGuiWindow* window = g.CurrentWindow;
    const ImGuiStyle& style = g.Style;
    const float w_item_one  = ImMax(1.0f, IM_FLOOR((w_full - (style.ItemInnerSpacing.x) * (components - 1)) / (float)components));
    const float w_item_last = ImMax(1.0f, IM_FLOOR(w_full - (w_item_one + style.ItemInnerSpacing.x) * (components - 1)));
    window->DC.ItemWidthStack.push_back(w_item_last);
    for (int i = 0; i < components - 1; i++)
        window->DC.ItemWidthStack.push_back(w_item_one);
    window->DC.ItemWidth = window->DC.ItemWidthStack.back();
    g.NextItemData.Flags &= ~ImGuiNextItemDataFlags_HasWidth;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebx
movq 0xa6dc3(%rip), %r15     # 0xfdcd0
leal -0x1(%rbx), %r13d
cvtsi2ss %r13d, %xmm1
movq 0x1ae0(%r15), %r12
movss 0x15b0(%r15), %xmm2
movaps %xmm2, %xmm3
mulss %xmm1, %xmm3
movaps %xmm0, %xmm4
cvtsi2ss %edi, %xmm5
subss %xmm3, %xmm4
divss %xmm5, %xmm4
cvttps2dq %xmm4, %xmm3
cvtdq2ps %xmm3, %xmm3
movss 0x60099(%rip), %xmm5    # 0xb6fe4
movaps %xmm5, %xmm4
maxss %xmm3, %xmm4
addss %xmm4, %xmm2
mulss %xmm1, %xmm2
subss %xmm2, %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
maxss %xmm0, %xmm5
movl 0x1d8(%r12), %r14d
movl 0x1dc(%r12), %eax
cmpl %eax, %r14d
movss %xmm4, -0x2c(%rbp)
jne 0x57044
incl %r14d
testl %eax, %eax
je 0x56f9b
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x56fa0
movl $0x8, %ecx
cmpl %r14d, %ecx
cmovgl %ecx, %r14d
cmpl %r14d, %eax
jge 0x57044
movss %xmm5, -0x30(%rbp)
movslq %r14d, %rdi
shlq $0x2, %rdi
testq %r15, %r15
je 0x56fc8
incl 0x3b4(%r15)
movq 0xa6d11(%rip), %rsi     # 0xfdce0
callq *0xa253b(%rip)          # 0xf9510
movq 0x1e0(%r12), %rsi
testq %rsi, %rsi
je 0x5702a
movslq 0x1d8(%r12), %rdx
shlq $0x2, %rdx
movq %rax, -0x38(%rbp)
movq %rax, %rdi
callq 0xc080
movq 0x1e0(%r12), %rdi
testq %rdi, %rdi
je 0x57019
movq 0xa6cc2(%rip), %rax     # 0xfdcd0
testq %rax, %rax
je 0x57019
decl 0x3b4(%rax)
movq 0xa6cc0(%rip), %rsi     # 0xfdce0
callq *0xa24f2(%rip)          # 0xf9518
movq -0x38(%rbp), %rax
movq %rax, 0x1e0(%r12)
movl %r14d, 0x1dc(%r12)
movss -0x2c(%rbp), %xmm4
movss -0x30(%rbp), %xmm5
movq 0x1e0(%r12), %rax
movslq 0x1d8(%r12), %rcx
movss %xmm5, (%rax,%rcx,4)
incl 0x1d8(%r12)
cmpl $0x2, %ebx
jl 0x5715d
movl 0x1d8(%r12), %r14d
movl 0x1dc(%r12), %eax
cmpl %eax, %r14d
jne 0x57137
testl %eax, %eax
je 0x57094
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x57099
movl $0x8, %ecx
incl %r14d
cmpl %r14d, %ecx
cmovgl %ecx, %r14d
cmpl %r14d, %eax
jge 0x57137
movq 0xa6c1d(%rip), %rax     # 0xfdcd0
testq %rax, %rax
je 0x570be
incl 0x3b4(%rax)
movslq %r14d, %rdi
shlq $0x2, %rdi
movq 0xa6c14(%rip), %rsi     # 0xfdce0
callq *0xa243e(%rip)          # 0xf9510
movq %rax, %rbx
movq 0x1e0(%r12), %rsi
testq %rsi, %rsi
je 0x57122
movslq 0x1d8(%r12), %rdx
shlq $0x2, %rdx
movq %rbx, %rdi
callq 0xc080
movq 0x1e0(%r12), %rdi
testq %rdi, %rdi
je 0x57115
movq 0xa6bc6(%rip), %rax     # 0xfdcd0
testq %rax, %rax
je 0x57115
decl 0x3b4(%rax)
movq 0xa6bc4(%rip), %rsi     # 0xfdce0
callq *0xa23f6(%rip)          # 0xf9518
movq %rbx, 0x1e0(%r12)
movl %r14d, 0x1dc(%r12)
movss -0x2c(%rbp), %xmm4
movq 0x1e0(%r12), %rax
movslq 0x1d8(%r12), %rcx
movss %xmm4, (%rax,%rcx,4)
incl 0x1d8(%r12)
decl %r13d
jne 0x5706a
movslq 0x1d8(%r12), %rax
testq %rax, %rax
jle 0x57199
movq 0x1e0(%r12), %rcx
movss -0x4(%rcx,%rax,4), %xmm0
movss %xmm0, 0x1d0(%r12)
andb $-0x2, 0x1bf8(%r15)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7883a(%rip), %rdi     # 0xcf9da
leaq 0x644e4(%rip), %rsi     # 0xbb68b
leaq 0x65ba9(%rip), %rcx     # 0xbcd57
movl $0x666, %edx            # imm = 0x666
callq 0xc140