void bios_linker_loader_add_pointer(GArray *linker,

                                    const char *dest_file,

                                    const char *src_file,

                                    GArray *table, void *pointer,

                                    uint8_t pointer_size)

{

    BiosLinkerLoaderEntry entry;



    memset(&entry, 0, sizeof entry);

    strncpy(entry.pointer.dest_file, dest_file,

            sizeof entry.pointer.dest_file - 1);

    strncpy(entry.pointer.src_file, src_file,

            sizeof entry.pointer.src_file - 1);

    entry.command = cpu_to_le32(BIOS_LINKER_LOADER_COMMAND_ADD_POINTER);

    entry.pointer.offset = cpu_to_le32((gchar *)pointer - table->data);

    entry.pointer.size = pointer_size;

    assert(pointer_size == 1 || pointer_size == 2 ||

           pointer_size == 4 || pointer_size == 8);



    g_array_append_val(linker, entry);

}

void bios_linker_loader_add_pointer(GArray *linker,

                                    const char *dest_file,

                                    const char *src_file,

                                    GArray *table, void *pointer,

                                    uint8_t pointer_size)

{

    BiosLinkerLoaderEntry entry;



    memset(&entry, 0, sizeof entry);

    strncpy(entry.pointer.dest_file, dest_file,

            sizeof entry.pointer.dest_file - 1);

    strncpy(entry.pointer.src_file, src_file,

            sizeof entry.pointer.src_file - 1);

    entry.command = cpu_to_le32(BIOS_LINKER_LOADER_COMMAND_ADD_POINTER);

    entry.pointer.offset = cpu_to_le32((gchar *)pointer - table->data);

    entry.pointer.size = pointer_size;

    assert(pointer_size == 1 || pointer_size == 2 ||

           pointer_size == 4 || pointer_size == 8);



    g_array_append_val(linker, entry);

}

void FUNC_0(GArray *VAR_0,

                                    const char *VAR_1,

                                    const char *VAR_2,

                                    GArray *VAR_3, void *VAR_4,

                                    uint8_t VAR_5)

{

    BiosLinkerLoaderEntry entry;



    memset(&entry, 0, sizeof entry);

    strncpy(entry.VAR_4.VAR_1, VAR_1,

            sizeof entry.VAR_4.VAR_1 - 1);

    strncpy(entry.VAR_4.VAR_2, VAR_2,

            sizeof entry.VAR_4.VAR_2 - 1);

    entry.command = cpu_to_le32(BIOS_LINKER_LOADER_COMMAND_ADD_POINTER);

    entry.VAR_4.offset = cpu_to_le32((gchar *)VAR_4 - VAR_3->data);

    entry.VAR_4.size = VAR_5;

    assert(VAR_5 == 1 || VAR_5 == 2 ||

           VAR_5 == 4 || VAR_5 == 8);



    g_array_append_val(VAR_0, entry);

}

void FUNC_0(GArray *VAR_0,
const char *VAR_1,
const char *VAR_2,
GArray *VAR_3, void *VAR_4,
uint8_t VAR_5)
{ BiosLinkerLoaderEntry entry; memset(&entry, 0, sizeof entry); strncpy(entry.VAR_4.VAR_1, VAR_1,
sizeof entry.VAR_4.VAR_1 - 1); strncpy(entry.VAR_4.VAR_2, VAR_2,
sizeof entry.VAR_4.VAR_2 - 1); entry.command = cpu_to_le32(BIOS_LINKER_LOADER_COMMAND_ADD_POINTER); entry.VAR_4.offset = cpu_to_le32((gchar *)VAR_4 - VAR_3->data); entry.VAR_4.size = VAR_5; assert(VAR_5 == 1 || VAR_5 == 2 ||
VAR_5 == 4 || VAR_5 == 8); g_array_append_val(VAR_0, entry); }