// File: /workspace/github_cpp_makefile_star2_O3/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 0xa5e95(%rip), %rdx     # 0xfbcd0
leal -0x1(%rbx), %r13d
cvtsi2ss %r13d, %xmm1
movq 0x1ae0(%rdx), %r12
movss 0x15b0(%rdx), %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 0x5f16c(%rip), %xmm5    # 0xb4fe4
movaps %xmm5, %xmm4
maxss %xmm3, %xmm4
movss %xmm4, -0x30(%rbp)
addss %xmm4, %xmm2
mulss %xmm1, %xmm2
subss %xmm2, %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
maxss %xmm0, %xmm5
movl 0x1d8(%r12), %eax
cmpl 0x1dc(%r12), %eax
movq %rdx, -0x38(%rbp)
jne 0x55ecb
leal 0x1(%rax), %r15d
testl %eax, %eax
movss %xmm5, -0x2c(%rbp)
je 0x55ed8
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x55edd
movq 0x1e0(%r12), %r14
jmp 0x55f6b
movl $0x8, %ecx
cmpl %r15d, %ecx
cmovgl %ecx, %r15d
movslq %r15d, %rdi
shlq $0x2, %rdi
incl 0x3b4(%rdx)
movq 0xa5de8(%rip), %rsi     # 0xfbce0
callq *0xa1612(%rip)          # 0xf7510
movq %rax, %r14
movq 0x1e0(%r12), %rsi
testq %rsi, %rsi
je 0x55f4e
movslq 0x1d8(%r12), %rdx
shlq $0x2, %rdx
movq %r14, %rdi
callq 0xc080
movq 0x1e0(%r12), %rdi
testq %rdi, %rdi
je 0x55f41
movq 0xa5d9a(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x55f41
decl 0x3b4(%rax)
movq 0xa5d98(%rip), %rsi     # 0xfbce0
callq *0xa15ca(%rip)          # 0xf7518
movq %r14, 0x1e0(%r12)
movl %r15d, 0x1dc(%r12)
movl 0x1d8(%r12), %eax
movss -0x2c(%rbp), %xmm5
cltq
movss %xmm5, (%r14,%rax,4)
movl 0x1d8(%r12), %r14d
incl %r14d
movl %r14d, 0x1d8(%r12)
cmpl $0x2, %ebx
jl 0x56081
cmpl 0x1dc(%r12), %r14d
jne 0x55fae
testl %r14d, %r14d
je 0x55fbb
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
addl %r14d, %eax
jmp 0x55fc0
movq 0x1e0(%r12), %rbx
jmp 0x56058
movl $0x8, %eax
incl %r14d
cmpl %r14d, %eax
cmovgl %eax, %r14d
movq 0xa5cff(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x55fdc
incl 0x3b4(%rax)
movslq %r14d, %rdi
shlq $0x2, %rdi
movq 0xa5cf6(%rip), %rsi     # 0xfbce0
callq *0xa1520(%rip)          # 0xf7510
movq %rax, %rbx
movq 0x1e0(%r12), %rsi
testq %rsi, %rsi
je 0x56040
movslq 0x1d8(%r12), %rdx
shlq $0x2, %rdx
movq %rbx, %rdi
callq 0xc080
movq 0x1e0(%r12), %rdi
testq %rdi, %rdi
je 0x56033
movq 0xa5ca8(%rip), %rax     # 0xfbcd0
testq %rax, %rax
je 0x56033
decl 0x3b4(%rax)
movq 0xa5ca6(%rip), %rsi     # 0xfbce0
callq *0xa14d8(%rip)          # 0xf7518
movq %rbx, 0x1e0(%r12)
movl %r14d, 0x1dc(%r12)
movl 0x1d8(%r12), %r14d
movslq %r14d, %rax
movss -0x30(%rbp), %xmm0
movss %xmm0, (%rbx,%rax,4)
movl 0x1d8(%r12), %r14d
incl %r14d
movl %r14d, 0x1d8(%r12)
decl %r13d
jne 0x55f8f
testl %r14d, %r14d
jle 0x560bb
movq 0x1e0(%r12), %rax
movl %r14d, %ecx
movss -0x4(%rax,%rcx,4), %xmm0
movss %xmm0, 0x1d0(%r12)
movq -0x38(%rbp), %rax
andb $-0x2, 0x1bf8(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x778e8(%rip), %rdi     # 0xcd9aa
leaq 0x635c2(%rip), %rsi     # 0xb968b
leaq 0x64c5a(%rip), %rcx     # 0xbad2a
movl $0x666, %edx            # imm = 0x666
callq 0xc140