// File: loop_024.cpp
// Auto-generated by scripts/gen_simd_loop_harness.py — do not hand-edit.
#include "loop_024.h"
#include <cassert>
#include <limits>

extern "C" void inner_loop_024(struct loop_024_data *data);

extern "C" int armbench_entry_loop_024(void *a, void *b, int64_t n, void *res_out) {
    if (n < 0 || n > std::numeric_limits<int>::max()) return -1;
    struct loop_024_data data;
    data.a = static_cast<uint8_t *>(a);
    data.b = static_cast<uint8_t *>(b);
    data.n = static_cast<int64_t>(n);
    data.res = 0u;
    inner_loop_024(&data);
    *static_cast<uint32_t *>(res_out) = data.res;
    return 0;
}