//
// Generated by dtk
// Translation Unit: f_op_draw_iter.cpp
//

#include "f_op/f_op_draw_iter.h"
#include "SSystem/SComponent/c_list.h"
#include "SSystem/SComponent/c_tag.h"
#include "f_op/f_op_draw_tag.h"

static s32 l_fopDwTg_id;

/* 8003C640-8003C684       .text fopDwIt_GetTag__Fv */
create_tag_class* fopDwIt_GetTag() {
    while (l_fopDwTg_id + 1 < g_fopDwTg_Queue.mNumLists) {
        l_fopDwTg_id++;

        create_tag_class* tag = (create_tag_class*)g_fopDwTg_Queue.mpLists[l_fopDwTg_id].mpHead;
        if (tag != NULL)
            return tag;
    }

    return NULL;
}

/* 8003C684-8003C6C0       .text fopDwIt_Begin__Fv */
create_tag_class* fopDwIt_Begin() {
    create_tag_class* createTagClass = (create_tag_class*)g_fopDwTg_Queue.mpLists->mpHead;
    l_fopDwTg_id = 0;

    if (createTagClass) {
        return createTagClass;
    }

    return createTagClass = fopDwIt_GetTag();
}

/* 8003C6C0-8003C6EC       .text fopDwIt_Next__FP16create_tag_class */
create_tag_class* fopDwIt_Next(create_tag_class *i_createTag) {
    create_tag_class* createTagClass = (create_tag_class*)i_createTag->mpNode.mpNextNode;
    if (!createTagClass) {
        createTagClass = fopDwIt_GetTag();
    }

    return createTagClass;
}
