/* cint-core-1, cint-rt-3, emitted by cintc */
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

#include "cint_rt.h"

CINT_RT_INTERNAL const cint_site_info cg_9_avalanche_sites[759] = {
    {0u, 0u, ""},
    {66u, 20u, "div.checked.i64"},
    {66u, 16u, "sub.checked.i64"},
    {66u, 25u, "div.checked.i64"},
    {67u, 19u, "mul.checked.i64"},
    {67u, 15u, "sub.checked.i64"},
    {68u, 9u, "index.checked.i64"},
    {69u, 7u, "index.checked.i64"},
    {70u, 15u, "mul.checked.i64"},
    {70u, 19u, "div.checked.i64"},
    {70u, 23u, "sub.checked.i64"},
    {71u, 19u, "div.checked.i64"},
    {71u, 15u, "sub.checked.i64"},
    {72u, 17u, "mul.checked.i64"},
    {72u, 21u, "add.checked.i64"},
    {72u, 34u, "div.checked.i64"},
    {73u, 17u, "mul.checked.i64"},
    {73u, 21u, "add.checked.i64"},
    {73u, 34u, "div.checked.i64"},
    {74u, 9u, "mul.checked.i64"},
    {74u, 6u, "index.checked.i64"},
    {75u, 9u, "mul.checked.i64"},
    {75u, 13u, "add.checked.i64"},
    {75u, 6u, "index.checked.i64"},
    {75u, 22u, "sub.checked.i64"},
    {75u, 27u, "sub.checked.i64"},
    {76u, 9u, "mul.checked.i64"},
    {76u, 13u, "add.checked.i64"},
    {76u, 6u, "index.checked.i64"},
    {80u, 22u, "index.checked.i64"},
    {80u, 5u, "call.enter"},
    {81u, 22u, "index.checked.i64"},
    {81u, 5u, "call.enter"},
    {82u, 22u, "index.checked.i64"},
    {82u, 5u, "call.enter"},
    {89u, 19u, "sub.checked.i64"},
    {89u, 23u, "sub.checked.i64"},
    {92u, 19u, "mul.checked.i64"},
    {92u, 33u, "mul.checked.i64"},
    {92u, 25u, "add.checked.i64"},
    {92u, 39u, "rem.checked.i64"},
    {102u, 5u, "fuel.charge"},
    {103u, 11u, "index.checked.i64"},
    {104u, 11u, "index.checked.i64"},
    {105u, 11u, "index.checked.i64"},
    {106u, 11u, "index.checked.i64"},
    {108u, 5u, "fuel.charge"},
    {109u, 19u, "mul.checked.i64"},
    {109u, 26u, "call.enter"},
    {109u, 24u, "add.checked.i64"},
    {110u, 9u, "call.enter"},
    {112u, 29u, "index.checked.i64"},
    {112u, 25u, "sub.checked.i64"},
    {112u, 20u, "mul.checked.i64"},
    {112u, 34u, "div.checked.i64"},
    {113u, 20u, "index.checked.i64"},
    {113u, 24u, "add.checked.i64"},
    {114u, 20u, "index.checked.i64"},
    {115u, 20u, "index.checked.i64"},
    {116u, 20u, "index.checked.i64"},
    {117u, 20u, "index.checked.i64"},
    {117u, 24u, "add.checked.i64"},
    {118u, 20u, "index.checked.i64"},
    {119u, 20u, "index.checked.i64"},
    {120u, 20u, "index.checked.i64"},
    {121u, 20u, "index.checked.i64"},
    {121u, 24u, "add.checked.i64"},
    {122u, 20u, "index.checked.i64"},
    {122u, 34u, "index.checked.i64"},
    {122u, 30u, "mul.checked.i64"},
    {122u, 47u, "index.checked.i64"},
    {122u, 43u, "mul.checked.i64"},
    {122u, 38u, "add.checked.i64"},
    {122u, 60u, "index.checked.i64"},
    {122u, 56u, "mul.checked.i64"},
    {122u, 51u, "add.checked.i64"},
    {122u, 68u, "div.checked.i64"},
    {122u, 64u, "add.checked.i64"},
    {122u, 73u, "div.checked.i64"},
    {122u, 24u, "sub.checked.i64"},
    {123u, 20u, "index.checked.i64"},
    {123u, 34u, "index.checked.i64"},
    {123u, 30u, "mul.checked.i64"},
    {123u, 47u, "index.checked.i64"},
    {123u, 43u, "mul.checked.i64"},
    {123u, 38u, "add.checked.i64"},
    {123u, 60u, "index.checked.i64"},
    {123u, 56u, "mul.checked.i64"},
    {123u, 51u, "add.checked.i64"},
    {123u, 68u, "div.checked.i64"},
    {123u, 64u, "add.checked.i64"},
    {123u, 73u, "div.checked.i64"},
    {123u, 24u, "sub.checked.i64"},
    {124u, 20u, "index.checked.i64"},
    {124u, 34u, "index.checked.i64"},
    {124u, 30u, "mul.checked.i64"},
    {124u, 47u, "index.checked.i64"},
    {124u, 43u, "mul.checked.i64"},
    {124u, 38u, "add.checked.i64"},
    {124u, 60u, "index.checked.i64"},
    {124u, 56u, "mul.checked.i64"},
    {124u, 51u, "add.checked.i64"},
    {124u, 68u, "div.checked.i64"},
    {124u, 64u, "add.checked.i64"},
    {124u, 73u, "div.checked.i64"},
    {124u, 24u, "sub.checked.i64"},
    {125u, 9u, "fuel.charge"},
    {126u, 13u, "fuel.charge"},
    {127u, 28u, "index.checked.i64"},
    {127u, 39u, "add.checked.i64"},
    {127u, 36u, "index.checked.i64"},
    {127u, 33u, "mul.checked.i64"},
    {128u, 32u, "index.checked.i64"},
    {128u, 36u, "add.checked.i64"},
    {128u, 42u, "mul.checked.i64"},
    {128u, 52u, "index.checked.i64"},
    {128u, 46u, "add.checked.i64"},
    {128u, 56u, "add.checked.i64"},
    {128u, 62u, "mul.checked.i64"},
    {128u, 72u, "index.checked.i64"},
    {128u, 66u, "add.checked.i64"},
    {129u, 34u, "mul.checked.i64"},
    {129u, 29u, "add.checked.i64"},
    {129u, 44u, "mul.checked.i64"},
    {129u, 39u, "add.checked.i64"},
    {130u, 34u, "mul.checked.i64"},
    {130u, 29u, "add.checked.i64"},
    {130u, 44u, "mul.checked.i64"},
    {130u, 39u, "add.checked.i64"},
    {131u, 34u, "mul.checked.i64"},
    {131u, 29u, "add.checked.i64"},
    {131u, 44u, "mul.checked.i64"},
    {131u, 39u, "add.checked.i64"},
    {132u, 34u, "index.checked.i64"},
    {132u, 31u, "mul.checked.i64"},
    {133u, 19u, "index.checked.i64"},
    {133u, 28u, "index.checked.i64"},
    {133u, 33u, "add.checked.i64"},
    {134u, 19u, "index.checked.i64"},
    {134u, 28u, "index.checked.i64"},
    {134u, 39u, "mul.checked.i64"},
    {134u, 44u, "div.checked.i64"},
    {134u, 33u, "add.checked.i64"},
    {135u, 19u, "index.checked.i64"},
    {135u, 28u, "index.checked.i64"},
    {135u, 39u, "mul.checked.i64"},
    {135u, 44u, "div.checked.i64"},
    {135u, 33u, "add.checked.i64"},
    {136u, 19u, "index.checked.i64"},
    {136u, 28u, "index.checked.i64"},
    {136u, 39u, "mul.checked.i64"},
    {136u, 44u, "div.checked.i64"},
    {136u, 33u, "add.checked.i64"},
    {137u, 34u, "index.checked.i64"},
    {137u, 31u, "mul.checked.i64"},
    {138u, 23u, "add.checked.i64"},
    {138u, 19u, "index.checked.i64"},
    {138u, 36u, "add.checked.i64"},
    {138u, 32u, "index.checked.i64"},
    {138u, 41u, "add.checked.i64"},
    {139u, 23u, "add.checked.i64"},
    {139u, 19u, "index.checked.i64"},
    {139u, 36u, "add.checked.i64"},
    {139u, 32u, "index.checked.i64"},
    {139u, 53u, "add.checked.i64"},
    {139u, 47u, "mul.checked.i64"},
    {139u, 59u, "div.checked.i64"},
    {139u, 41u, "add.checked.i64"},
    {140u, 23u, "add.checked.i64"},
    {140u, 19u, "index.checked.i64"},
    {140u, 36u, "add.checked.i64"},
    {140u, 32u, "index.checked.i64"},
    {140u, 53u, "add.checked.i64"},
    {140u, 47u, "mul.checked.i64"},
    {140u, 59u, "div.checked.i64"},
    {140u, 41u, "add.checked.i64"},
    {141u, 23u, "add.checked.i64"},
    {141u, 19u, "index.checked.i64"},
    {141u, 36u, "add.checked.i64"},
    {141u, 32u, "index.checked.i64"},
    {141u, 53u, "add.checked.i64"},
    {141u, 47u, "mul.checked.i64"},
    {141u, 59u, "div.checked.i64"},
    {141u, 41u, "add.checked.i64"},
    {142u, 34u, "index.checked.i64"},
    {142u, 31u, "mul.checked.i64"},
    {143u, 23u, "add.checked.i64"},
    {143u, 19u, "index.checked.i64"},
    {143u, 36u, "add.checked.i64"},
    {143u, 32u, "index.checked.i64"},
    {143u, 41u, "add.checked.i64"},
    {144u, 23u, "add.checked.i64"},
    {144u, 19u, "index.checked.i64"},
    {144u, 36u, "add.checked.i64"},
    {144u, 32u, "index.checked.i64"},
    {144u, 57u, "mul.checked.i64"},
    {144u, 53u, "add.checked.i64"},
    {144u, 47u, "mul.checked.i64"},
    {144u, 63u, "div.checked.i64"},
    {144u, 41u, "add.checked.i64"},
    {145u, 23u, "add.checked.i64"},
    {145u, 19u, "index.checked.i64"},
    {145u, 36u, "add.checked.i64"},
    {145u, 32u, "index.checked.i64"},
    {145u, 57u, "mul.checked.i64"},
    {145u, 53u, "add.checked.i64"},
    {145u, 47u, "mul.checked.i64"},
    {145u, 63u, "div.checked.i64"},
    {145u, 41u, "add.checked.i64"},
    {146u, 23u, "add.checked.i64"},
    {146u, 19u, "index.checked.i64"},
    {146u, 36u, "add.checked.i64"},
    {146u, 32u, "index.checked.i64"},
    {146u, 57u, "mul.checked.i64"},
    {146u, 53u, "add.checked.i64"},
    {146u, 47u, "mul.checked.i64"},
    {146u, 63u, "div.checked.i64"},
    {146u, 41u, "add.checked.i64"},
    {154u, 22u, "neg.checked.i64"},
    {154u, 13u, "clamp.checked.i64"},
    {158u, 16u, "sub.checked.i64"},
    {166u, 16u, "rem.checked.i64"},
    {167u, 23u, "div.checked.i64"},
    {169u, 16u, "neg.checked.i64"},
    {169u, 25u, "mul.checked.i64"},
    {169u, 31u, "mul.checked.i64"},
    {169u, 36u, "div.checked.i64"},
    {169u, 21u, "add.checked.i64"},
    {171u, 20u, "mul.checked.i64"},
    {171u, 32u, "sub.checked.i64"},
    {171u, 26u, "mul.checked.i64"},
    {171u, 40u, "div.checked.i64"},
    {171u, 16u, "sub.checked.i64"},
    {177u, 14u, "call.enter"},
    {178u, 25u, "add.checked.i64"},
    {178u, 14u, "call.enter"},
    {179u, 5u, "fuel.charge"},
    {180u, 22u, "index.checked.i64"},
    {180u, 26u, "div.checked.i64"},
    {182u, 15u, "index.checked.i64"},
    {182u, 33u, "index.checked.i64"},
    {182u, 29u, "mul.checked.i64"},
    {182u, 37u, "add.checked.i64"},
    {182u, 50u, "mul.checked.i64"},
    {182u, 45u, "div.checked.i64"},
    {182u, 58u, "add.checked.i64"},
    {182u, 66u, "div.checked.i64"},
    {182u, 21u, "call.enter"},
    {183u, 15u, "index.checked.i64"},
    {183u, 33u, "index.checked.i64"},
    {183u, 29u, "mul.checked.i64"},
    {183u, 37u, "add.checked.i64"},
    {183u, 50u, "mul.checked.i64"},
    {183u, 45u, "div.checked.i64"},
    {183u, 58u, "sub.checked.i64"},
    {183u, 69u, "div.checked.i64"},
    {183u, 75u, "rem.checked.i64"},
    {183u, 21u, "call.enter"},
    {184u, 15u, "index.checked.i64"},
    {184u, 33u, "index.checked.i64"},
    {184u, 29u, "mul.checked.i64"},
    {184u, 37u, "add.checked.i64"},
    {184u, 50u, "mul.checked.i64"},
    {184u, 45u, "div.checked.i64"},
    {184u, 58u, "add.checked.i64"},
    {184u, 66u, "rem.checked.i64"},
    {184u, 21u, "call.enter"},
    {186u, 15u, "index.checked.i64"},
    {187u, 15u, "index.checked.i64"},
    {188u, 15u, "index.checked.i64"},
    {198u, 5u, "fuel.charge"},
    {199u, 19u, "mul.checked.i64"},
    {199u, 24u, "add.checked.i64"},
    {200u, 9u, "call.enter"},
    {205u, 9u, "fuel.charge"},
    {206u, 13u, "fuel.charge"},
    {207u, 28u, "index.checked.i64"},
    {207u, 39u, "add.checked.i64"},
    {207u, 36u, "index.checked.i64"},
    {207u, 33u, "mul.checked.i64"},
    {208u, 32u, "index.checked.i64"},
    {208u, 36u, "add.checked.i64"},
    {208u, 42u, "mul.checked.i64"},
    {208u, 52u, "index.checked.i64"},
    {208u, 46u, "add.checked.i64"},
    {208u, 56u, "add.checked.i64"},
    {208u, 62u, "mul.checked.i64"},
    {208u, 72u, "index.checked.i64"},
    {208u, 66u, "add.checked.i64"},
    {209u, 34u, "index.checked.i64"},
    {209u, 31u, "mul.checked.i64"},
    {210u, 34u, "index.checked.i64"},
    {210u, 31u, "mul.checked.i64"},
    {211u, 34u, "index.checked.i64"},
    {211u, 31u, "mul.checked.i64"},
    {212u, 39u, "add.checked.i64"},
    {212u, 35u, "index.checked.i64"},
    {212u, 31u, "mul.checked.i64"},
    {213u, 39u, "add.checked.i64"},
    {213u, 35u, "index.checked.i64"},
    {213u, 31u, "mul.checked.i64"},
    {214u, 34u, "index.checked.i64"},
    {214u, 30u, "mul.checked.i64"},
    {214u, 39u, "add.checked.i64"},
    {214u, 45u, "add.checked.i64"},
    {215u, 39u, "add.checked.i64"},
    {215u, 35u, "index.checked.i64"},
    {215u, 31u, "mul.checked.i64"},
    {216u, 39u, "add.checked.i64"},
    {216u, 35u, "index.checked.i64"},
    {216u, 31u, "mul.checked.i64"},
    {217u, 34u, "index.checked.i64"},
    {217u, 30u, "mul.checked.i64"},
    {217u, 39u, "add.checked.i64"},
    {217u, 45u, "add.checked.i64"},
    {218u, 39u, "add.checked.i64"},
    {218u, 35u, "index.checked.i64"},
    {218u, 31u, "mul.checked.i64"},
    {219u, 39u, "add.checked.i64"},
    {219u, 35u, "index.checked.i64"},
    {219u, 31u, "mul.checked.i64"},
    {220u, 34u, "index.checked.i64"},
    {220u, 30u, "mul.checked.i64"},
    {220u, 39u, "add.checked.i64"},
    {220u, 45u, "add.checked.i64"},
    {221u, 25u, "add.checked.i64"},
    {222u, 25u, "add.checked.i64"},
    {223u, 25u, "add.checked.i64"},
    {224u, 18u, "index.checked.i64"},
    {224u, 25u, "index.checked.i64"},
    {224u, 34u, "mul.checked.i64"},
    {224u, 29u, "add.checked.i64"},
    {225u, 18u, "index.checked.i64"},
    {225u, 25u, "index.checked.i64"},
    {225u, 34u, "mul.checked.i64"},
    {225u, 29u, "add.checked.i64"},
    {226u, 18u, "index.checked.i64"},
    {226u, 25u, "index.checked.i64"},
    {226u, 29u, "add.checked.i64"},
    {226u, 39u, "mul.checked.i64"},
    {226u, 35u, "add.checked.i64"},
    {227u, 18u, "index.checked.i64"},
    {227u, 25u, "index.checked.i64"},
    {227u, 34u, "mul.checked.i64"},
    {227u, 29u, "add.checked.i64"},
    {228u, 18u, "index.checked.i64"},
    {228u, 25u, "index.checked.i64"},
    {228u, 34u, "mul.checked.i64"},
    {228u, 29u, "add.checked.i64"},
    {229u, 18u, "index.checked.i64"},
    {229u, 25u, "index.checked.i64"},
    {229u, 29u, "add.checked.i64"},
    {229u, 39u, "mul.checked.i64"},
    {229u, 35u, "add.checked.i64"},
    {230u, 18u, "index.checked.i64"},
    {230u, 25u, "index.checked.i64"},
    {230u, 34u, "mul.checked.i64"},
    {230u, 29u, "add.checked.i64"},
    {231u, 18u, "index.checked.i64"},
    {231u, 25u, "index.checked.i64"},
    {231u, 34u, "mul.checked.i64"},
    {231u, 29u, "add.checked.i64"},
    {232u, 18u, "index.checked.i64"},
    {232u, 25u, "index.checked.i64"},
    {232u, 29u, "add.checked.i64"},
    {232u, 39u, "mul.checked.i64"},
    {232u, 35u, "add.checked.i64"},
    {235u, 11u, "index.checked.i64"},
    {235u, 26u, "div.checked.i64"},
    {235u, 21u, "add.checked.i64"},
    {235u, 31u, "div.checked.i64"},
    {236u, 11u, "index.checked.i64"},
    {236u, 26u, "div.checked.i64"},
    {236u, 21u, "add.checked.i64"},
    {236u, 31u, "div.checked.i64"},
    {237u, 11u, "index.checked.i64"},
    {237u, 26u, "div.checked.i64"},
    {237u, 21u, "add.checked.i64"},
    {237u, 31u, "div.checked.i64"},
    {238u, 21u, "div.checked.i64"},
    {239u, 21u, "div.checked.i64"},
    {240u, 21u, "div.checked.i64"},
    {241u, 11u, "index.checked.i64"},
    {241u, 18u, "index.checked.i64"},
    {241u, 22u, "div.checked.i64"},
    {241u, 47u, "index.checked.i64"},
    {241u, 43u, "mul.checked.i64"},
    {241u, 51u, "div.checked.i64"},
    {241u, 38u, "sub.checked.i64"},
    {242u, 11u, "index.checked.i64"},
    {242u, 18u, "index.checked.i64"},
    {242u, 22u, "div.checked.i64"},
    {242u, 47u, "index.checked.i64"},
    {242u, 43u, "mul.checked.i64"},
    {242u, 51u, "div.checked.i64"},
    {242u, 38u, "sub.checked.i64"},
    {243u, 11u, "index.checked.i64"},
    {243u, 18u, "index.checked.i64"},
    {243u, 22u, "div.checked.i64"},
    {243u, 47u, "index.checked.i64"},
    {243u, 43u, "mul.checked.i64"},
    {243u, 51u, "div.checked.i64"},
    {243u, 38u, "sub.checked.i64"},
    {244u, 11u, "index.checked.i64"},
    {244u, 18u, "index.checked.i64"},
    {244u, 22u, "div.checked.i64"},
    {244u, 47u, "index.checked.i64"},
    {244u, 43u, "mul.checked.i64"},
    {244u, 51u, "div.checked.i64"},
    {244u, 38u, "sub.checked.i64"},
    {245u, 11u, "index.checked.i64"},
    {245u, 18u, "index.checked.i64"},
    {245u, 22u, "div.checked.i64"},
    {245u, 47u, "index.checked.i64"},
    {245u, 43u, "mul.checked.i64"},
    {245u, 51u, "div.checked.i64"},
    {245u, 38u, "sub.checked.i64"},
    {246u, 11u, "index.checked.i64"},
    {246u, 18u, "index.checked.i64"},
    {246u, 22u, "div.checked.i64"},
    {246u, 47u, "index.checked.i64"},
    {246u, 43u, "mul.checked.i64"},
    {246u, 51u, "div.checked.i64"},
    {246u, 38u, "sub.checked.i64"},
    {247u, 11u, "index.checked.i64"},
    {247u, 18u, "index.checked.i64"},
    {247u, 22u, "div.checked.i64"},
    {247u, 47u, "index.checked.i64"},
    {247u, 43u, "mul.checked.i64"},
    {247u, 51u, "div.checked.i64"},
    {247u, 38u, "sub.checked.i64"},
    {248u, 11u, "index.checked.i64"},
    {248u, 18u, "index.checked.i64"},
    {248u, 22u, "div.checked.i64"},
    {248u, 47u, "index.checked.i64"},
    {248u, 43u, "mul.checked.i64"},
    {248u, 51u, "div.checked.i64"},
    {248u, 38u, "sub.checked.i64"},
    {249u, 11u, "index.checked.i64"},
    {249u, 18u, "index.checked.i64"},
    {249u, 22u, "div.checked.i64"},
    {249u, 47u, "index.checked.i64"},
    {249u, 43u, "mul.checked.i64"},
    {249u, 51u, "div.checked.i64"},
    {249u, 38u, "sub.checked.i64"},
    {250u, 23u, "index.checked.i64"},
    {250u, 31u, "index.checked.i64"},
    {250u, 27u, "add.checked.i64"},
    {250u, 39u, "index.checked.i64"},
    {250u, 35u, "add.checked.i64"},
    {251u, 11u, "index.checked.i64"},
    {251u, 19u, "index.checked.i64"},
    {251u, 28u, "index.checked.i64"},
    {251u, 32u, "mul.checked.i64"},
    {251u, 44u, "div.checked.i64"},
    {251u, 40u, "add.checked.i64"},
    {251u, 49u, "div.checked.i64"},
    {251u, 23u, "add.checked.i64"},
    {264u, 5u, "fuel.charge"},
    {265u, 9u, "fuel.charge"},
    {266u, 23u, "mul.checked.i64"},
    {266u, 28u, "add.checked.i64"},
    {267u, 24u, "index.checked.i64"},
    {267u, 32u, "index.checked.i64"},
    {267u, 28u, "sub.checked.i64"},
    {268u, 24u, "index.checked.i64"},
    {268u, 32u, "index.checked.i64"},
    {268u, 28u, "sub.checked.i64"},
    {269u, 24u, "index.checked.i64"},
    {269u, 32u, "index.checked.i64"},
    {269u, 28u, "sub.checked.i64"},
    {271u, 28u, "mul.checked.i64"},
    {271u, 32u, "mul.checked.i64"},
    {271u, 36u, "mul.checked.i64"},
    {272u, 28u, "mul.checked.i64"},
    {272u, 32u, "mul.checked.i64"},
    {273u, 19u, "index.checked.i64"},
    {273u, 27u, "index.checked.i64"},
    {273u, 33u, "muldiv.checked.i64.i64.half_even"},
    {273u, 31u, "add.checked.i64"},
    {273u, 96u, "index.checked.i64"},
    {273u, 104u, "index.checked.i64"},
    {273u, 100u, "sub.checked.i64"},
    {273u, 82u, "muldiv.checked.i64.i64.half_even"},
    {273u, 80u, "add.checked.i64"},
    {274u, 19u, "index.checked.i64"},
    {274u, 27u, "index.checked.i64"},
    {274u, 33u, "muldiv.checked.i64.i64.half_even"},
    {274u, 31u, "add.checked.i64"},
    {274u, 96u, "index.checked.i64"},
    {274u, 104u, "index.checked.i64"},
    {274u, 100u, "sub.checked.i64"},
    {274u, 82u, "muldiv.checked.i64.i64.half_even"},
    {274u, 80u, "add.checked.i64"},
    {275u, 19u, "index.checked.i64"},
    {275u, 27u, "index.checked.i64"},
    {275u, 33u, "muldiv.checked.i64.i64.half_even"},
    {275u, 31u, "add.checked.i64"},
    {275u, 96u, "index.checked.i64"},
    {275u, 104u, "index.checked.i64"},
    {275u, 100u, "sub.checked.i64"},
    {275u, 82u, "muldiv.checked.i64.i64.half_even"},
    {275u, 80u, "add.checked.i64"},
    {276u, 28u, "abs.checked.i64"},
    {276u, 41u, "abs.checked.i64"},
    {276u, 50u, "abs.checked.i64"},
    {277u, 19u, "index.checked.i64"},
    {277u, 27u, "index.checked.i64"},
    {277u, 51u, "mul.checked.i64"},
    {277u, 33u, "muldiv.checked.i64.i64.half_even"},
    {277u, 31u, "sub.checked.i64"},
    {278u, 19u, "index.checked.i64"},
    {278u, 27u, "index.checked.i64"},
    {278u, 51u, "mul.checked.i64"},
    {278u, 33u, "muldiv.checked.i64.i64.half_even"},
    {278u, 31u, "sub.checked.i64"},
    {279u, 19u, "index.checked.i64"},
    {279u, 27u, "index.checked.i64"},
    {279u, 51u, "mul.checked.i64"},
    {279u, 33u, "muldiv.checked.i64.i64.half_even"},
    {279u, 31u, "sub.checked.i64"},
    {287u, 5u, "fuel.charge"},
    {288u, 9u, "call.enter"},
    {289u, 9u, "call.enter"},
    {290u, 9u, "call.enter"},
    {292u, 5u, "call.enter"},
    {293u, 5u, "fuel.charge"},
    {295u, 9u, "fuel.charge"},
    {296u, 23u, "mul.checked.i64"},
    {296u, 28u, "add.checked.i64"},
    {297u, 15u, "index.checked.i64"},
    {297u, 29u, "index.checked.i64"},
    {297u, 37u, "index.checked.i64"},
    {297u, 33u, "add.checked.i64"},
    {297u, 21u, "clamp.checked.i64"},
    {298u, 15u, "index.checked.i64"},
    {298u, 29u, "index.checked.i64"},
    {298u, 37u, "index.checked.i64"},
    {298u, 33u, "add.checked.i64"},
    {298u, 21u, "clamp.checked.i64"},
    {299u, 15u, "index.checked.i64"},
    {299u, 29u, "index.checked.i64"},
    {299u, 37u, "index.checked.i64"},
    {299u, 33u, "add.checked.i64"},
    {299u, 21u, "clamp.checked.i64"},
    {300u, 31u, "index.checked.i64"},
    {300u, 40u, "mul.checked.i64"},
    {300u, 44u, "add.checked.i64"},
    {300u, 35u, "mul.checked.i64"},
    {300u, 27u, "add.checked.i64"},
    {300u, 53u, "index.checked.i64"},
    {300u, 62u, "mul.checked.i64"},
    {300u, 66u, "add.checked.i64"},
    {300u, 57u, "mul.checked.i64"},
    {300u, 49u, "add.checked.i64"},
    {300u, 79u, "index.checked.i64"},
    {300u, 88u, "mul.checked.i64"},
    {300u, 92u, "add.checked.i64"},
    {300u, 83u, "mul.checked.i64"},
    {300u, 75u, "add.checked.i64"},
    {302u, 15u, "index.checked.u64"},
    {302u, 28u, "index.checked.u64"},
    {304u, 19u, "add.checked.i64"},
    {310u, 12u, "fuel.charge"},
    {311u, 16u, "mul.checked.i64"},
    {313u, 16u, "mul.checked.i64"},
    {315u, 5u, "fuel.charge"},
    {316u, 9u, "fuel.charge"},
    {317u, 13u, "fuel.charge"},
    {318u, 17u, "fuel.charge"},
    {319u, 31u, "mul.checked.i64"},
    {319u, 41u, "mul.checked.i64"},
    {319u, 46u, "add.checked.i64"},
    {319u, 51u, "mul.checked.i64"},
    {319u, 36u, "add.checked.i64"},
    {319u, 55u, "add.checked.i64"},
    {320u, 23u, "index.checked.i64"},
    {320u, 37u, "mul.checked.i64"},
    {320u, 41u, "add.checked.i64"},
    {320u, 46u, "mul.checked.i64"},
    {320u, 50u, "div.checked.i64"},
    {320u, 32u, "add.checked.i64"},
    {321u, 23u, "index.checked.i64"},
    {321u, 31u, "mul.checked.i64"},
    {321u, 40u, "mul.checked.i64"},
    {321u, 44u, "add.checked.i64"},
    {321u, 49u, "mul.checked.i64"},
    {321u, 53u, "div.checked.i64"},
    {321u, 35u, "add.checked.i64"},
    {322u, 23u, "index.checked.i64"},
    {322u, 37u, "mul.checked.i64"},
    {322u, 41u, "add.checked.i64"},
    {322u, 46u, "mul.checked.i64"},
    {322u, 50u, "div.checked.i64"},
    {322u, 32u, "add.checked.i64"},
    {323u, 23u, "index.checked.i64"},
    {324u, 23u, "index.checked.i64"},
    {325u, 23u, "index.checked.i64"},
    {326u, 23u, "index.checked.i64"},
    {327u, 23u, "index.checked.i64"},
    {328u, 23u, "index.checked.i64"},
    {329u, 23u, "index.checked.i64"},
    {330u, 23u, "index.checked.i64"},
    {331u, 23u, "index.checked.i64"},
    {332u, 23u, "index.checked.i64"},
    {333u, 23u, "index.checked.i64"},
    {334u, 23u, "index.checked.i64"},
    {335u, 23u, "index.checked.i64"},
    {339u, 15u, "index.checked.u64"},
    {341u, 7u, "index.checked.i64"},
    {341u, 16u, "index.checked.i64"},
    {341u, 21u, "add.checked.i64"},
    {342u, 10u, "mul.checked.i64"},
    {342u, 7u, "index.checked.i64"},
    {342u, 23u, "mul.checked.i64"},
    {342u, 20u, "index.checked.i64"},
    {342u, 29u, "add.checked.i64"},
    {350u, 12u, "fuel.charge"},
    {355u, 18u, "rem.checked.i64"},
    {356u, 18u, "div.checked.i64"},
    {357u, 21u, "index.checked.i64"},
    {358u, 21u, "index.checked.i64"},
    {359u, 21u, "index.checked.i64"},
    {360u, 21u, "index.checked.i64"},
    {361u, 21u, "index.checked.i64"},
    {362u, 21u, "index.checked.i64"},
    {363u, 21u, "index.checked.i64"},
    {364u, 21u, "index.checked.i64"},
    {365u, 21u, "index.checked.i64"},
    {366u, 21u, "index.checked.i64"},
    {367u, 22u, "index.checked.i64"},
    {368u, 22u, "index.checked.i64"},
    {369u, 22u, "index.checked.i64"},
    {370u, 22u, "index.checked.i64"},
    {371u, 22u, "index.checked.i64"},
    {372u, 22u, "index.checked.i64"},
    {376u, 12u, "fuel.charge"},
    {380u, 18u, "rem.checked.i64"},
    {381u, 18u, "div.checked.i64"},
    {382u, 28u, "index.checked.i64"},
    {383u, 28u, "index.checked.i64"},
    {384u, 28u, "index.checked.i64"},
    {385u, 28u, "index.checked.i64"},
    {386u, 28u, "index.checked.i64"},
    {387u, 28u, "index.checked.i64"},
    {388u, 28u, "index.checked.i64"},
    {389u, 28u, "index.checked.i64"},
    {390u, 28u, "index.checked.i64"},
    {391u, 28u, "index.checked.i64"},
    {392u, 29u, "index.checked.i64"},
    {393u, 29u, "index.checked.i64"},
    {394u, 29u, "index.checked.i64"},
    {395u, 29u, "index.checked.i64"},
    {396u, 29u, "index.checked.i64"},
    {397u, 14u, "index.checked.i64"},
    {401u, 12u, "fuel.charge"},
    {402u, 15u, "index.checked.i64"},
    {402u, 19u, "div.checked.i64"},
    {402u, 25u, "mul.checked.i64"},
    {402u, 46u, "index.checked.i64"},
    {402u, 50u, "div.checked.i64"},
    {402u, 56u, "mul.checked.i64"},
    {402u, 41u, "add.checked.i64"},
    {402u, 69u, "index.checked.i64"},
    {402u, 73u, "div.checked.i64"},
    {402u, 65u, "add.checked.i64"},
    {405u, 12u, "fuel.charge"},
    {406u, 11u, "index.checked.u64"},
    {410u, 12u, "fuel.charge"},
    {411u, 18u, "index.checked.u64"},
    {414u, 12u, "fuel.charge"},
    {419u, 12u, "fuel.charge"},
    {424u, 12u, "fuel.charge"},
    {425u, 5u, "fuel.charge"},
    {426u, 9u, "call.enter"},
    {432u, 12u, "fuel.charge"},
    {434u, 5u, "fuel.charge"},
    {435u, 23u, "mul.checked.i64"},
    {435u, 28u, "add.checked.i64"},
    {435u, 20u, "index.checked.i64"},
    {435u, 37u, "index.checked.i64"},
    {435u, 33u, "sub.checked.i64"},
    {436u, 23u, "mul.checked.i64"},
    {436u, 28u, "add.checked.i64"},
    {436u, 20u, "index.checked.i64"},
    {436u, 37u, "index.checked.i64"},
    {436u, 33u, "sub.checked.i64"},
    {437u, 23u, "mul.checked.i64"},
    {437u, 28u, "add.checked.i64"},
    {437u, 20u, "index.checked.i64"},
    {437u, 37u, "index.checked.i64"},
    {437u, 33u, "sub.checked.i64"},
    {438u, 35u, "mul.checked.i64"},
    {438u, 45u, "mul.checked.i64"},
    {438u, 40u, "add.checked.i64"},
    {438u, 55u, "mul.checked.i64"},
    {438u, 50u, "add.checked.i64"},
    {438u, 26u, "isqrt.checked.i64"},
    {446u, 5u, "fuel.charge"},
    {447u, 43u, "index.checked.i64"},
    {447u, 62u, "index.checked.i64"},
    {447u, 75u, "shl.wrap.u64"},
    {447u, 89u, "index.checked.i64"},
    {447u, 102u, "shl.wrap.u64"},
    {447u, 116u, "index.checked.i64"},
    {447u, 129u, "shl.wrap.u64"},
    {454u, 5u, "call.enter"},
    {456u, 12u, "call.enter"},
    {462u, 5u, "fuel.charge"},
    {463u, 27u, "index.checked.i64"},
    {463u, 23u, "add.checked.i64"},
    {465u, 18u, "div.checked.i64"},
    {468u, 6u, "fuel.charge"},
    {469u, 9u, "call.enter"},
    {470u, 9u, "call.enter"},
    {471u, 5u, "print"},
    {472u, 27u, "index.checked.u64"},
    {472u, 5u, "print"},
    {473u, 27u, "index.checked.u64"},
    {473u, 5u, "print"},
    {474u, 27u, "index.checked.u64"},
    {474u, 5u, "print"},
    {475u, 21u, "call.enter"},
    {475u, 43u, "call.enter"},
    {475u, 5u, "print"},
    {476u, 20u, "call.enter"},
    {476u, 5u, "print"},
    {477u, 21u, "call.enter"},
    {477u, 5u, "print"},
    {478u, 20u, "call.enter"},
    {478u, 5u, "print"},
    {479u, 17u, "call.enter"},
    {479u, 5u, "print"},
    {482u, 1u, "fuel.charge"},
    {483u, 9u, "call.enter"},
    {484u, 9u, "call.enter"},
    {485u, 13u, "call.enter"},
    {486u, 12u, "call.enter"},
    {486u, 37u, "call.enter"},
    {486u, 12u, "assert.checked.bool"},
    {489u, 1u, "fuel.charge"},
    {490u, 9u, "call.enter"},
    {491u, 9u, "call.enter"},
    {492u, 9u, "call.enter"},
    {494u, 5u, "fuel.charge"},
    {495u, 27u, "index.checked.i64"},
    {495u, 23u, "add.checked.i64"},
    {497u, 24u, "mul.checked.i64"},
    {497u, 12u, "assert.checked.bool"},
    {500u, 1u, "fuel.charge"},
    {501u, 9u, "call.enter"},
    {502u, 9u, "call.enter"},
    {503u, 9u, "call.enter"},
    {504u, 19u, "index.checked.u64"},
    {505u, 9u, "call.enter"},
    {506u, 9u, "call.enter"},
    {507u, 9u, "call.enter"},
    {508u, 18u, "index.checked.u64"},
    {508u, 12u, "assert.checked.bool"},
};
CINT_RT_INTERNAL const cint_module cg_9_avalanche_module = {"avalanche.ci", 12u, 759u, cg_9_avalanche_sites};
CINT_RT_INTERNAL extern const cint_program cg_program;
CINT_RT_EXPORT const cint_module_info cm_9_avalanche = {CINT_ABI_VERSION, 0u, &cg_program, NULL};

typedef struct cg_9_avalanche_state {
    int64_t g_px[3072];
    int64_t g_py[3072];
    int64_t g_pz[3072];
    int64_t g_vx[3072];
    int64_t g_vy[3072];
    int64_t g_vz[3072];
    int64_t g_c0[3072];
    int64_t g_c1[3072];
    int64_t g_c2[3072];
    int64_t g_c3[3072];
    int64_t g_c4[3072];
    int64_t g_c5[3072];
    int64_t g_c6[3072];
    int64_t g_c7[3072];
    int64_t g_c8[3072];
    int64_t g_jv[3072];
    uint64_t g_digest[3];
    int64_t g_tether;
    int64_t g_order;
    int64_t g_steps;
    int64_t g_gm[4096];
    int64_t g_gx[4096];
    int64_t g_gy[4096];
    int64_t g_gz[4096];
    int64_t g_w[9];
    int64_t g_base[3];
    int64_t g_fx[3];
} cg_9_avalanche_state;
static const cg_9_avalanche_state cg_9_avalanche_state_init = {{0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, INT64_C(0), INT64_C(0), INT64_C(0), {0}, {0}, {0}, {0}, {0}, {0}, {0}};
static const int64_t cg_9_avalanche_state_ext[] = {INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3072), INT64_C(3), INT64_C(4096), INT64_C(4096), INT64_C(4096), INT64_C(4096), INT64_C(9), INT64_C(3), INT64_C(3)};
static const cint_state_var cg_9_avalanche_state_vars[27] = {
    {"px", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_px), 1u, &cg_9_avalanche_state_ext[0], NULL},
    {"py", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_py), 1u, &cg_9_avalanche_state_ext[1], NULL},
    {"pz", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_pz), 1u, &cg_9_avalanche_state_ext[2], NULL},
    {"vx", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_vx), 1u, &cg_9_avalanche_state_ext[3], NULL},
    {"vy", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_vy), 1u, &cg_9_avalanche_state_ext[4], NULL},
    {"vz", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_vz), 1u, &cg_9_avalanche_state_ext[5], NULL},
    {"c0", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c0), 1u, &cg_9_avalanche_state_ext[6], NULL},
    {"c1", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c1), 1u, &cg_9_avalanche_state_ext[7], NULL},
    {"c2", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c2), 1u, &cg_9_avalanche_state_ext[8], NULL},
    {"c3", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c3), 1u, &cg_9_avalanche_state_ext[9], NULL},
    {"c4", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c4), 1u, &cg_9_avalanche_state_ext[10], NULL},
    {"c5", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c5), 1u, &cg_9_avalanche_state_ext[11], NULL},
    {"c6", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c6), 1u, &cg_9_avalanche_state_ext[12], NULL},
    {"c7", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c7), 1u, &cg_9_avalanche_state_ext[13], NULL},
    {"c8", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_c8), 1u, &cg_9_avalanche_state_ext[14], NULL},
    {"jv", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_jv), 1u, &cg_9_avalanche_state_ext[15], NULL},
    {"digest", 6u, 0x24u, (uint32_t)offsetof(cg_9_avalanche_state, g_digest), 1u, &cg_9_avalanche_state_ext[16], NULL},
    {"tether", 6u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_tether), 0u, NULL, NULL},
    {"order", 5u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_order), 0u, NULL, NULL},
    {"steps", 5u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_steps), 0u, NULL, NULL},
    {"gm", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_gm), 1u, &cg_9_avalanche_state_ext[17], NULL},
    {"gx", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_gx), 1u, &cg_9_avalanche_state_ext[18], NULL},
    {"gy", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_gy), 1u, &cg_9_avalanche_state_ext[19], NULL},
    {"gz", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_gz), 1u, &cg_9_avalanche_state_ext[20], NULL},
    {"w", 1u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_w), 1u, &cg_9_avalanche_state_ext[21], NULL},
    {"base", 4u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_base), 1u, &cg_9_avalanche_state_ext[22], NULL},
    {"fx", 2u, 0x14u, (uint32_t)offsetof(cg_9_avalanche_state, g_fx), 1u, &cg_9_avalanche_state_ext[23], NULL},
};
CINT_RT_INTERNAL const cint_state cg_9_avalanche_state_desc = {0u, 27u, (uint32_t)sizeof(cg_9_avalanche_state), 0u, &cg_9_avalanche_state_init, cg_9_avalanche_state_vars};
static bool ci_9_avalanche_14_weight_x5Faxis(cint_ctx *ctx, int64_t v_d, int64_t v_x);
static bool ci_9_avalanche_7_weights(cint_ctx *ctx, int64_t v_s);
static bool ci_9_avalanche_5_visit(cint_ctx *ctx, int64_t v_i, int64_t *result);
static bool ci_9_avalanche_7_scatter(cint_ctx *ctx, int64_t v_c);
static bool ci_9_avalanche_4_wall(cint_ctx *ctx, int64_t v_u, int64_t v_at, int64_t *result);
static bool ci_9_avalanche_4_rock(cint_ctx *ctx, int64_t v_t, int64_t v_period, int64_t v_amp, int64_t *result);
static bool ci_9_avalanche_12_move_x5Fgrid(cint_ctx *ctx);
static bool ci_9_avalanche_6_gather(cint_ctx *ctx, int64_t v_c);
static bool ci_9_avalanche_13_pull_x5Ftwins(cint_ctx *ctx);
static bool ci_9_avalanche_4_step(cint_ctx *ctx);
static bool ci_9_avalanche_5_start(cint_ctx *ctx, int64_t v_preset, int64_t *result);
static bool ci_9_avalanche_4_load(cint_ctx *ctx, int64_t v_slot, int64_t v_value, int64_t *result);
static bool ci_9_avalanche_4_read(cint_ctx *ctx, int64_t v_slot, int64_t *result);
static bool ci_9_avalanche_4_spot(cint_ctx *ctx, int64_t v_s, int64_t *result);
static bool ci_9_avalanche_4_seed(cint_ctx *ctx, int64_t v_c, uint64_t v_value, uint64_t *result);
static bool ci_9_avalanche_12_digest_x5Fof(cint_ctx *ctx, int64_t v_c, uint64_t *result);
static bool ci_9_avalanche_4_pull(cint_ctx *ctx, int64_t v_k, int64_t *result);
static bool ci_9_avalanche_8_scramble(cint_ctx *ctx, int64_t v_o, int64_t *result);
static bool ci_9_avalanche_7_advance(cint_ctx *ctx, int64_t v_n, int64_t *result);
static bool ci_9_avalanche_6_spread(cint_ctx *ctx, int64_t v_c, int64_t *result);
static bool ci_9_avalanche_14_grid_x5Fdigest(cint_ctx *ctx, uint64_t *result);
static bool ci_9_avalanche_19_grid_x5Fin_x5Forder(cint_ctx *ctx, int64_t v_o, uint64_t *result);
static bool ci_9_avalanche_12_grid_x5Fmass(cint_ctx *ctx, int64_t *result);
static bool ci_9_avalanche_4_main(cint_ctx *ctx);
static bool cg_9_avalanche_tb0(cint_ctx *ctx);
static bool cg_9_avalanche_tb1(cint_ctx *ctx);
static bool cg_9_avalanche_tb2(cint_ctx *ctx);

static bool ci_9_avalanche_14_weight_x5Faxis(cint_ctx *ctx, int64_t v_d, int64_t v_x)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t l0_b = 0;
    int64_t l1_f = 0;
    int64_t l2_a = 0;
    int64_t l3_c = 0;
    int64_t l4_w0 = 0;
    int64_t l5_w2 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_d;
    (void)v_x;
    (void)l0_b;
    (void)l1_f;
    (void)l2_a;
    (void)l3_c;
    (void)l4_w0;
    (void)l5_w2;
    static const cint_site cs1 = {0u, 1u}; (void)cs1;
    static const cint_site cs2 = {0u, 2u}; (void)cs2;
    static const cint_site cs3 = {0u, 3u}; (void)cs3;
    static const cint_site cs4 = {0u, 4u}; (void)cs4;
    static const cint_site cs5 = {0u, 5u}; (void)cs5;
    static const cint_site cs6 = {0u, 6u}; (void)cs6;
    static const cint_site cs7 = {0u, 7u}; (void)cs7;
    static const cint_site cs8 = {0u, 8u}; (void)cs8;
    static const cint_site cs9 = {0u, 9u}; (void)cs9;
    static const cint_site cs10 = {0u, 10u}; (void)cs10;
    static const cint_site cs11 = {0u, 11u}; (void)cs11;
    static const cint_site cs12 = {0u, 12u}; (void)cs12;
    static const cint_site cs13 = {0u, 13u}; (void)cs13;
    static const cint_site cs14 = {0u, 14u}; (void)cs14;
    static const cint_site cs15 = {0u, 15u}; (void)cs15;
    static const cint_site cs16 = {0u, 16u}; (void)cs16;
    static const cint_site cs17 = {0u, 17u}; (void)cs17;
    static const cint_site cs18 = {0u, 18u}; (void)cs18;
    static const cint_site cs19 = {0u, 19u}; (void)cs19;
    static const cint_site cs20 = {0u, 20u}; (void)cs20;
    static const cint_site cs21 = {0u, 21u}; (void)cs21;
    static const cint_site cs22 = {0u, 22u}; (void)cs22;
    static const cint_site cs23 = {0u, 23u}; (void)cs23;
    static const cint_site cs24 = {0u, 24u}; (void)cs24;
    static const cint_site cs25 = {0u, 25u}; (void)cs25;
    static const cint_site cs26 = {0u, 26u}; (void)cs26;
    static const cint_site cs27 = {0u, 27u}; (void)cs27;
    static const cint_site cs28 = {0u, 28u}; (void)cs28;
    t0 = INT64_C(65536);
    t1 = INT64_C(2);
    if (!cint_div_i64(ctx, cs1, t0, t1, &t2)) goto fault;
    if (!cint_sub_i64(ctx, cs2, v_x, t2, &t3)) goto fault;
    t4 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs3, t3, t4, &t5)) goto fault;
    l0_b = t5;
    t6 = l0_b;
    t7 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs4, t6, t7, &t8)) goto fault;
    if (!cint_sub_i64(ctx, cs5, v_x, t8, &t9)) goto fault;
    l1_f = t9;
    if (!(v_d >= 0 && v_d < INT64_C(3))) {
        (void)cint_index_check(ctx, cs6, "index.checked.i64", v_d, INT64_C(3));
        goto fault;
    }
    t10 = l0_b;
    cg_st->g_base[v_d] = t10;
    if (!(v_d >= 0 && v_d < INT64_C(3))) {
        (void)cint_index_check(ctx, cs7, "index.checked.i64", v_d, INT64_C(3));
        goto fault;
    }
    t11 = l1_f;
    cg_st->g_fx[v_d] = t11;
    t12 = INT64_C(3);
    t13 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs8, t12, t13, &t14)) goto fault;
    t15 = INT64_C(2);
    if (!cint_div_i64(ctx, cs9, t14, t15, &t16)) goto fault;
    t17 = l1_f;
    if (!cint_sub_i64(ctx, cs10, t16, t17, &t18)) goto fault;
    l2_a = t18;
    t19 = l1_f;
    t20 = INT64_C(65536);
    t21 = INT64_C(2);
    if (!cint_div_i64(ctx, cs11, t20, t21, &t22)) goto fault;
    if (!cint_sub_i64(ctx, cs12, t19, t22, &t23)) goto fault;
    l3_c = t23;
    t24 = l2_a;
    t25 = l2_a;
    if (!cint_mul_i64(ctx, cs13, t24, t25, &t26)) goto fault;
    t27 = INT64_C(2097152);
    if (!cint_add_i64(ctx, cs14, t26, t27, &t28)) goto fault;
    t29 = INT64_C(4194304);
    if (!cint_div_i64(ctx, cs15, t28, t29, &t30)) goto fault;
    l4_w0 = t30;
    t31 = l3_c;
    t32 = l3_c;
    if (!cint_mul_i64(ctx, cs16, t31, t32, &t33)) goto fault;
    t34 = INT64_C(2097152);
    if (!cint_add_i64(ctx, cs17, t33, t34, &t35)) goto fault;
    t36 = INT64_C(4194304);
    if (!cint_div_i64(ctx, cs18, t35, t36, &t37)) goto fault;
    l5_w2 = t37;
    t38 = INT64_C(3);
    if (!cint_mul_i64(ctx, cs19, v_d, t38, &t39)) goto fault;
    if (!(t39 >= 0 && t39 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs20, "index.checked.i64", t39, INT64_C(9));
        goto fault;
    }
    t40 = l4_w0;
    cg_st->g_w[t39] = t40;
    t41 = INT64_C(3);
    if (!cint_mul_i64(ctx, cs21, v_d, t41, &t42)) goto fault;
    t43 = INT64_C(1);
    if (!cint_add_i64(ctx, cs22, t42, t43, &t44)) goto fault;
    if (!(t44 >= 0 && t44 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs23, "index.checked.i64", t44, INT64_C(9));
        goto fault;
    }
    t45 = INT64_C(2048);
    t46 = l4_w0;
    if (!cint_sub_i64(ctx, cs24, t45, t46, &t47)) goto fault;
    t48 = l5_w2;
    if (!cint_sub_i64(ctx, cs25, t47, t48, &t49)) goto fault;
    cg_st->g_w[t44] = t49;
    t50 = INT64_C(3);
    if (!cint_mul_i64(ctx, cs26, v_d, t50, &t51)) goto fault;
    t52 = INT64_C(2);
    if (!cint_add_i64(ctx, cs27, t51, t52, &t53)) goto fault;
    if (!(t53 >= 0 && t53 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs28, "index.checked.i64", t53, INT64_C(9));
        goto fault;
    }
    t54 = l5_w2;
    cg_st->g_w[t53] = t54;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_7_weights(cint_ctx *ctx, int64_t v_s)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_s;
    static const cint_site cs29 = {0u, 29u}; (void)cs29;
    static const cint_site cs30 = {0u, 30u}; (void)cs30;
    static const cint_site cs31 = {0u, 31u}; (void)cs31;
    static const cint_site cs32 = {0u, 32u}; (void)cs32;
    static const cint_site cs33 = {0u, 33u}; (void)cs33;
    static const cint_site cs34 = {0u, 34u}; (void)cs34;
    t0 = INT64_C(0);
    if (!(v_s >= 0 && v_s < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs29, "index.checked.i64", v_s, INT64_C(3072));
        goto fault;
    }
    t1 = cg_st->g_px[v_s];
    if (!cint_rt_call_enter(ctx, cs30)) goto fault;
    if (!ci_9_avalanche_14_weight_x5Faxis(ctx, t0, t1)) goto fault;
    cint_rt_call_leave(ctx);
    t2 = INT64_C(1);
    if (!(v_s >= 0 && v_s < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs31, "index.checked.i64", v_s, INT64_C(3072));
        goto fault;
    }
    t3 = cg_st->g_py[v_s];
    if (!cint_rt_call_enter(ctx, cs32)) goto fault;
    if (!ci_9_avalanche_14_weight_x5Faxis(ctx, t2, t3)) goto fault;
    cint_rt_call_leave(ctx);
    t4 = INT64_C(2);
    if (!(v_s >= 0 && v_s < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs33, "index.checked.i64", v_s, INT64_C(3072));
        goto fault;
    }
    t5 = cg_st->g_pz[v_s];
    if (!cint_rt_call_enter(ctx, cs34)) goto fault;
    if (!ci_9_avalanche_14_weight_x5Faxis(ctx, t4, t5)) goto fault;
    cint_rt_call_leave(ctx);
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_5_visit(cint_ctx *ctx, int64_t v_i, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    bool t2 = false;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    bool t9 = false;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_i;
    (void)result;
    static const cint_site cs35 = {0u, 35u}; (void)cs35;
    static const cint_site cs36 = {0u, 36u}; (void)cs36;
    static const cint_site cs37 = {0u, 37u}; (void)cs37;
    static const cint_site cs38 = {0u, 38u}; (void)cs38;
    static const cint_site cs39 = {0u, 39u}; (void)cs39;
    static const cint_site cs40 = {0u, 40u}; (void)cs40;
    t0 = cg_st->g_order;
    t1 = INT64_C(1);
    t2 = t0 == t1;
    if (!t2) goto L5_f;
    t3 = INT64_C(1024);
    t4 = INT64_C(1);
    if (!cint_sub_i64(ctx, cs35, t3, t4, &t5)) goto fault;
    if (!cint_sub_i64(ctx, cs36, t5, v_i, &t6)) goto fault;
    *result = t6;
    return true;
L5_f:;
    t7 = cg_st->g_order;
    t8 = INT64_C(2);
    t9 = t7 == t8;
    if (!t9) goto L18_f;
    t10 = INT64_C(389);
    if (!cint_mul_i64(ctx, cs37, v_i, t10, &t11)) goto fault;
    t12 = cg_st->g_steps;
    t13 = INT64_C(97);
    if (!cint_mul_i64(ctx, cs38, t12, t13, &t14)) goto fault;
    if (!cint_add_i64(ctx, cs39, t11, t14, &t15)) goto fault;
    t16 = INT64_C(1024);
    t17 = (int64_t)((uint64_t)t15 & ((uint64_t)t16 - 1u));
    *result = t17;
    return true;
L18_f:;
    *result = v_i;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_7_scatter(cint_ctx *ctx, int64_t v_c)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    bool t3 = false;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    bool t18 = false;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    int64_t t64 = 0;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    int64_t t69 = 0;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    int64_t t74 = 0;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    int64_t t79 = 0;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    int64_t t83 = 0;
    int64_t t84 = 0;
    int64_t t85 = 0;
    int64_t t86 = 0;
    int64_t t87 = 0;
    int64_t t88 = 0;
    int64_t t89 = 0;
    int64_t t90 = 0;
    int64_t t91 = 0;
    int64_t t92 = 0;
    int64_t t93 = 0;
    int64_t t94 = 0;
    int64_t t95 = 0;
    int64_t t96 = 0;
    int64_t t97 = 0;
    int64_t t98 = 0;
    int64_t t99 = 0;
    int64_t t100 = 0;
    int64_t t101 = 0;
    int64_t t102 = 0;
    int64_t t103 = 0;
    int64_t t104 = 0;
    int64_t t105 = 0;
    int64_t t106 = 0;
    int64_t t107 = 0;
    int64_t t108 = 0;
    int64_t t109 = 0;
    int64_t t110 = 0;
    int64_t t111 = 0;
    int64_t t112 = 0;
    int64_t t113 = 0;
    int64_t t114 = 0;
    int64_t t115 = 0;
    int64_t t116 = 0;
    int64_t t117 = 0;
    int64_t t118 = 0;
    int64_t t119 = 0;
    int64_t t120 = 0;
    int64_t t121 = 0;
    int64_t t122 = 0;
    int64_t t123 = 0;
    int64_t t124 = 0;
    int64_t t125 = 0;
    int64_t t126 = 0;
    int64_t t127 = 0;
    int64_t t128 = 0;
    bool t129 = false;
    int64_t t130 = 0;
    int64_t t131 = 0;
    int64_t t132 = 0;
    bool t133 = false;
    int64_t t134 = 0;
    int64_t t135 = 0;
    int64_t t136 = 0;
    int64_t t137 = 0;
    int64_t t138 = 0;
    int64_t t139 = 0;
    int64_t t140 = 0;
    int64_t t141 = 0;
    int64_t t142 = 0;
    int64_t t143 = 0;
    int64_t t144 = 0;
    int64_t t145 = 0;
    int64_t t146 = 0;
    int64_t t147 = 0;
    int64_t t148 = 0;
    int64_t t149 = 0;
    int64_t t150 = 0;
    int64_t t151 = 0;
    int64_t t152 = 0;
    int64_t t153 = 0;
    int64_t t154 = 0;
    int64_t t155 = 0;
    int64_t t156 = 0;
    int64_t t157 = 0;
    int64_t t158 = 0;
    int64_t t159 = 0;
    int64_t t160 = 0;
    int64_t t161 = 0;
    int64_t t162 = 0;
    int64_t t163 = 0;
    int64_t t164 = 0;
    int64_t t165 = 0;
    int64_t t166 = 0;
    int64_t t167 = 0;
    int64_t t168 = 0;
    int64_t t169 = 0;
    int64_t t170 = 0;
    int64_t t171 = 0;
    int64_t t172 = 0;
    int64_t t173 = 0;
    int64_t t174 = 0;
    int64_t t175 = 0;
    int64_t t176 = 0;
    int64_t t177 = 0;
    int64_t t178 = 0;
    int64_t t179 = 0;
    int64_t t180 = 0;
    int64_t t181 = 0;
    int64_t t182 = 0;
    int64_t t183 = 0;
    int64_t t184 = 0;
    int64_t t185 = 0;
    int64_t t186 = 0;
    int64_t t187 = 0;
    int64_t t188 = 0;
    int64_t t189 = 0;
    int64_t t190 = 0;
    int64_t t191 = 0;
    int64_t t192 = 0;
    int64_t t193 = 0;
    int64_t t194 = 0;
    int64_t t195 = 0;
    int64_t t196 = 0;
    int64_t t197 = 0;
    int64_t t198 = 0;
    int64_t t199 = 0;
    int64_t t200 = 0;
    int64_t t201 = 0;
    int64_t t202 = 0;
    int64_t t203 = 0;
    int64_t t204 = 0;
    int64_t t205 = 0;
    int64_t t206 = 0;
    int64_t t207 = 0;
    int64_t t208 = 0;
    int64_t t209 = 0;
    int64_t t210 = 0;
    int64_t t211 = 0;
    int64_t t212 = 0;
    int64_t t213 = 0;
    int64_t t214 = 0;
    int64_t t215 = 0;
    int64_t t216 = 0;
    int64_t t217 = 0;
    int64_t t218 = 0;
    int64_t t219 = 0;
    int64_t t220 = 0;
    int64_t t221 = 0;
    int64_t t222 = 0;
    int64_t t223 = 0;
    int64_t t224 = 0;
    int64_t t225 = 0;
    int64_t t226 = 0;
    int64_t t227 = 0;
    int64_t t228 = 0;
    int64_t t229 = 0;
    int64_t t230 = 0;
    int64_t t231 = 0;
    int64_t t232 = 0;
    int64_t t233 = 0;
    int64_t t234 = 0;
    int64_t t235 = 0;
    int64_t t236 = 0;
    int64_t t237 = 0;
    int64_t t238 = 0;
    int64_t t239 = 0;
    int64_t t240 = 0;
    int64_t t241 = 0;
    int64_t t242 = 0;
    int64_t t243 = 0;
    int64_t t244 = 0;
    int64_t t245 = 0;
    int64_t t246 = 0;
    int64_t t247 = 0;
    int64_t t248 = 0;
    int64_t t249 = 0;
    int64_t t250 = 0;
    int64_t t251 = 0;
    int64_t t252 = 0;
    int64_t t253 = 0;
    int64_t t254 = 0;
    int64_t t255 = 0;
    int64_t t256 = 0;
    int64_t t257 = 0;
    int64_t t258 = 0;
    int64_t t259 = 0;
    int64_t t260 = 0;
    int64_t t261 = 0;
    int64_t t262 = 0;
    int64_t t263 = 0;
    int64_t t264 = 0;
    int64_t t265 = 0;
    int64_t t266 = 0;
    int64_t t267 = 0;
    int64_t t268 = 0;
    int64_t t269 = 0;
    int64_t t270 = 0;
    int64_t t271 = 0;
    int64_t t272 = 0;
    int64_t t273 = 0;
    int64_t t274 = 0;
    int64_t t275 = 0;
    int64_t t276 = 0;
    int64_t t277 = 0;
    int64_t t278 = 0;
    int64_t t279 = 0;
    int64_t t280 = 0;
    int64_t t281 = 0;
    int64_t t282 = 0;
    int64_t t283 = 0;
    int64_t t284 = 0;
    int64_t t285 = 0;
    int64_t t286 = 0;
    int64_t t287 = 0;
    int64_t t288 = 0;
    int64_t t289 = 0;
    int64_t t290 = 0;
    int64_t t291 = 0;
    int64_t t292 = 0;
    int64_t t293 = 0;
    int64_t t294 = 0;
    int64_t t295 = 0;
    int64_t t296 = 0;
    int64_t t297 = 0;
    int64_t t298 = 0;
    int64_t t299 = 0;
    int64_t t300 = 0;
    int64_t t301 = 0;
    int64_t t302 = 0;
    int64_t t303 = 0;
    int64_t t304 = 0;
    int64_t t305 = 0;
    int64_t t306 = 0;
    int64_t t307 = 0;
    int64_t t308 = 0;
    int64_t t309 = 0;
    int64_t t310 = 0;
    int64_t t311 = 0;
    int64_t t312 = 0;
    int64_t t313 = 0;
    int64_t t314 = 0;
    int64_t t315 = 0;
    int64_t t316 = 0;
    int64_t t317 = 0;
    int64_t t318 = 0;
    int64_t t319 = 0;
    int64_t t320 = 0;
    int64_t t321 = 0;
    int64_t t322 = 0;
    int64_t t323 = 0;
    int64_t t324 = 0;
    int64_t t325 = 0;
    int64_t t326 = 0;
    int64_t t327 = 0;
    int64_t t328 = 0;
    int64_t t329 = 0;
    int64_t t330 = 0;
    int64_t t331 = 0;
    int64_t t332 = 0;
    int64_t t333 = 0;
    int64_t t334 = 0;
    int64_t t335 = 0;
    int64_t t336 = 0;
    int64_t t337 = 0;
    int64_t t338 = 0;
    int64_t t339 = 0;
    int64_t t340 = 0;
    int64_t t341 = 0;
    int64_t t342 = 0;
    int64_t t343 = 0;
    int64_t t344 = 0;
    int64_t t345 = 0;
    int64_t t346 = 0;
    int64_t t347 = 0;
    int64_t t348 = 0;
    int64_t t349 = 0;
    int64_t t350 = 0;
    int64_t l0_n = 0;
    int64_t l1_i = 0;
    int64_t l2_s = 0;
    int64_t l3_st = 0;
    int64_t l4_a0 = 0;
    int64_t l5_a1 = 0;
    int64_t l6_a2 = 0;
    int64_t l7_a3 = 0;
    int64_t l8_a4 = 0;
    int64_t l9_a5 = 0;
    int64_t l10_a6 = 0;
    int64_t l11_a7 = 0;
    int64_t l12_a8 = 0;
    int64_t l13_mx = 0;
    int64_t l14_my = 0;
    int64_t l15_mz = 0;
    int64_t l16_i0 = 0;
    int64_t l17_i1 = 0;
    int64_t l18_wxy = 0;
    int64_t l19_n0 = 0;
    int64_t l20_rx = 0;
    int64_t l21_ry = 0;
    int64_t l22_rz = 0;
    int64_t l23_wt0 = 0;
    int64_t l24_wt1 = 0;
    int64_t l25_wt2 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_c;
    (void)l0_n;
    (void)l1_i;
    (void)l2_s;
    (void)l3_st;
    (void)l4_a0;
    (void)l5_a1;
    (void)l6_a2;
    (void)l7_a3;
    (void)l8_a4;
    (void)l9_a5;
    (void)l10_a6;
    (void)l11_a7;
    (void)l12_a8;
    (void)l13_mx;
    (void)l14_my;
    (void)l15_mz;
    (void)l16_i0;
    (void)l17_i1;
    (void)l18_wxy;
    (void)l19_n0;
    (void)l20_rx;
    (void)l21_ry;
    (void)l22_rz;
    (void)l23_wt0;
    (void)l24_wt1;
    (void)l25_wt2;
    static const cint_site cs41 = {0u, 41u}; (void)cs41;
    static const cint_site cs42 = {0u, 42u}; (void)cs42;
    static const cint_site cs43 = {0u, 43u}; (void)cs43;
    static const cint_site cs44 = {0u, 44u}; (void)cs44;
    static const cint_site cs45 = {0u, 45u}; (void)cs45;
    static const cint_site cs46 = {0u, 46u}; (void)cs46;
    static const cint_site cs47 = {0u, 47u}; (void)cs47;
    static const cint_site cs48 = {0u, 48u}; (void)cs48;
    static const cint_site cs49 = {0u, 49u}; (void)cs49;
    static const cint_site cs50 = {0u, 50u}; (void)cs50;
    static const cint_site cs51 = {0u, 51u}; (void)cs51;
    static const cint_site cs52 = {0u, 52u}; (void)cs52;
    static const cint_site cs53 = {0u, 53u}; (void)cs53;
    static const cint_site cs54 = {0u, 54u}; (void)cs54;
    static const cint_site cs55 = {0u, 55u}; (void)cs55;
    static const cint_site cs56 = {0u, 56u}; (void)cs56;
    static const cint_site cs57 = {0u, 57u}; (void)cs57;
    static const cint_site cs58 = {0u, 58u}; (void)cs58;
    static const cint_site cs59 = {0u, 59u}; (void)cs59;
    static const cint_site cs60 = {0u, 60u}; (void)cs60;
    static const cint_site cs61 = {0u, 61u}; (void)cs61;
    static const cint_site cs62 = {0u, 62u}; (void)cs62;
    static const cint_site cs63 = {0u, 63u}; (void)cs63;
    static const cint_site cs64 = {0u, 64u}; (void)cs64;
    static const cint_site cs65 = {0u, 65u}; (void)cs65;
    static const cint_site cs66 = {0u, 66u}; (void)cs66;
    static const cint_site cs67 = {0u, 67u}; (void)cs67;
    static const cint_site cs68 = {0u, 68u}; (void)cs68;
    static const cint_site cs69 = {0u, 69u}; (void)cs69;
    static const cint_site cs70 = {0u, 70u}; (void)cs70;
    static const cint_site cs71 = {0u, 71u}; (void)cs71;
    static const cint_site cs72 = {0u, 72u}; (void)cs72;
    static const cint_site cs73 = {0u, 73u}; (void)cs73;
    static const cint_site cs74 = {0u, 74u}; (void)cs74;
    static const cint_site cs75 = {0u, 75u}; (void)cs75;
    static const cint_site cs76 = {0u, 76u}; (void)cs76;
    static const cint_site cs77 = {0u, 77u}; (void)cs77;
    static const cint_site cs78 = {0u, 78u}; (void)cs78;
    static const cint_site cs79 = {0u, 79u}; (void)cs79;
    static const cint_site cs80 = {0u, 80u}; (void)cs80;
    static const cint_site cs81 = {0u, 81u}; (void)cs81;
    static const cint_site cs82 = {0u, 82u}; (void)cs82;
    static const cint_site cs83 = {0u, 83u}; (void)cs83;
    static const cint_site cs84 = {0u, 84u}; (void)cs84;
    static const cint_site cs85 = {0u, 85u}; (void)cs85;
    static const cint_site cs86 = {0u, 86u}; (void)cs86;
    static const cint_site cs87 = {0u, 87u}; (void)cs87;
    static const cint_site cs88 = {0u, 88u}; (void)cs88;
    static const cint_site cs89 = {0u, 89u}; (void)cs89;
    static const cint_site cs90 = {0u, 90u}; (void)cs90;
    static const cint_site cs91 = {0u, 91u}; (void)cs91;
    static const cint_site cs92 = {0u, 92u}; (void)cs92;
    static const cint_site cs93 = {0u, 93u}; (void)cs93;
    static const cint_site cs94 = {0u, 94u}; (void)cs94;
    static const cint_site cs95 = {0u, 95u}; (void)cs95;
    static const cint_site cs96 = {0u, 96u}; (void)cs96;
    static const cint_site cs97 = {0u, 97u}; (void)cs97;
    static const cint_site cs98 = {0u, 98u}; (void)cs98;
    static const cint_site cs99 = {0u, 99u}; (void)cs99;
    static const cint_site cs100 = {0u, 100u}; (void)cs100;
    static const cint_site cs101 = {0u, 101u}; (void)cs101;
    static const cint_site cs102 = {0u, 102u}; (void)cs102;
    static const cint_site cs103 = {0u, 103u}; (void)cs103;
    static const cint_site cs104 = {0u, 104u}; (void)cs104;
    static const cint_site cs105 = {0u, 105u}; (void)cs105;
    static const cint_site cs106 = {0u, 106u}; (void)cs106;
    static const cint_site cs107 = {0u, 107u}; (void)cs107;
    static const cint_site cs108 = {0u, 108u}; (void)cs108;
    static const cint_site cs109 = {0u, 109u}; (void)cs109;
    static const cint_site cs110 = {0u, 110u}; (void)cs110;
    static const cint_site cs111 = {0u, 111u}; (void)cs111;
    static const cint_site cs112 = {0u, 112u}; (void)cs112;
    static const cint_site cs113 = {0u, 113u}; (void)cs113;
    static const cint_site cs114 = {0u, 114u}; (void)cs114;
    static const cint_site cs115 = {0u, 115u}; (void)cs115;
    static const cint_site cs116 = {0u, 116u}; (void)cs116;
    static const cint_site cs117 = {0u, 117u}; (void)cs117;
    static const cint_site cs118 = {0u, 118u}; (void)cs118;
    static const cint_site cs119 = {0u, 119u}; (void)cs119;
    static const cint_site cs120 = {0u, 120u}; (void)cs120;
    static const cint_site cs121 = {0u, 121u}; (void)cs121;
    static const cint_site cs122 = {0u, 122u}; (void)cs122;
    static const cint_site cs123 = {0u, 123u}; (void)cs123;
    static const cint_site cs124 = {0u, 124u}; (void)cs124;
    static const cint_site cs125 = {0u, 125u}; (void)cs125;
    static const cint_site cs126 = {0u, 126u}; (void)cs126;
    static const cint_site cs127 = {0u, 127u}; (void)cs127;
    static const cint_site cs128 = {0u, 128u}; (void)cs128;
    static const cint_site cs129 = {0u, 129u}; (void)cs129;
    static const cint_site cs130 = {0u, 130u}; (void)cs130;
    static const cint_site cs131 = {0u, 131u}; (void)cs131;
    static const cint_site cs132 = {0u, 132u}; (void)cs132;
    static const cint_site cs133 = {0u, 133u}; (void)cs133;
    static const cint_site cs134 = {0u, 134u}; (void)cs134;
    static const cint_site cs135 = {0u, 135u}; (void)cs135;
    static const cint_site cs136 = {0u, 136u}; (void)cs136;
    static const cint_site cs137 = {0u, 137u}; (void)cs137;
    static const cint_site cs138 = {0u, 138u}; (void)cs138;
    static const cint_site cs139 = {0u, 139u}; (void)cs139;
    static const cint_site cs140 = {0u, 140u}; (void)cs140;
    static const cint_site cs141 = {0u, 141u}; (void)cs141;
    static const cint_site cs142 = {0u, 142u}; (void)cs142;
    static const cint_site cs143 = {0u, 143u}; (void)cs143;
    static const cint_site cs144 = {0u, 144u}; (void)cs144;
    static const cint_site cs145 = {0u, 145u}; (void)cs145;
    static const cint_site cs146 = {0u, 146u}; (void)cs146;
    static const cint_site cs147 = {0u, 147u}; (void)cs147;
    static const cint_site cs148 = {0u, 148u}; (void)cs148;
    static const cint_site cs149 = {0u, 149u}; (void)cs149;
    static const cint_site cs150 = {0u, 150u}; (void)cs150;
    static const cint_site cs151 = {0u, 151u}; (void)cs151;
    static const cint_site cs152 = {0u, 152u}; (void)cs152;
    static const cint_site cs153 = {0u, 153u}; (void)cs153;
    static const cint_site cs154 = {0u, 154u}; (void)cs154;
    static const cint_site cs155 = {0u, 155u}; (void)cs155;
    static const cint_site cs156 = {0u, 156u}; (void)cs156;
    static const cint_site cs157 = {0u, 157u}; (void)cs157;
    static const cint_site cs158 = {0u, 158u}; (void)cs158;
    static const cint_site cs159 = {0u, 159u}; (void)cs159;
    static const cint_site cs160 = {0u, 160u}; (void)cs160;
    static const cint_site cs161 = {0u, 161u}; (void)cs161;
    static const cint_site cs162 = {0u, 162u}; (void)cs162;
    static const cint_site cs163 = {0u, 163u}; (void)cs163;
    static const cint_site cs164 = {0u, 164u}; (void)cs164;
    static const cint_site cs165 = {0u, 165u}; (void)cs165;
    static const cint_site cs166 = {0u, 166u}; (void)cs166;
    static const cint_site cs167 = {0u, 167u}; (void)cs167;
    static const cint_site cs168 = {0u, 168u}; (void)cs168;
    static const cint_site cs169 = {0u, 169u}; (void)cs169;
    static const cint_site cs170 = {0u, 170u}; (void)cs170;
    static const cint_site cs171 = {0u, 171u}; (void)cs171;
    static const cint_site cs172 = {0u, 172u}; (void)cs172;
    static const cint_site cs173 = {0u, 173u}; (void)cs173;
    static const cint_site cs174 = {0u, 174u}; (void)cs174;
    static const cint_site cs175 = {0u, 175u}; (void)cs175;
    static const cint_site cs176 = {0u, 176u}; (void)cs176;
    static const cint_site cs177 = {0u, 177u}; (void)cs177;
    static const cint_site cs178 = {0u, 178u}; (void)cs178;
    static const cint_site cs179 = {0u, 179u}; (void)cs179;
    static const cint_site cs180 = {0u, 180u}; (void)cs180;
    static const cint_site cs181 = {0u, 181u}; (void)cs181;
    static const cint_site cs182 = {0u, 182u}; (void)cs182;
    static const cint_site cs183 = {0u, 183u}; (void)cs183;
    static const cint_site cs184 = {0u, 184u}; (void)cs184;
    static const cint_site cs185 = {0u, 185u}; (void)cs185;
    static const cint_site cs186 = {0u, 186u}; (void)cs186;
    static const cint_site cs187 = {0u, 187u}; (void)cs187;
    static const cint_site cs188 = {0u, 188u}; (void)cs188;
    static const cint_site cs189 = {0u, 189u}; (void)cs189;
    static const cint_site cs190 = {0u, 190u}; (void)cs190;
    static const cint_site cs191 = {0u, 191u}; (void)cs191;
    static const cint_site cs192 = {0u, 192u}; (void)cs192;
    static const cint_site cs193 = {0u, 193u}; (void)cs193;
    static const cint_site cs194 = {0u, 194u}; (void)cs194;
    static const cint_site cs195 = {0u, 195u}; (void)cs195;
    static const cint_site cs196 = {0u, 196u}; (void)cs196;
    static const cint_site cs197 = {0u, 197u}; (void)cs197;
    static const cint_site cs198 = {0u, 198u}; (void)cs198;
    static const cint_site cs199 = {0u, 199u}; (void)cs199;
    static const cint_site cs200 = {0u, 200u}; (void)cs200;
    static const cint_site cs201 = {0u, 201u}; (void)cs201;
    static const cint_site cs202 = {0u, 202u}; (void)cs202;
    static const cint_site cs203 = {0u, 203u}; (void)cs203;
    static const cint_site cs204 = {0u, 204u}; (void)cs204;
    static const cint_site cs205 = {0u, 205u}; (void)cs205;
    static const cint_site cs206 = {0u, 206u}; (void)cs206;
    static const cint_site cs207 = {0u, 207u}; (void)cs207;
    static const cint_site cs208 = {0u, 208u}; (void)cs208;
    static const cint_site cs209 = {0u, 209u}; (void)cs209;
    static const cint_site cs210 = {0u, 210u}; (void)cs210;
    static const cint_site cs211 = {0u, 211u}; (void)cs211;
    static const cint_site cs212 = {0u, 212u}; (void)cs212;
    static const cint_site cs213 = {0u, 213u}; (void)cs213;
    static const cint_site cs214 = {0u, 214u}; (void)cs214;
    static const cint_site cs215 = {0u, 215u}; (void)cs215;
    static const cint_site cs216 = {0u, 216u}; (void)cs216;
    static const cint_site cs217 = {0u, 217u}; (void)cs217;
    t0 = INT64_C(0);
    t1 = INT64_C(4096);
    l0_n = t0;
L4_h:;
    t2 = l0_n;
    t3 = t2 < t1;
    if (!t3) goto L4_e;
    if (!cint_fuel_charge(ctx, cs41, 1u)) goto fault;
    t4 = l0_n;
    if (!(t4 >= 0 && t4 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs42, "index.checked.i64", t4, INT64_C(4096));
        goto fault;
    }
    t5 = INT64_C(0);
    cg_st->g_gm[t4] = t5;
    t6 = l0_n;
    if (!(t6 >= 0 && t6 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs43, "index.checked.i64", t6, INT64_C(4096));
        goto fault;
    }
    t7 = INT64_C(0);
    cg_st->g_gx[t6] = t7;
    t8 = l0_n;
    if (!(t8 >= 0 && t8 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs44, "index.checked.i64", t8, INT64_C(4096));
        goto fault;
    }
    t9 = INT64_C(0);
    cg_st->g_gy[t8] = t9;
    t10 = l0_n;
    if (!(t10 >= 0 && t10 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs45, "index.checked.i64", t10, INT64_C(4096));
        goto fault;
    }
    t11 = INT64_C(0);
    cg_st->g_gz[t10] = t11;
    t12 = l0_n;
    t13 = INT64_C(1);
    t14 = cint_add_wrap_i64(t12, t13);
    l0_n = t14;
    goto L4_h;
L4_e:;
    t15 = INT64_C(0);
    t16 = INT64_C(1024);
    l1_i = t15;
L35_h:;
    t17 = l1_i;
    t18 = t17 < t16;
    if (!t18) goto L35_e;
    if (!cint_fuel_charge(ctx, cs46, 1u)) goto fault;
    t19 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs47, v_c, t19, &t20)) goto fault;
    t21 = l1_i;
    if (!cint_rt_call_enter(ctx, cs48)) goto fault;
    if (!ci_9_avalanche_5_visit(ctx, t21, &t22)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_add_i64(ctx, cs49, t20, t22, &t23)) goto fault;
    l2_s = t23;
    t24 = l2_s;
    if (!cint_rt_call_enter(ctx, cs50)) goto fault;
    if (!ci_9_avalanche_7_weights(ctx, t24)) goto fault;
    cint_rt_call_leave(ctx);
    t25 = INT64_C(3);
    t26 = INT64_C(65536);
    t27 = l2_s;
    if (!(t27 >= 0 && t27 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs51, "index.checked.i64", t27, INT64_C(3072));
        goto fault;
    }
    t28 = cg_st->g_jv[t27];
    if (!cint_sub_i64(ctx, cs52, t26, t28, &t29)) goto fault;
    if (!cint_mul_i64(ctx, cs53, t25, t29, &t30)) goto fault;
    t31 = INT64_C(5);
    if (!cint_div_i64(ctx, cs54, t30, t31, &t32)) goto fault;
    l3_st = t32;
    t33 = l2_s;
    if (!(t33 >= 0 && t33 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs55, "index.checked.i64", t33, INT64_C(3072));
        goto fault;
    }
    t34 = cg_st->g_c0[t33];
    t35 = l3_st;
    if (!cint_add_i64(ctx, cs56, t34, t35, &t36)) goto fault;
    l4_a0 = t36;
    t37 = l2_s;
    if (!(t37 >= 0 && t37 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs57, "index.checked.i64", t37, INT64_C(3072));
        goto fault;
    }
    t38 = cg_st->g_c1[t37];
    l5_a1 = t38;
    t39 = l2_s;
    if (!(t39 >= 0 && t39 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs58, "index.checked.i64", t39, INT64_C(3072));
        goto fault;
    }
    t40 = cg_st->g_c2[t39];
    l6_a2 = t40;
    t41 = l2_s;
    if (!(t41 >= 0 && t41 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs59, "index.checked.i64", t41, INT64_C(3072));
        goto fault;
    }
    t42 = cg_st->g_c3[t41];
    l7_a3 = t42;
    t43 = l2_s;
    if (!(t43 >= 0 && t43 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs60, "index.checked.i64", t43, INT64_C(3072));
        goto fault;
    }
    t44 = cg_st->g_c4[t43];
    t45 = l3_st;
    if (!cint_add_i64(ctx, cs61, t44, t45, &t46)) goto fault;
    l8_a4 = t46;
    t47 = l2_s;
    if (!(t47 >= 0 && t47 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs62, "index.checked.i64", t47, INT64_C(3072));
        goto fault;
    }
    t48 = cg_st->g_c5[t47];
    l9_a5 = t48;
    t49 = l2_s;
    if (!(t49 >= 0 && t49 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs63, "index.checked.i64", t49, INT64_C(3072));
        goto fault;
    }
    t50 = cg_st->g_c6[t49];
    l10_a6 = t50;
    t51 = l2_s;
    if (!(t51 >= 0 && t51 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs64, "index.checked.i64", t51, INT64_C(3072));
        goto fault;
    }
    t52 = cg_st->g_c7[t51];
    l11_a7 = t52;
    t53 = l2_s;
    if (!(t53 >= 0 && t53 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs65, "index.checked.i64", t53, INT64_C(3072));
        goto fault;
    }
    t54 = cg_st->g_c8[t53];
    t55 = l3_st;
    if (!cint_add_i64(ctx, cs66, t54, t55, &t56)) goto fault;
    l12_a8 = t56;
    t57 = l2_s;
    if (!(t57 >= 0 && t57 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs67, "index.checked.i64", t57, INT64_C(3072));
        goto fault;
    }
    t58 = cg_st->g_vx[t57];
    t59 = l4_a0;
    t60 = INT64_C(0);
    if (!(t60 >= 0 && t60 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs68, "index.checked.i64", t60, INT64_C(3));
        goto fault;
    }
    t61 = cg_st->g_fx[t60];
    if (!cint_mul_i64(ctx, cs69, t59, t61, &t62)) goto fault;
    t63 = l5_a1;
    t64 = INT64_C(1);
    if (!(t64 >= 0 && t64 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs70, "index.checked.i64", t64, INT64_C(3));
        goto fault;
    }
    t65 = cg_st->g_fx[t64];
    if (!cint_mul_i64(ctx, cs71, t63, t65, &t66)) goto fault;
    if (!cint_add_i64(ctx, cs72, t62, t66, &t67)) goto fault;
    t68 = l6_a2;
    t69 = INT64_C(2);
    if (!(t69 >= 0 && t69 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs73, "index.checked.i64", t69, INT64_C(3));
        goto fault;
    }
    t70 = cg_st->g_fx[t69];
    if (!cint_mul_i64(ctx, cs74, t68, t70, &t71)) goto fault;
    if (!cint_add_i64(ctx, cs75, t67, t71, &t72)) goto fault;
    t73 = INT64_C(65536);
    t74 = INT64_C(2);
    if (!cint_div_i64(ctx, cs76, t73, t74, &t75)) goto fault;
    if (!cint_add_i64(ctx, cs77, t72, t75, &t76)) goto fault;
    t77 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs78, t76, t77, &t78)) goto fault;
    if (!cint_sub_i64(ctx, cs79, t58, t78, &t79)) goto fault;
    l13_mx = t79;
    t80 = l2_s;
    if (!(t80 >= 0 && t80 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs80, "index.checked.i64", t80, INT64_C(3072));
        goto fault;
    }
    t81 = cg_st->g_vy[t80];
    t82 = l7_a3;
    t83 = INT64_C(0);
    if (!(t83 >= 0 && t83 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs81, "index.checked.i64", t83, INT64_C(3));
        goto fault;
    }
    t84 = cg_st->g_fx[t83];
    if (!cint_mul_i64(ctx, cs82, t82, t84, &t85)) goto fault;
    t86 = l8_a4;
    t87 = INT64_C(1);
    if (!(t87 >= 0 && t87 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs83, "index.checked.i64", t87, INT64_C(3));
        goto fault;
    }
    t88 = cg_st->g_fx[t87];
    if (!cint_mul_i64(ctx, cs84, t86, t88, &t89)) goto fault;
    if (!cint_add_i64(ctx, cs85, t85, t89, &t90)) goto fault;
    t91 = l9_a5;
    t92 = INT64_C(2);
    if (!(t92 >= 0 && t92 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs86, "index.checked.i64", t92, INT64_C(3));
        goto fault;
    }
    t93 = cg_st->g_fx[t92];
    if (!cint_mul_i64(ctx, cs87, t91, t93, &t94)) goto fault;
    if (!cint_add_i64(ctx, cs88, t90, t94, &t95)) goto fault;
    t96 = INT64_C(65536);
    t97 = INT64_C(2);
    if (!cint_div_i64(ctx, cs89, t96, t97, &t98)) goto fault;
    if (!cint_add_i64(ctx, cs90, t95, t98, &t99)) goto fault;
    t100 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs91, t99, t100, &t101)) goto fault;
    if (!cint_sub_i64(ctx, cs92, t81, t101, &t102)) goto fault;
    l14_my = t102;
    t103 = l2_s;
    if (!(t103 >= 0 && t103 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs93, "index.checked.i64", t103, INT64_C(3072));
        goto fault;
    }
    t104 = cg_st->g_vz[t103];
    t105 = l10_a6;
    t106 = INT64_C(0);
    if (!(t106 >= 0 && t106 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs94, "index.checked.i64", t106, INT64_C(3));
        goto fault;
    }
    t107 = cg_st->g_fx[t106];
    if (!cint_mul_i64(ctx, cs95, t105, t107, &t108)) goto fault;
    t109 = l11_a7;
    t110 = INT64_C(1);
    if (!(t110 >= 0 && t110 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs96, "index.checked.i64", t110, INT64_C(3));
        goto fault;
    }
    t111 = cg_st->g_fx[t110];
    if (!cint_mul_i64(ctx, cs97, t109, t111, &t112)) goto fault;
    if (!cint_add_i64(ctx, cs98, t108, t112, &t113)) goto fault;
    t114 = l12_a8;
    t115 = INT64_C(2);
    if (!(t115 >= 0 && t115 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs99, "index.checked.i64", t115, INT64_C(3));
        goto fault;
    }
    t116 = cg_st->g_fx[t115];
    if (!cint_mul_i64(ctx, cs100, t114, t116, &t117)) goto fault;
    if (!cint_add_i64(ctx, cs101, t113, t117, &t118)) goto fault;
    t119 = INT64_C(65536);
    t120 = INT64_C(2);
    if (!cint_div_i64(ctx, cs102, t119, t120, &t121)) goto fault;
    if (!cint_add_i64(ctx, cs103, t118, t121, &t122)) goto fault;
    t123 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs104, t122, t123, &t124)) goto fault;
    if (!cint_sub_i64(ctx, cs105, t104, t124, &t125)) goto fault;
    l15_mz = t125;
    t126 = INT64_C(0);
    t127 = INT64_C(3);
    l16_i0 = t126;
L204_h:;
    t128 = l16_i0;
    t129 = t128 < t127;
    if (!t129) goto L204_e;
    if (!cint_fuel_charge(ctx, cs106, 1u)) goto fault;
    t130 = INT64_C(0);
    t131 = INT64_C(3);
    l17_i1 = t130;
L213_h:;
    t132 = l17_i1;
    t133 = t132 < t131;
    if (!t133) goto L213_e;
    if (!cint_fuel_charge(ctx, cs107, 1u)) goto fault;
    t134 = l16_i0;
    if (!(t134 >= 0 && t134 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs108, "index.checked.i64", t134, INT64_C(9));
        goto fault;
    }
    t135 = cg_st->g_w[t134];
    t136 = INT64_C(3);
    t137 = l17_i1;
    if (!cint_add_i64(ctx, cs109, t136, t137, &t138)) goto fault;
    if (!(t138 >= 0 && t138 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs110, "index.checked.i64", t138, INT64_C(9));
        goto fault;
    }
    t139 = cg_st->g_w[t138];
    if (!cint_mul_i64(ctx, cs111, t135, t139, &t140)) goto fault;
    l18_wxy = t140;
    t141 = INT64_C(0);
    if (!(t141 >= 0 && t141 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs112, "index.checked.i64", t141, INT64_C(3));
        goto fault;
    }
    t142 = cg_st->g_base[t141];
    t143 = l16_i0;
    if (!cint_add_i64(ctx, cs113, t142, t143, &t144)) goto fault;
    t145 = INT64_C(16);
    if (!cint_mul_i64(ctx, cs114, t144, t145, &t146)) goto fault;
    t147 = INT64_C(1);
    if (!(t147 >= 0 && t147 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs115, "index.checked.i64", t147, INT64_C(3));
        goto fault;
    }
    t148 = cg_st->g_base[t147];
    if (!cint_add_i64(ctx, cs116, t146, t148, &t149)) goto fault;
    t150 = l17_i1;
    if (!cint_add_i64(ctx, cs117, t149, t150, &t151)) goto fault;
    t152 = INT64_C(16);
    if (!cint_mul_i64(ctx, cs118, t151, t152, &t153)) goto fault;
    t154 = INT64_C(2);
    if (!(t154 >= 0 && t154 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs119, "index.checked.i64", t154, INT64_C(3));
        goto fault;
    }
    t155 = cg_st->g_base[t154];
    if (!cint_add_i64(ctx, cs120, t153, t155, &t156)) goto fault;
    l19_n0 = t156;
    t157 = l13_mx;
    t158 = l4_a0;
    t159 = l16_i0;
    if (!cint_mul_i64(ctx, cs121, t158, t159, &t160)) goto fault;
    if (!cint_add_i64(ctx, cs122, t157, t160, &t161)) goto fault;
    t162 = l5_a1;
    t163 = l17_i1;
    if (!cint_mul_i64(ctx, cs123, t162, t163, &t164)) goto fault;
    if (!cint_add_i64(ctx, cs124, t161, t164, &t165)) goto fault;
    l20_rx = t165;
    t166 = l14_my;
    t167 = l7_a3;
    t168 = l16_i0;
    if (!cint_mul_i64(ctx, cs125, t167, t168, &t169)) goto fault;
    if (!cint_add_i64(ctx, cs126, t166, t169, &t170)) goto fault;
    t171 = l8_a4;
    t172 = l17_i1;
    if (!cint_mul_i64(ctx, cs127, t171, t172, &t173)) goto fault;
    if (!cint_add_i64(ctx, cs128, t170, t173, &t174)) goto fault;
    l21_ry = t174;
    t175 = l15_mz;
    t176 = l10_a6;
    t177 = l16_i0;
    if (!cint_mul_i64(ctx, cs129, t176, t177, &t178)) goto fault;
    if (!cint_add_i64(ctx, cs130, t175, t178, &t179)) goto fault;
    t180 = l11_a7;
    t181 = l17_i1;
    if (!cint_mul_i64(ctx, cs131, t180, t181, &t182)) goto fault;
    if (!cint_add_i64(ctx, cs132, t179, t182, &t183)) goto fault;
    l22_rz = t183;
    t184 = l18_wxy;
    t185 = INT64_C(6);
    if (!(t185 >= 0 && t185 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs133, "index.checked.i64", t185, INT64_C(9));
        goto fault;
    }
    t186 = cg_st->g_w[t185];
    if (!cint_mul_i64(ctx, cs134, t184, t186, &t187)) goto fault;
    l23_wt0 = t187;
    t188 = l19_n0;
    if (!(t188 >= 0 && t188 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs135, "index.checked.i64", t188, INT64_C(4096));
        goto fault;
    }
    t189 = l19_n0;
    if (!(t189 >= 0 && t189 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs136, "index.checked.i64", t189, INT64_C(4096));
        goto fault;
    }
    t190 = cg_st->g_gm[t189];
    t191 = l23_wt0;
    if (!cint_add_i64(ctx, cs137, t190, t191, &t192)) goto fault;
    cg_st->g_gm[t188] = t192;
    t193 = l19_n0;
    if (!(t193 >= 0 && t193 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs138, "index.checked.i64", t193, INT64_C(4096));
        goto fault;
    }
    t194 = l19_n0;
    if (!(t194 >= 0 && t194 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs139, "index.checked.i64", t194, INT64_C(4096));
        goto fault;
    }
    t195 = cg_st->g_gx[t194];
    t196 = l23_wt0;
    t197 = l20_rx;
    if (!cint_mul_i64(ctx, cs140, t196, t197, &t198)) goto fault;
    t199 = INT64_C(256);
    if (!cint_div_i64(ctx, cs141, t198, t199, &t200)) goto fault;
    if (!cint_add_i64(ctx, cs142, t195, t200, &t201)) goto fault;
    cg_st->g_gx[t193] = t201;
    t202 = l19_n0;
    if (!(t202 >= 0 && t202 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs143, "index.checked.i64", t202, INT64_C(4096));
        goto fault;
    }
    t203 = l19_n0;
    if (!(t203 >= 0 && t203 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs144, "index.checked.i64", t203, INT64_C(4096));
        goto fault;
    }
    t204 = cg_st->g_gy[t203];
    t205 = l23_wt0;
    t206 = l21_ry;
    if (!cint_mul_i64(ctx, cs145, t205, t206, &t207)) goto fault;
    t208 = INT64_C(256);
    if (!cint_div_i64(ctx, cs146, t207, t208, &t209)) goto fault;
    if (!cint_add_i64(ctx, cs147, t204, t209, &t210)) goto fault;
    cg_st->g_gy[t202] = t210;
    t211 = l19_n0;
    if (!(t211 >= 0 && t211 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs148, "index.checked.i64", t211, INT64_C(4096));
        goto fault;
    }
    t212 = l19_n0;
    if (!(t212 >= 0 && t212 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs149, "index.checked.i64", t212, INT64_C(4096));
        goto fault;
    }
    t213 = cg_st->g_gz[t212];
    t214 = l23_wt0;
    t215 = l22_rz;
    if (!cint_mul_i64(ctx, cs150, t214, t215, &t216)) goto fault;
    t217 = INT64_C(256);
    if (!cint_div_i64(ctx, cs151, t216, t217, &t218)) goto fault;
    if (!cint_add_i64(ctx, cs152, t213, t218, &t219)) goto fault;
    cg_st->g_gz[t211] = t219;
    t220 = l18_wxy;
    t221 = INT64_C(7);
    if (!(t221 >= 0 && t221 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs153, "index.checked.i64", t221, INT64_C(9));
        goto fault;
    }
    t222 = cg_st->g_w[t221];
    if (!cint_mul_i64(ctx, cs154, t220, t222, &t223)) goto fault;
    l24_wt1 = t223;
    t224 = l19_n0;
    t225 = INT64_C(1);
    if (!cint_add_i64(ctx, cs155, t224, t225, &t226)) goto fault;
    if (!(t226 >= 0 && t226 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs156, "index.checked.i64", t226, INT64_C(4096));
        goto fault;
    }
    t227 = l19_n0;
    t228 = INT64_C(1);
    if (!cint_add_i64(ctx, cs157, t227, t228, &t229)) goto fault;
    if (!(t229 >= 0 && t229 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs158, "index.checked.i64", t229, INT64_C(4096));
        goto fault;
    }
    t230 = cg_st->g_gm[t229];
    t231 = l24_wt1;
    if (!cint_add_i64(ctx, cs159, t230, t231, &t232)) goto fault;
    cg_st->g_gm[t226] = t232;
    t233 = l19_n0;
    t234 = INT64_C(1);
    if (!cint_add_i64(ctx, cs160, t233, t234, &t235)) goto fault;
    if (!(t235 >= 0 && t235 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs161, "index.checked.i64", t235, INT64_C(4096));
        goto fault;
    }
    t236 = l19_n0;
    t237 = INT64_C(1);
    if (!cint_add_i64(ctx, cs162, t236, t237, &t238)) goto fault;
    if (!(t238 >= 0 && t238 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs163, "index.checked.i64", t238, INT64_C(4096));
        goto fault;
    }
    t239 = cg_st->g_gx[t238];
    t240 = l24_wt1;
    t241 = l20_rx;
    t242 = l6_a2;
    if (!cint_add_i64(ctx, cs164, t241, t242, &t243)) goto fault;
    if (!cint_mul_i64(ctx, cs165, t240, t243, &t244)) goto fault;
    t245 = INT64_C(256);
    if (!cint_div_i64(ctx, cs166, t244, t245, &t246)) goto fault;
    if (!cint_add_i64(ctx, cs167, t239, t246, &t247)) goto fault;
    cg_st->g_gx[t235] = t247;
    t248 = l19_n0;
    t249 = INT64_C(1);
    if (!cint_add_i64(ctx, cs168, t248, t249, &t250)) goto fault;
    if (!(t250 >= 0 && t250 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs169, "index.checked.i64", t250, INT64_C(4096));
        goto fault;
    }
    t251 = l19_n0;
    t252 = INT64_C(1);
    if (!cint_add_i64(ctx, cs170, t251, t252, &t253)) goto fault;
    if (!(t253 >= 0 && t253 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs171, "index.checked.i64", t253, INT64_C(4096));
        goto fault;
    }
    t254 = cg_st->g_gy[t253];
    t255 = l24_wt1;
    t256 = l21_ry;
    t257 = l9_a5;
    if (!cint_add_i64(ctx, cs172, t256, t257, &t258)) goto fault;
    if (!cint_mul_i64(ctx, cs173, t255, t258, &t259)) goto fault;
    t260 = INT64_C(256);
    if (!cint_div_i64(ctx, cs174, t259, t260, &t261)) goto fault;
    if (!cint_add_i64(ctx, cs175, t254, t261, &t262)) goto fault;
    cg_st->g_gy[t250] = t262;
    t263 = l19_n0;
    t264 = INT64_C(1);
    if (!cint_add_i64(ctx, cs176, t263, t264, &t265)) goto fault;
    if (!(t265 >= 0 && t265 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs177, "index.checked.i64", t265, INT64_C(4096));
        goto fault;
    }
    t266 = l19_n0;
    t267 = INT64_C(1);
    if (!cint_add_i64(ctx, cs178, t266, t267, &t268)) goto fault;
    if (!(t268 >= 0 && t268 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs179, "index.checked.i64", t268, INT64_C(4096));
        goto fault;
    }
    t269 = cg_st->g_gz[t268];
    t270 = l24_wt1;
    t271 = l22_rz;
    t272 = l12_a8;
    if (!cint_add_i64(ctx, cs180, t271, t272, &t273)) goto fault;
    if (!cint_mul_i64(ctx, cs181, t270, t273, &t274)) goto fault;
    t275 = INT64_C(256);
    if (!cint_div_i64(ctx, cs182, t274, t275, &t276)) goto fault;
    if (!cint_add_i64(ctx, cs183, t269, t276, &t277)) goto fault;
    cg_st->g_gz[t265] = t277;
    t278 = l18_wxy;
    t279 = INT64_C(8);
    if (!(t279 >= 0 && t279 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs184, "index.checked.i64", t279, INT64_C(9));
        goto fault;
    }
    t280 = cg_st->g_w[t279];
    if (!cint_mul_i64(ctx, cs185, t278, t280, &t281)) goto fault;
    l25_wt2 = t281;
    t282 = l19_n0;
    t283 = INT64_C(2);
    if (!cint_add_i64(ctx, cs186, t282, t283, &t284)) goto fault;
    if (!(t284 >= 0 && t284 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs187, "index.checked.i64", t284, INT64_C(4096));
        goto fault;
    }
    t285 = l19_n0;
    t286 = INT64_C(2);
    if (!cint_add_i64(ctx, cs188, t285, t286, &t287)) goto fault;
    if (!(t287 >= 0 && t287 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs189, "index.checked.i64", t287, INT64_C(4096));
        goto fault;
    }
    t288 = cg_st->g_gm[t287];
    t289 = l25_wt2;
    if (!cint_add_i64(ctx, cs190, t288, t289, &t290)) goto fault;
    cg_st->g_gm[t284] = t290;
    t291 = l19_n0;
    t292 = INT64_C(2);
    if (!cint_add_i64(ctx, cs191, t291, t292, &t293)) goto fault;
    if (!(t293 >= 0 && t293 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs192, "index.checked.i64", t293, INT64_C(4096));
        goto fault;
    }
    t294 = l19_n0;
    t295 = INT64_C(2);
    if (!cint_add_i64(ctx, cs193, t294, t295, &t296)) goto fault;
    if (!(t296 >= 0 && t296 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs194, "index.checked.i64", t296, INT64_C(4096));
        goto fault;
    }
    t297 = cg_st->g_gx[t296];
    t298 = l25_wt2;
    t299 = l20_rx;
    t300 = INT64_C(2);
    t301 = l6_a2;
    if (!cint_mul_i64(ctx, cs195, t300, t301, &t302)) goto fault;
    if (!cint_add_i64(ctx, cs196, t299, t302, &t303)) goto fault;
    if (!cint_mul_i64(ctx, cs197, t298, t303, &t304)) goto fault;
    t305 = INT64_C(256);
    if (!cint_div_i64(ctx, cs198, t304, t305, &t306)) goto fault;
    if (!cint_add_i64(ctx, cs199, t297, t306, &t307)) goto fault;
    cg_st->g_gx[t293] = t307;
    t308 = l19_n0;
    t309 = INT64_C(2);
    if (!cint_add_i64(ctx, cs200, t308, t309, &t310)) goto fault;
    if (!(t310 >= 0 && t310 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs201, "index.checked.i64", t310, INT64_C(4096));
        goto fault;
    }
    t311 = l19_n0;
    t312 = INT64_C(2);
    if (!cint_add_i64(ctx, cs202, t311, t312, &t313)) goto fault;
    if (!(t313 >= 0 && t313 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs203, "index.checked.i64", t313, INT64_C(4096));
        goto fault;
    }
    t314 = cg_st->g_gy[t313];
    t315 = l25_wt2;
    t316 = l21_ry;
    t317 = INT64_C(2);
    t318 = l9_a5;
    if (!cint_mul_i64(ctx, cs204, t317, t318, &t319)) goto fault;
    if (!cint_add_i64(ctx, cs205, t316, t319, &t320)) goto fault;
    if (!cint_mul_i64(ctx, cs206, t315, t320, &t321)) goto fault;
    t322 = INT64_C(256);
    if (!cint_div_i64(ctx, cs207, t321, t322, &t323)) goto fault;
    if (!cint_add_i64(ctx, cs208, t314, t323, &t324)) goto fault;
    cg_st->g_gy[t310] = t324;
    t325 = l19_n0;
    t326 = INT64_C(2);
    if (!cint_add_i64(ctx, cs209, t325, t326, &t327)) goto fault;
    if (!(t327 >= 0 && t327 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs210, "index.checked.i64", t327, INT64_C(4096));
        goto fault;
    }
    t328 = l19_n0;
    t329 = INT64_C(2);
    if (!cint_add_i64(ctx, cs211, t328, t329, &t330)) goto fault;
    if (!(t330 >= 0 && t330 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs212, "index.checked.i64", t330, INT64_C(4096));
        goto fault;
    }
    t331 = cg_st->g_gz[t330];
    t332 = l25_wt2;
    t333 = l22_rz;
    t334 = INT64_C(2);
    t335 = l12_a8;
    if (!cint_mul_i64(ctx, cs213, t334, t335, &t336)) goto fault;
    if (!cint_add_i64(ctx, cs214, t333, t336, &t337)) goto fault;
    if (!cint_mul_i64(ctx, cs215, t332, t337, &t338)) goto fault;
    t339 = INT64_C(256);
    if (!cint_div_i64(ctx, cs216, t338, t339, &t340)) goto fault;
    if (!cint_add_i64(ctx, cs217, t331, t340, &t341)) goto fault;
    cg_st->g_gz[t327] = t341;
    t342 = l17_i1;
    t343 = INT64_C(1);
    t344 = cint_add_wrap_i64(t342, t343);
    l17_i1 = t344;
    goto L213_h;
L213_e:;
    t345 = l16_i0;
    t346 = INT64_C(1);
    t347 = cint_add_wrap_i64(t345, t346);
    l16_i0 = t347;
    goto L204_h;
L204_e:;
    t348 = l1_i;
    t349 = INT64_C(1);
    t350 = cint_add_wrap_i64(t348, t349);
    l1_i = t350;
    goto L35_h;
L35_e:;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_4_wall(cint_ctx *ctx, int64_t v_u, int64_t v_at, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    bool t5 = false;
    int64_t t6 = 0;
    int64_t t7 = 0;
    bool t8 = false;
    bool t9 = false;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    bool t14 = false;
    int64_t t15 = 0;
    int64_t t16 = 0;
    bool t17 = false;
    bool t18 = false;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t l0_v = 0;
    bool l1 = false;
    bool l2 = false;
    (void)ctx;
    (void)v_u;
    (void)v_at;
    (void)l0_v;
    (void)l1;
    (void)l2;
    (void)result;
    static const cint_site cs218 = {0u, 218u}; (void)cs218;
    static const cint_site cs219 = {0u, 219u}; (void)cs219;
    static const cint_site cs220 = {0u, 220u}; (void)cs220;
    t0 = INT64_C(32768);
    if (!cint_neg_i64(ctx, cs218, t0, &t1)) goto fault;
    t2 = INT64_C(32768);
    if (!cint_builtin_i64(ctx, cs219, 5u, CINT_TAG_I64, 0u, 0u, (uint64_t)v_u, (uint64_t)t1, (uint64_t)t2, &t3)) goto fault;
    l0_v = t3;
    t4 = INT64_C(3);
    t5 = v_at < t4;
    l1 = t5;
    if (!t5) goto L14_f;
    t6 = l0_v;
    t7 = INT64_C(0);
    t8 = t6 < t7;
    l1 = t8;
    goto L12_e;
L14_f:;
L12_e:;
    t9 = l1;
    if (!t9) goto L22_f;
    t10 = INT64_C(0);
    *result = t10;
    return true;
L22_f:;
    t11 = INT64_C(16);
    t12 = INT64_C(4);
    if (!cint_sub_i64(ctx, cs220, t11, t12, &t13)) goto fault;
    t14 = v_at > t13;
    l2 = t14;
    if (!t14) goto L37_f;
    t15 = l0_v;
    t16 = INT64_C(0);
    t17 = t15 > t16;
    l2 = t17;
    goto L35_e;
L37_f:;
L35_e:;
    t18 = l2;
    if (!t18) goto L45_f;
    t19 = INT64_C(0);
    *result = t19;
    return true;
L45_f:;
    t20 = l0_v;
    *result = t20;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_4_rock(cint_ctx *ctx, int64_t v_t, int64_t v_period, int64_t v_amp, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    bool t5 = false;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t l0_ph = 0;
    int64_t l1_half = 0;
    (void)ctx;
    (void)v_t;
    (void)v_period;
    (void)v_amp;
    (void)l0_ph;
    (void)l1_half;
    (void)result;
    static const cint_site cs221 = {0u, 221u}; (void)cs221;
    static const cint_site cs222 = {0u, 222u}; (void)cs222;
    static const cint_site cs223 = {0u, 223u}; (void)cs223;
    static const cint_site cs224 = {0u, 224u}; (void)cs224;
    static const cint_site cs225 = {0u, 225u}; (void)cs225;
    static const cint_site cs226 = {0u, 226u}; (void)cs226;
    static const cint_site cs227 = {0u, 227u}; (void)cs227;
    static const cint_site cs228 = {0u, 228u}; (void)cs228;
    static const cint_site cs229 = {0u, 229u}; (void)cs229;
    static const cint_site cs230 = {0u, 230u}; (void)cs230;
    static const cint_site cs231 = {0u, 231u}; (void)cs231;
    static const cint_site cs232 = {0u, 232u}; (void)cs232;
    if (!cint_rem_i64(ctx, cs221, v_t, v_period, &t0)) goto fault;
    l0_ph = t0;
    t1 = INT64_C(2);
    if (!cint_div_i64(ctx, cs222, v_period, t1, &t2)) goto fault;
    l1_half = t2;
    t3 = l0_ph;
    t4 = l1_half;
    t5 = t3 < t4;
    if (!t5) goto L12_f;
    if (!cint_neg_i64(ctx, cs223, v_amp, &t6)) goto fault;
    t7 = INT64_C(2);
    if (!cint_mul_i64(ctx, cs224, t7, v_amp, &t8)) goto fault;
    t9 = l0_ph;
    if (!cint_mul_i64(ctx, cs225, t8, t9, &t10)) goto fault;
    t11 = l1_half;
    if (!cint_div_i64(ctx, cs226, t10, t11, &t12)) goto fault;
    if (!cint_add_i64(ctx, cs227, t6, t12, &t13)) goto fault;
    *result = t13;
    return true;
L12_f:;
    t14 = INT64_C(2);
    if (!cint_mul_i64(ctx, cs228, t14, v_amp, &t15)) goto fault;
    t16 = l0_ph;
    t17 = l1_half;
    if (!cint_sub_i64(ctx, cs229, t16, t17, &t18)) goto fault;
    if (!cint_mul_i64(ctx, cs230, t15, t18, &t19)) goto fault;
    t20 = l1_half;
    if (!cint_div_i64(ctx, cs231, t19, t20, &t21)) goto fault;
    if (!cint_sub_i64(ctx, cs232, v_amp, t21, &t22)) goto fault;
    *result = t22;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_12_move_x5Fgrid(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    bool t13 = false;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    bool t20 = false;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    int64_t t64 = 0;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    int64_t t69 = 0;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    int64_t t74 = 0;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    int64_t t79 = 0;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    int64_t l0_tx = 0;
    int64_t l1_tz = 0;
    int64_t l2_n = 0;
    int64_t l3_mass = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_tx;
    (void)l1_tz;
    (void)l2_n;
    (void)l3_mass;
    static const cint_site cs233 = {0u, 233u}; (void)cs233;
    static const cint_site cs234 = {0u, 234u}; (void)cs234;
    static const cint_site cs235 = {0u, 235u}; (void)cs235;
    static const cint_site cs236 = {0u, 236u}; (void)cs236;
    static const cint_site cs237 = {0u, 237u}; (void)cs237;
    static const cint_site cs238 = {0u, 238u}; (void)cs238;
    static const cint_site cs239 = {0u, 239u}; (void)cs239;
    static const cint_site cs240 = {0u, 240u}; (void)cs240;
    static const cint_site cs241 = {0u, 241u}; (void)cs241;
    static const cint_site cs242 = {0u, 242u}; (void)cs242;
    static const cint_site cs243 = {0u, 243u}; (void)cs243;
    static const cint_site cs244 = {0u, 244u}; (void)cs244;
    static const cint_site cs245 = {0u, 245u}; (void)cs245;
    static const cint_site cs246 = {0u, 246u}; (void)cs246;
    static const cint_site cs247 = {0u, 247u}; (void)cs247;
    static const cint_site cs248 = {0u, 248u}; (void)cs248;
    static const cint_site cs249 = {0u, 249u}; (void)cs249;
    static const cint_site cs250 = {0u, 250u}; (void)cs250;
    static const cint_site cs251 = {0u, 251u}; (void)cs251;
    static const cint_site cs252 = {0u, 252u}; (void)cs252;
    static const cint_site cs253 = {0u, 253u}; (void)cs253;
    static const cint_site cs254 = {0u, 254u}; (void)cs254;
    static const cint_site cs255 = {0u, 255u}; (void)cs255;
    static const cint_site cs256 = {0u, 256u}; (void)cs256;
    static const cint_site cs257 = {0u, 257u}; (void)cs257;
    static const cint_site cs258 = {0u, 258u}; (void)cs258;
    static const cint_site cs259 = {0u, 259u}; (void)cs259;
    static const cint_site cs260 = {0u, 260u}; (void)cs260;
    static const cint_site cs261 = {0u, 261u}; (void)cs261;
    static const cint_site cs262 = {0u, 262u}; (void)cs262;
    static const cint_site cs263 = {0u, 263u}; (void)cs263;
    static const cint_site cs264 = {0u, 264u}; (void)cs264;
    static const cint_site cs265 = {0u, 265u}; (void)cs265;
    static const cint_site cs266 = {0u, 266u}; (void)cs266;
    static const cint_site cs267 = {0u, 267u}; (void)cs267;
    static const cint_site cs268 = {0u, 268u}; (void)cs268;
    static const cint_site cs269 = {0u, 269u}; (void)cs269;
    t0 = cg_st->g_steps;
    t1 = INT64_C(480);
    t2 = INT64_C(70);
    if (!cint_rt_call_enter(ctx, cs233)) goto fault;
    if (!ci_9_avalanche_4_rock(ctx, t0, t1, t2, &t3)) goto fault;
    cint_rt_call_leave(ctx);
    l0_tx = t3;
    t4 = cg_st->g_steps;
    t5 = INT64_C(100);
    if (!cint_add_i64(ctx, cs234, t4, t5, &t6)) goto fault;
    t7 = INT64_C(330);
    t8 = INT64_C(50);
    if (!cint_rt_call_enter(ctx, cs235)) goto fault;
    if (!ci_9_avalanche_4_rock(ctx, t6, t7, t8, &t9)) goto fault;
    cint_rt_call_leave(ctx);
    l1_tz = t9;
    t10 = INT64_C(0);
    t11 = INT64_C(4096);
    l2_n = t10;
L24_h:;
    t12 = l2_n;
    t13 = t12 < t11;
    if (!t13) goto L24_e;
    if (!cint_fuel_charge(ctx, cs236, 1u)) goto fault;
    t14 = l2_n;
    if (!(t14 >= 0 && t14 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs237, "index.checked.i64", t14, INT64_C(4096));
        goto fault;
    }
    t15 = cg_st->g_gm[t14];
    t16 = INT64_C(256);
    if (!cint_div_i64(ctx, cs238, t15, t16, &t17)) goto fault;
    l3_mass = t17;
    t18 = l3_mass;
    t19 = INT64_C(0);
    t20 = t18 > t19;
    if (!t20) goto L41_f;
    t21 = l2_n;
    if (!(t21 >= 0 && t21 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs239, "index.checked.i64", t21, INT64_C(4096));
        goto fault;
    }
    t22 = INT64_C(2);
    t23 = l2_n;
    if (!(t23 >= 0 && t23 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs240, "index.checked.i64", t23, INT64_C(4096));
        goto fault;
    }
    t24 = cg_st->g_gx[t23];
    if (!cint_mul_i64(ctx, cs241, t22, t24, &t25)) goto fault;
    t26 = l3_mass;
    if (!cint_add_i64(ctx, cs242, t25, t26, &t27)) goto fault;
    t28 = INT64_C(2);
    t29 = l3_mass;
    if (!cint_mul_i64(ctx, cs243, t28, t29, &t30)) goto fault;
    if (!cint_div_i64(ctx, cs244, t27, t30, &t31)) goto fault;
    t32 = l0_tx;
    if (!cint_add_i64(ctx, cs245, t31, t32, &t33)) goto fault;
    t34 = l2_n;
    t35 = INT64_C(256);
    if (!cint_div_i64(ctx, cs246, t34, t35, &t36)) goto fault;
    if (!cint_rt_call_enter(ctx, cs247)) goto fault;
    if (!ci_9_avalanche_4_wall(ctx, t33, t36, &t37)) goto fault;
    cint_rt_call_leave(ctx);
    cg_st->g_gx[t21] = t37;
    t38 = l2_n;
    if (!(t38 >= 0 && t38 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs248, "index.checked.i64", t38, INT64_C(4096));
        goto fault;
    }
    t39 = INT64_C(2);
    t40 = l2_n;
    if (!(t40 >= 0 && t40 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs249, "index.checked.i64", t40, INT64_C(4096));
        goto fault;
    }
    t41 = cg_st->g_gy[t40];
    if (!cint_mul_i64(ctx, cs250, t39, t41, &t42)) goto fault;
    t43 = l3_mass;
    if (!cint_add_i64(ctx, cs251, t42, t43, &t44)) goto fault;
    t45 = INT64_C(2);
    t46 = l3_mass;
    if (!cint_mul_i64(ctx, cs252, t45, t46, &t47)) goto fault;
    if (!cint_div_i64(ctx, cs253, t44, t47, &t48)) goto fault;
    t49 = INT64_C(131);
    if (!cint_sub_i64(ctx, cs254, t48, t49, &t50)) goto fault;
    t51 = l2_n;
    t52 = INT64_C(16);
    if (!cint_div_i64(ctx, cs255, t51, t52, &t53)) goto fault;
    t54 = INT64_C(16);
    t55 = (int64_t)((uint64_t)t53 & ((uint64_t)t54 - 1u));
    if (!cint_rt_call_enter(ctx, cs257)) goto fault;
    if (!ci_9_avalanche_4_wall(ctx, t50, t55, &t56)) goto fault;
    cint_rt_call_leave(ctx);
    cg_st->g_gy[t38] = t56;
    t57 = l2_n;
    if (!(t57 >= 0 && t57 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs258, "index.checked.i64", t57, INT64_C(4096));
        goto fault;
    }
    t58 = INT64_C(2);
    t59 = l2_n;
    if (!(t59 >= 0 && t59 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs259, "index.checked.i64", t59, INT64_C(4096));
        goto fault;
    }
    t60 = cg_st->g_gz[t59];
    if (!cint_mul_i64(ctx, cs260, t58, t60, &t61)) goto fault;
    t62 = l3_mass;
    if (!cint_add_i64(ctx, cs261, t61, t62, &t63)) goto fault;
    t64 = INT64_C(2);
    t65 = l3_mass;
    if (!cint_mul_i64(ctx, cs262, t64, t65, &t66)) goto fault;
    if (!cint_div_i64(ctx, cs263, t63, t66, &t67)) goto fault;
    t68 = l1_tz;
    if (!cint_add_i64(ctx, cs264, t67, t68, &t69)) goto fault;
    t70 = l2_n;
    t71 = INT64_C(16);
    t72 = (int64_t)((uint64_t)t70 & ((uint64_t)t71 - 1u));
    if (!cint_rt_call_enter(ctx, cs266)) goto fault;
    if (!ci_9_avalanche_4_wall(ctx, t69, t72, &t73)) goto fault;
    cint_rt_call_leave(ctx);
    cg_st->g_gz[t57] = t73;
    goto L36_e;
L41_f:;
    t74 = l2_n;
    if (!(t74 >= 0 && t74 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs267, "index.checked.i64", t74, INT64_C(4096));
        goto fault;
    }
    t75 = INT64_C(0);
    cg_st->g_gx[t74] = t75;
    t76 = l2_n;
    if (!(t76 >= 0 && t76 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs268, "index.checked.i64", t76, INT64_C(4096));
        goto fault;
    }
    t77 = INT64_C(0);
    cg_st->g_gy[t76] = t77;
    t78 = l2_n;
    if (!(t78 >= 0 && t78 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs269, "index.checked.i64", t78, INT64_C(4096));
        goto fault;
    }
    t79 = INT64_C(0);
    cg_st->g_gz[t78] = t79;
L36_e:;
    t80 = l2_n;
    t81 = INT64_C(1);
    t82 = cint_add_wrap_i64(t80, t81);
    l2_n = t82;
    goto L24_h;
L24_e:;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_6_gather(cint_ctx *ctx, int64_t v_c)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    bool t3 = false;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    bool t15 = false;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    bool t19 = false;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    int64_t t64 = 0;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    int64_t t69 = 0;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    int64_t t74 = 0;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    int64_t t79 = 0;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    int64_t t83 = 0;
    int64_t t84 = 0;
    int64_t t85 = 0;
    int64_t t86 = 0;
    int64_t t87 = 0;
    int64_t t88 = 0;
    int64_t t89 = 0;
    int64_t t90 = 0;
    int64_t t91 = 0;
    int64_t t92 = 0;
    int64_t t93 = 0;
    int64_t t94 = 0;
    int64_t t95 = 0;
    int64_t t96 = 0;
    int64_t t97 = 0;
    int64_t t98 = 0;
    int64_t t99 = 0;
    int64_t t100 = 0;
    int64_t t101 = 0;
    int64_t t102 = 0;
    int64_t t103 = 0;
    int64_t t104 = 0;
    int64_t t105 = 0;
    int64_t t106 = 0;
    int64_t t107 = 0;
    int64_t t108 = 0;
    int64_t t109 = 0;
    int64_t t110 = 0;
    int64_t t111 = 0;
    int64_t t112 = 0;
    int64_t t113 = 0;
    int64_t t114 = 0;
    int64_t t115 = 0;
    int64_t t116 = 0;
    int64_t t117 = 0;
    int64_t t118 = 0;
    int64_t t119 = 0;
    int64_t t120 = 0;
    int64_t t121 = 0;
    int64_t t122 = 0;
    int64_t t123 = 0;
    int64_t t124 = 0;
    int64_t t125 = 0;
    int64_t t126 = 0;
    int64_t t127 = 0;
    int64_t t128 = 0;
    int64_t t129 = 0;
    int64_t t130 = 0;
    int64_t t131 = 0;
    int64_t t132 = 0;
    int64_t t133 = 0;
    int64_t t134 = 0;
    int64_t t135 = 0;
    int64_t t136 = 0;
    int64_t t137 = 0;
    int64_t t138 = 0;
    int64_t t139 = 0;
    int64_t t140 = 0;
    int64_t t141 = 0;
    int64_t t142 = 0;
    int64_t t143 = 0;
    int64_t t144 = 0;
    int64_t t145 = 0;
    int64_t t146 = 0;
    int64_t t147 = 0;
    int64_t t148 = 0;
    int64_t t149 = 0;
    int64_t t150 = 0;
    int64_t t151 = 0;
    int64_t t152 = 0;
    int64_t t153 = 0;
    int64_t t154 = 0;
    int64_t t155 = 0;
    int64_t t156 = 0;
    int64_t t157 = 0;
    int64_t t158 = 0;
    int64_t t159 = 0;
    int64_t t160 = 0;
    int64_t t161 = 0;
    int64_t t162 = 0;
    int64_t t163 = 0;
    int64_t t164 = 0;
    int64_t t165 = 0;
    int64_t t166 = 0;
    int64_t t167 = 0;
    int64_t t168 = 0;
    int64_t t169 = 0;
    int64_t t170 = 0;
    int64_t t171 = 0;
    int64_t t172 = 0;
    int64_t t173 = 0;
    int64_t t174 = 0;
    int64_t t175 = 0;
    int64_t t176 = 0;
    int64_t t177 = 0;
    int64_t t178 = 0;
    int64_t t179 = 0;
    int64_t t180 = 0;
    int64_t t181 = 0;
    int64_t t182 = 0;
    int64_t t183 = 0;
    int64_t t184 = 0;
    int64_t t185 = 0;
    int64_t t186 = 0;
    int64_t t187 = 0;
    int64_t t188 = 0;
    int64_t t189 = 0;
    int64_t t190 = 0;
    int64_t t191 = 0;
    int64_t t192 = 0;
    int64_t t193 = 0;
    int64_t t194 = 0;
    int64_t t195 = 0;
    int64_t t196 = 0;
    int64_t t197 = 0;
    int64_t t198 = 0;
    int64_t t199 = 0;
    int64_t t200 = 0;
    int64_t t201 = 0;
    int64_t t202 = 0;
    int64_t t203 = 0;
    int64_t t204 = 0;
    int64_t t205 = 0;
    int64_t t206 = 0;
    int64_t t207 = 0;
    int64_t t208 = 0;
    int64_t t209 = 0;
    int64_t t210 = 0;
    int64_t t211 = 0;
    int64_t t212 = 0;
    int64_t t213 = 0;
    int64_t t214 = 0;
    int64_t t215 = 0;
    int64_t t216 = 0;
    int64_t t217 = 0;
    int64_t t218 = 0;
    int64_t t219 = 0;
    int64_t t220 = 0;
    int64_t t221 = 0;
    int64_t t222 = 0;
    int64_t t223 = 0;
    int64_t t224 = 0;
    int64_t t225 = 0;
    int64_t t226 = 0;
    int64_t t227 = 0;
    int64_t t228 = 0;
    int64_t t229 = 0;
    int64_t t230 = 0;
    int64_t t231 = 0;
    int64_t t232 = 0;
    int64_t t233 = 0;
    int64_t t234 = 0;
    int64_t t235 = 0;
    int64_t t236 = 0;
    int64_t t237 = 0;
    int64_t t238 = 0;
    int64_t t239 = 0;
    int64_t t240 = 0;
    int64_t t241 = 0;
    int64_t t242 = 0;
    int64_t t243 = 0;
    int64_t t244 = 0;
    int64_t t245 = 0;
    int64_t t246 = 0;
    int64_t t247 = 0;
    int64_t t248 = 0;
    int64_t t249 = 0;
    int64_t t250 = 0;
    int64_t t251 = 0;
    int64_t t252 = 0;
    int64_t t253 = 0;
    int64_t t254 = 0;
    int64_t t255 = 0;
    int64_t t256 = 0;
    int64_t t257 = 0;
    int64_t t258 = 0;
    int64_t t259 = 0;
    int64_t t260 = 0;
    int64_t t261 = 0;
    int64_t t262 = 0;
    int64_t t263 = 0;
    int64_t t264 = 0;
    int64_t t265 = 0;
    int64_t t266 = 0;
    int64_t t267 = 0;
    int64_t t268 = 0;
    int64_t t269 = 0;
    int64_t t270 = 0;
    int64_t t271 = 0;
    int64_t t272 = 0;
    int64_t t273 = 0;
    int64_t t274 = 0;
    int64_t t275 = 0;
    int64_t t276 = 0;
    int64_t t277 = 0;
    int64_t t278 = 0;
    int64_t t279 = 0;
    int64_t t280 = 0;
    int64_t t281 = 0;
    int64_t t282 = 0;
    int64_t t283 = 0;
    int64_t t284 = 0;
    int64_t t285 = 0;
    int64_t t286 = 0;
    int64_t t287 = 0;
    int64_t t288 = 0;
    int64_t t289 = 0;
    int64_t t290 = 0;
    int64_t t291 = 0;
    int64_t t292 = 0;
    int64_t t293 = 0;
    int64_t t294 = 0;
    int64_t t295 = 0;
    int64_t t296 = 0;
    int64_t t297 = 0;
    int64_t t298 = 0;
    int64_t t299 = 0;
    int64_t t300 = 0;
    int64_t t301 = 0;
    int64_t t302 = 0;
    int64_t t303 = 0;
    int64_t t304 = 0;
    int64_t t305 = 0;
    int64_t t306 = 0;
    int64_t t307 = 0;
    int64_t t308 = 0;
    int64_t t309 = 0;
    int64_t t310 = 0;
    int64_t t311 = 0;
    int64_t t312 = 0;
    int64_t t313 = 0;
    int64_t t314 = 0;
    int64_t t315 = 0;
    int64_t t316 = 0;
    int64_t t317 = 0;
    int64_t t318 = 0;
    int64_t t319 = 0;
    int64_t t320 = 0;
    int64_t t321 = 0;
    int64_t t322 = 0;
    int64_t t323 = 0;
    int64_t t324 = 0;
    int64_t t325 = 0;
    int64_t t326 = 0;
    int64_t t327 = 0;
    int64_t t328 = 0;
    int64_t t329 = 0;
    int64_t t330 = 0;
    int64_t t331 = 0;
    int64_t t332 = 0;
    int64_t t333 = 0;
    int64_t t334 = 0;
    int64_t t335 = 0;
    int64_t t336 = 0;
    int64_t t337 = 0;
    int64_t t338 = 0;
    int64_t t339 = 0;
    int64_t t340 = 0;
    int64_t t341 = 0;
    int64_t t342 = 0;
    int64_t t343 = 0;
    int64_t t344 = 0;
    int64_t t345 = 0;
    int64_t t346 = 0;
    int64_t t347 = 0;
    int64_t t348 = 0;
    int64_t t349 = 0;
    int64_t t350 = 0;
    int64_t t351 = 0;
    int64_t t352 = 0;
    int64_t t353 = 0;
    int64_t t354 = 0;
    int64_t t355 = 0;
    int64_t t356 = 0;
    int64_t t357 = 0;
    int64_t t358 = 0;
    int64_t t359 = 0;
    int64_t t360 = 0;
    int64_t t361 = 0;
    int64_t t362 = 0;
    int64_t t363 = 0;
    int64_t t364 = 0;
    int64_t l0_p = 0;
    int64_t l1_s = 0;
    int64_t l2_sx = 0;
    int64_t l3_sy = 0;
    int64_t l4_sz = 0;
    int64_t l5_t[9] = {0};
    int64_t l6_i0 = 0;
    int64_t l7_i1 = 0;
    int64_t l8_wxy = 0;
    int64_t l9_n0 = 0;
    int64_t l10_wt0 = 0;
    int64_t l11_wt1 = 0;
    int64_t l12_wt2 = 0;
    int64_t l13_ux1 = 0;
    int64_t l14_ux2 = 0;
    int64_t l15_ux = 0;
    int64_t l16_uy1 = 0;
    int64_t l17_uy2 = 0;
    int64_t l18_uy = 0;
    int64_t l19_uz1 = 0;
    int64_t l20_uz2 = 0;
    int64_t l21_uz = 0;
    int64_t l22_hx = 0;
    int64_t l23_hy = 0;
    int64_t l24_hz = 0;
    int64_t l25_trace = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_c;
    (void)l0_p;
    (void)l1_s;
    (void)l2_sx;
    (void)l3_sy;
    (void)l4_sz;
    (void)l5_t;
    (void)l6_i0;
    (void)l7_i1;
    (void)l8_wxy;
    (void)l9_n0;
    (void)l10_wt0;
    (void)l11_wt1;
    (void)l12_wt2;
    (void)l13_ux1;
    (void)l14_ux2;
    (void)l15_ux;
    (void)l16_uy1;
    (void)l17_uy2;
    (void)l18_uy;
    (void)l19_uz1;
    (void)l20_uz2;
    (void)l21_uz;
    (void)l22_hx;
    (void)l23_hy;
    (void)l24_hz;
    (void)l25_trace;
    static const cint_site cs270 = {0u, 270u}; (void)cs270;
    static const cint_site cs271 = {0u, 271u}; (void)cs271;
    static const cint_site cs272 = {0u, 272u}; (void)cs272;
    static const cint_site cs273 = {0u, 273u}; (void)cs273;
    static const cint_site cs274 = {0u, 274u}; (void)cs274;
    static const cint_site cs275 = {0u, 275u}; (void)cs275;
    static const cint_site cs276 = {0u, 276u}; (void)cs276;
    static const cint_site cs277 = {0u, 277u}; (void)cs277;
    static const cint_site cs278 = {0u, 278u}; (void)cs278;
    static const cint_site cs279 = {0u, 279u}; (void)cs279;
    static const cint_site cs280 = {0u, 280u}; (void)cs280;
    static const cint_site cs281 = {0u, 281u}; (void)cs281;
    static const cint_site cs282 = {0u, 282u}; (void)cs282;
    static const cint_site cs283 = {0u, 283u}; (void)cs283;
    static const cint_site cs284 = {0u, 284u}; (void)cs284;
    static const cint_site cs285 = {0u, 285u}; (void)cs285;
    static const cint_site cs286 = {0u, 286u}; (void)cs286;
    static const cint_site cs287 = {0u, 287u}; (void)cs287;
    static const cint_site cs288 = {0u, 288u}; (void)cs288;
    static const cint_site cs289 = {0u, 289u}; (void)cs289;
    static const cint_site cs290 = {0u, 290u}; (void)cs290;
    static const cint_site cs291 = {0u, 291u}; (void)cs291;
    static const cint_site cs292 = {0u, 292u}; (void)cs292;
    static const cint_site cs293 = {0u, 293u}; (void)cs293;
    static const cint_site cs294 = {0u, 294u}; (void)cs294;
    static const cint_site cs295 = {0u, 295u}; (void)cs295;
    static const cint_site cs296 = {0u, 296u}; (void)cs296;
    static const cint_site cs297 = {0u, 297u}; (void)cs297;
    static const cint_site cs298 = {0u, 298u}; (void)cs298;
    static const cint_site cs299 = {0u, 299u}; (void)cs299;
    static const cint_site cs300 = {0u, 300u}; (void)cs300;
    static const cint_site cs301 = {0u, 301u}; (void)cs301;
    static const cint_site cs302 = {0u, 302u}; (void)cs302;
    static const cint_site cs303 = {0u, 303u}; (void)cs303;
    static const cint_site cs304 = {0u, 304u}; (void)cs304;
    static const cint_site cs305 = {0u, 305u}; (void)cs305;
    static const cint_site cs306 = {0u, 306u}; (void)cs306;
    static const cint_site cs307 = {0u, 307u}; (void)cs307;
    static const cint_site cs308 = {0u, 308u}; (void)cs308;
    static const cint_site cs309 = {0u, 309u}; (void)cs309;
    static const cint_site cs310 = {0u, 310u}; (void)cs310;
    static const cint_site cs311 = {0u, 311u}; (void)cs311;
    static const cint_site cs312 = {0u, 312u}; (void)cs312;
    static const cint_site cs313 = {0u, 313u}; (void)cs313;
    static const cint_site cs314 = {0u, 314u}; (void)cs314;
    static const cint_site cs315 = {0u, 315u}; (void)cs315;
    static const cint_site cs316 = {0u, 316u}; (void)cs316;
    static const cint_site cs317 = {0u, 317u}; (void)cs317;
    static const cint_site cs318 = {0u, 318u}; (void)cs318;
    static const cint_site cs319 = {0u, 319u}; (void)cs319;
    static const cint_site cs320 = {0u, 320u}; (void)cs320;
    static const cint_site cs321 = {0u, 321u}; (void)cs321;
    static const cint_site cs322 = {0u, 322u}; (void)cs322;
    static const cint_site cs323 = {0u, 323u}; (void)cs323;
    static const cint_site cs324 = {0u, 324u}; (void)cs324;
    static const cint_site cs325 = {0u, 325u}; (void)cs325;
    static const cint_site cs326 = {0u, 326u}; (void)cs326;
    static const cint_site cs327 = {0u, 327u}; (void)cs327;
    static const cint_site cs328 = {0u, 328u}; (void)cs328;
    static const cint_site cs329 = {0u, 329u}; (void)cs329;
    static const cint_site cs330 = {0u, 330u}; (void)cs330;
    static const cint_site cs331 = {0u, 331u}; (void)cs331;
    static const cint_site cs332 = {0u, 332u}; (void)cs332;
    static const cint_site cs333 = {0u, 333u}; (void)cs333;
    static const cint_site cs334 = {0u, 334u}; (void)cs334;
    static const cint_site cs335 = {0u, 335u}; (void)cs335;
    static const cint_site cs336 = {0u, 336u}; (void)cs336;
    static const cint_site cs337 = {0u, 337u}; (void)cs337;
    static const cint_site cs338 = {0u, 338u}; (void)cs338;
    static const cint_site cs339 = {0u, 339u}; (void)cs339;
    static const cint_site cs340 = {0u, 340u}; (void)cs340;
    static const cint_site cs341 = {0u, 341u}; (void)cs341;
    static const cint_site cs342 = {0u, 342u}; (void)cs342;
    static const cint_site cs343 = {0u, 343u}; (void)cs343;
    static const cint_site cs344 = {0u, 344u}; (void)cs344;
    static const cint_site cs345 = {0u, 345u}; (void)cs345;
    static const cint_site cs346 = {0u, 346u}; (void)cs346;
    static const cint_site cs347 = {0u, 347u}; (void)cs347;
    static const cint_site cs348 = {0u, 348u}; (void)cs348;
    static const cint_site cs349 = {0u, 349u}; (void)cs349;
    static const cint_site cs350 = {0u, 350u}; (void)cs350;
    static const cint_site cs351 = {0u, 351u}; (void)cs351;
    static const cint_site cs352 = {0u, 352u}; (void)cs352;
    static const cint_site cs353 = {0u, 353u}; (void)cs353;
    static const cint_site cs354 = {0u, 354u}; (void)cs354;
    static const cint_site cs355 = {0u, 355u}; (void)cs355;
    static const cint_site cs356 = {0u, 356u}; (void)cs356;
    static const cint_site cs357 = {0u, 357u}; (void)cs357;
    static const cint_site cs358 = {0u, 358u}; (void)cs358;
    static const cint_site cs359 = {0u, 359u}; (void)cs359;
    static const cint_site cs360 = {0u, 360u}; (void)cs360;
    static const cint_site cs361 = {0u, 361u}; (void)cs361;
    static const cint_site cs362 = {0u, 362u}; (void)cs362;
    static const cint_site cs363 = {0u, 363u}; (void)cs363;
    static const cint_site cs364 = {0u, 364u}; (void)cs364;
    static const cint_site cs365 = {0u, 365u}; (void)cs365;
    static const cint_site cs366 = {0u, 366u}; (void)cs366;
    static const cint_site cs367 = {0u, 367u}; (void)cs367;
    static const cint_site cs368 = {0u, 368u}; (void)cs368;
    static const cint_site cs369 = {0u, 369u}; (void)cs369;
    static const cint_site cs370 = {0u, 370u}; (void)cs370;
    static const cint_site cs371 = {0u, 371u}; (void)cs371;
    static const cint_site cs372 = {0u, 372u}; (void)cs372;
    static const cint_site cs373 = {0u, 373u}; (void)cs373;
    static const cint_site cs374 = {0u, 374u}; (void)cs374;
    static const cint_site cs375 = {0u, 375u}; (void)cs375;
    static const cint_site cs376 = {0u, 376u}; (void)cs376;
    static const cint_site cs377 = {0u, 377u}; (void)cs377;
    static const cint_site cs378 = {0u, 378u}; (void)cs378;
    static const cint_site cs379 = {0u, 379u}; (void)cs379;
    static const cint_site cs380 = {0u, 380u}; (void)cs380;
    static const cint_site cs381 = {0u, 381u}; (void)cs381;
    static const cint_site cs382 = {0u, 382u}; (void)cs382;
    static const cint_site cs383 = {0u, 383u}; (void)cs383;
    static const cint_site cs384 = {0u, 384u}; (void)cs384;
    static const cint_site cs385 = {0u, 385u}; (void)cs385;
    static const cint_site cs386 = {0u, 386u}; (void)cs386;
    static const cint_site cs387 = {0u, 387u}; (void)cs387;
    static const cint_site cs388 = {0u, 388u}; (void)cs388;
    static const cint_site cs389 = {0u, 389u}; (void)cs389;
    static const cint_site cs390 = {0u, 390u}; (void)cs390;
    static const cint_site cs391 = {0u, 391u}; (void)cs391;
    static const cint_site cs392 = {0u, 392u}; (void)cs392;
    static const cint_site cs393 = {0u, 393u}; (void)cs393;
    static const cint_site cs394 = {0u, 394u}; (void)cs394;
    static const cint_site cs395 = {0u, 395u}; (void)cs395;
    static const cint_site cs396 = {0u, 396u}; (void)cs396;
    static const cint_site cs397 = {0u, 397u}; (void)cs397;
    static const cint_site cs398 = {0u, 398u}; (void)cs398;
    static const cint_site cs399 = {0u, 399u}; (void)cs399;
    static const cint_site cs400 = {0u, 400u}; (void)cs400;
    static const cint_site cs401 = {0u, 401u}; (void)cs401;
    static const cint_site cs402 = {0u, 402u}; (void)cs402;
    static const cint_site cs403 = {0u, 403u}; (void)cs403;
    static const cint_site cs404 = {0u, 404u}; (void)cs404;
    static const cint_site cs405 = {0u, 405u}; (void)cs405;
    static const cint_site cs406 = {0u, 406u}; (void)cs406;
    static const cint_site cs407 = {0u, 407u}; (void)cs407;
    static const cint_site cs408 = {0u, 408u}; (void)cs408;
    static const cint_site cs409 = {0u, 409u}; (void)cs409;
    static const cint_site cs410 = {0u, 410u}; (void)cs410;
    static const cint_site cs411 = {0u, 411u}; (void)cs411;
    static const cint_site cs412 = {0u, 412u}; (void)cs412;
    static const cint_site cs413 = {0u, 413u}; (void)cs413;
    static const cint_site cs414 = {0u, 414u}; (void)cs414;
    static const cint_site cs415 = {0u, 415u}; (void)cs415;
    static const cint_site cs416 = {0u, 416u}; (void)cs416;
    static const cint_site cs417 = {0u, 417u}; (void)cs417;
    static const cint_site cs418 = {0u, 418u}; (void)cs418;
    static const cint_site cs419 = {0u, 419u}; (void)cs419;
    static const cint_site cs420 = {0u, 420u}; (void)cs420;
    static const cint_site cs421 = {0u, 421u}; (void)cs421;
    static const cint_site cs422 = {0u, 422u}; (void)cs422;
    static const cint_site cs423 = {0u, 423u}; (void)cs423;
    static const cint_site cs424 = {0u, 424u}; (void)cs424;
    static const cint_site cs425 = {0u, 425u}; (void)cs425;
    static const cint_site cs426 = {0u, 426u}; (void)cs426;
    static const cint_site cs427 = {0u, 427u}; (void)cs427;
    static const cint_site cs428 = {0u, 428u}; (void)cs428;
    static const cint_site cs429 = {0u, 429u}; (void)cs429;
    static const cint_site cs430 = {0u, 430u}; (void)cs430;
    static const cint_site cs431 = {0u, 431u}; (void)cs431;
    static const cint_site cs432 = {0u, 432u}; (void)cs432;
    static const cint_site cs433 = {0u, 433u}; (void)cs433;
    static const cint_site cs434 = {0u, 434u}; (void)cs434;
    static const cint_site cs435 = {0u, 435u}; (void)cs435;
    static const cint_site cs436 = {0u, 436u}; (void)cs436;
    static const cint_site cs437 = {0u, 437u}; (void)cs437;
    static const cint_site cs438 = {0u, 438u}; (void)cs438;
    static const cint_site cs439 = {0u, 439u}; (void)cs439;
    static const cint_site cs440 = {0u, 440u}; (void)cs440;
    static const cint_site cs441 = {0u, 441u}; (void)cs441;
    static const cint_site cs442 = {0u, 442u}; (void)cs442;
    static const cint_site cs443 = {0u, 443u}; (void)cs443;
    static const cint_site cs444 = {0u, 444u}; (void)cs444;
    static const cint_site cs445 = {0u, 445u}; (void)cs445;
    static const cint_site cs446 = {0u, 446u}; (void)cs446;
    static const cint_site cs447 = {0u, 447u}; (void)cs447;
    static const cint_site cs448 = {0u, 448u}; (void)cs448;
    static const cint_site cs449 = {0u, 449u}; (void)cs449;
    static const cint_site cs450 = {0u, 450u}; (void)cs450;
    static const cint_site cs451 = {0u, 451u}; (void)cs451;
    static const cint_site cs452 = {0u, 452u}; (void)cs452;
    static const cint_site cs453 = {0u, 453u}; (void)cs453;
    static const cint_site cs454 = {0u, 454u}; (void)cs454;
    static const cint_site cs455 = {0u, 455u}; (void)cs455;
    static const cint_site cs456 = {0u, 456u}; (void)cs456;
    static const cint_site cs457 = {0u, 457u}; (void)cs457;
    t0 = INT64_C(0);
    t1 = INT64_C(1024);
    l0_p = t0;
L4_h:;
    t2 = l0_p;
    t3 = t2 < t1;
    if (!t3) goto L4_e;
    if (!cint_fuel_charge(ctx, cs270, 1u)) goto fault;
    t4 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs271, v_c, t4, &t5)) goto fault;
    t6 = l0_p;
    if (!cint_add_i64(ctx, cs272, t5, t6, &t7)) goto fault;
    l1_s = t7;
    t8 = l1_s;
    if (!cint_rt_call_enter(ctx, cs273)) goto fault;
    if (!ci_9_avalanche_7_weights(ctx, t8)) goto fault;
    cint_rt_call_leave(ctx);
    t9 = INT64_C(0);
    l2_sx = t9;
    t10 = INT64_C(0);
    l3_sy = t10;
    t11 = INT64_C(0);
    l4_sz = t11;
    for (int64_t z = 0; z < INT64_C(9); z++) { l5_t[z] = 0; }
    t12 = INT64_C(0);
    t13 = INT64_C(3);
    l6_i0 = t12;
L34_h:;
    t14 = l6_i0;
    t15 = t14 < t13;
    if (!t15) goto L34_e;
    if (!cint_fuel_charge(ctx, cs274, 1u)) goto fault;
    t16 = INT64_C(0);
    t17 = INT64_C(3);
    l7_i1 = t16;
L43_h:;
    t18 = l7_i1;
    t19 = t18 < t17;
    if (!t19) goto L43_e;
    if (!cint_fuel_charge(ctx, cs275, 1u)) goto fault;
    t20 = l6_i0;
    if (!(t20 >= 0 && t20 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs276, "index.checked.i64", t20, INT64_C(9));
        goto fault;
    }
    t21 = cg_st->g_w[t20];
    t22 = INT64_C(3);
    t23 = l7_i1;
    if (!cint_add_i64(ctx, cs277, t22, t23, &t24)) goto fault;
    if (!(t24 >= 0 && t24 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs278, "index.checked.i64", t24, INT64_C(9));
        goto fault;
    }
    t25 = cg_st->g_w[t24];
    if (!cint_mul_i64(ctx, cs279, t21, t25, &t26)) goto fault;
    l8_wxy = t26;
    t27 = INT64_C(0);
    if (!(t27 >= 0 && t27 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs280, "index.checked.i64", t27, INT64_C(3));
        goto fault;
    }
    t28 = cg_st->g_base[t27];
    t29 = l6_i0;
    if (!cint_add_i64(ctx, cs281, t28, t29, &t30)) goto fault;
    t31 = INT64_C(16);
    if (!cint_mul_i64(ctx, cs282, t30, t31, &t32)) goto fault;
    t33 = INT64_C(1);
    if (!(t33 >= 0 && t33 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs283, "index.checked.i64", t33, INT64_C(3));
        goto fault;
    }
    t34 = cg_st->g_base[t33];
    if (!cint_add_i64(ctx, cs284, t32, t34, &t35)) goto fault;
    t36 = l7_i1;
    if (!cint_add_i64(ctx, cs285, t35, t36, &t37)) goto fault;
    t38 = INT64_C(16);
    if (!cint_mul_i64(ctx, cs286, t37, t38, &t39)) goto fault;
    t40 = INT64_C(2);
    if (!(t40 >= 0 && t40 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs287, "index.checked.i64", t40, INT64_C(3));
        goto fault;
    }
    t41 = cg_st->g_base[t40];
    if (!cint_add_i64(ctx, cs288, t39, t41, &t42)) goto fault;
    l9_n0 = t42;
    t43 = l8_wxy;
    t44 = INT64_C(6);
    if (!(t44 >= 0 && t44 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs289, "index.checked.i64", t44, INT64_C(9));
        goto fault;
    }
    t45 = cg_st->g_w[t44];
    if (!cint_mul_i64(ctx, cs290, t43, t45, &t46)) goto fault;
    l10_wt0 = t46;
    t47 = l8_wxy;
    t48 = INT64_C(7);
    if (!(t48 >= 0 && t48 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs291, "index.checked.i64", t48, INT64_C(9));
        goto fault;
    }
    t49 = cg_st->g_w[t48];
    if (!cint_mul_i64(ctx, cs292, t47, t49, &t50)) goto fault;
    l11_wt1 = t50;
    t51 = l8_wxy;
    t52 = INT64_C(8);
    if (!(t52 >= 0 && t52 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs293, "index.checked.i64", t52, INT64_C(9));
        goto fault;
    }
    t53 = cg_st->g_w[t52];
    if (!cint_mul_i64(ctx, cs294, t51, t53, &t54)) goto fault;
    l12_wt2 = t54;
    t55 = l11_wt1;
    t56 = l9_n0;
    t57 = INT64_C(1);
    if (!cint_add_i64(ctx, cs295, t56, t57, &t58)) goto fault;
    if (!(t58 >= 0 && t58 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs296, "index.checked.i64", t58, INT64_C(4096));
        goto fault;
    }
    t59 = cg_st->g_gx[t58];
    if (!cint_mul_i64(ctx, cs297, t55, t59, &t60)) goto fault;
    l13_ux1 = t60;
    t61 = l12_wt2;
    t62 = l9_n0;
    t63 = INT64_C(2);
    if (!cint_add_i64(ctx, cs298, t62, t63, &t64)) goto fault;
    if (!(t64 >= 0 && t64 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs299, "index.checked.i64", t64, INT64_C(4096));
        goto fault;
    }
    t65 = cg_st->g_gx[t64];
    if (!cint_mul_i64(ctx, cs300, t61, t65, &t66)) goto fault;
    l14_ux2 = t66;
    t67 = l10_wt0;
    t68 = l9_n0;
    if (!(t68 >= 0 && t68 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs301, "index.checked.i64", t68, INT64_C(4096));
        goto fault;
    }
    t69 = cg_st->g_gx[t68];
    if (!cint_mul_i64(ctx, cs302, t67, t69, &t70)) goto fault;
    t71 = l13_ux1;
    if (!cint_add_i64(ctx, cs303, t70, t71, &t72)) goto fault;
    t73 = l14_ux2;
    if (!cint_add_i64(ctx, cs304, t72, t73, &t74)) goto fault;
    l15_ux = t74;
    t75 = l11_wt1;
    t76 = l9_n0;
    t77 = INT64_C(1);
    if (!cint_add_i64(ctx, cs305, t76, t77, &t78)) goto fault;
    if (!(t78 >= 0 && t78 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs306, "index.checked.i64", t78, INT64_C(4096));
        goto fault;
    }
    t79 = cg_st->g_gy[t78];
    if (!cint_mul_i64(ctx, cs307, t75, t79, &t80)) goto fault;
    l16_uy1 = t80;
    t81 = l12_wt2;
    t82 = l9_n0;
    t83 = INT64_C(2);
    if (!cint_add_i64(ctx, cs308, t82, t83, &t84)) goto fault;
    if (!(t84 >= 0 && t84 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs309, "index.checked.i64", t84, INT64_C(4096));
        goto fault;
    }
    t85 = cg_st->g_gy[t84];
    if (!cint_mul_i64(ctx, cs310, t81, t85, &t86)) goto fault;
    l17_uy2 = t86;
    t87 = l10_wt0;
    t88 = l9_n0;
    if (!(t88 >= 0 && t88 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs311, "index.checked.i64", t88, INT64_C(4096));
        goto fault;
    }
    t89 = cg_st->g_gy[t88];
    if (!cint_mul_i64(ctx, cs312, t87, t89, &t90)) goto fault;
    t91 = l16_uy1;
    if (!cint_add_i64(ctx, cs313, t90, t91, &t92)) goto fault;
    t93 = l17_uy2;
    if (!cint_add_i64(ctx, cs314, t92, t93, &t94)) goto fault;
    l18_uy = t94;
    t95 = l11_wt1;
    t96 = l9_n0;
    t97 = INT64_C(1);
    if (!cint_add_i64(ctx, cs315, t96, t97, &t98)) goto fault;
    if (!(t98 >= 0 && t98 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs316, "index.checked.i64", t98, INT64_C(4096));
        goto fault;
    }
    t99 = cg_st->g_gz[t98];
    if (!cint_mul_i64(ctx, cs317, t95, t99, &t100)) goto fault;
    l19_uz1 = t100;
    t101 = l12_wt2;
    t102 = l9_n0;
    t103 = INT64_C(2);
    if (!cint_add_i64(ctx, cs318, t102, t103, &t104)) goto fault;
    if (!(t104 >= 0 && t104 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs319, "index.checked.i64", t104, INT64_C(4096));
        goto fault;
    }
    t105 = cg_st->g_gz[t104];
    if (!cint_mul_i64(ctx, cs320, t101, t105, &t106)) goto fault;
    l20_uz2 = t106;
    t107 = l10_wt0;
    t108 = l9_n0;
    if (!(t108 >= 0 && t108 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs321, "index.checked.i64", t108, INT64_C(4096));
        goto fault;
    }
    t109 = cg_st->g_gz[t108];
    if (!cint_mul_i64(ctx, cs322, t107, t109, &t110)) goto fault;
    t111 = l19_uz1;
    if (!cint_add_i64(ctx, cs323, t110, t111, &t112)) goto fault;
    t113 = l20_uz2;
    if (!cint_add_i64(ctx, cs324, t112, t113, &t114)) goto fault;
    l21_uz = t114;
    t115 = l2_sx;
    t116 = l15_ux;
    if (!cint_add_i64(ctx, cs325, t115, t116, &t117)) goto fault;
    l2_sx = t117;
    t118 = l3_sy;
    t119 = l18_uy;
    if (!cint_add_i64(ctx, cs326, t118, t119, &t120)) goto fault;
    l3_sy = t120;
    t121 = l4_sz;
    t122 = l21_uz;
    if (!cint_add_i64(ctx, cs327, t121, t122, &t123)) goto fault;
    l4_sz = t123;
    t124 = INT64_C(0);
    if (!(t124 >= 0 && t124 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs328, "index.checked.i64", t124, INT64_C(9));
        goto fault;
    }
    t125 = INT64_C(0);
    if (!(t125 >= 0 && t125 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs329, "index.checked.i64", t125, INT64_C(9));
        goto fault;
    }
    t126 = l5_t[t125];
    t127 = l15_ux;
    t128 = l6_i0;
    if (!cint_mul_i64(ctx, cs330, t127, t128, &t129)) goto fault;
    if (!cint_add_i64(ctx, cs331, t126, t129, &t130)) goto fault;
    l5_t[t124] = t130;
    t131 = INT64_C(1);
    if (!(t131 >= 0 && t131 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs332, "index.checked.i64", t131, INT64_C(9));
        goto fault;
    }
    t132 = INT64_C(1);
    if (!(t132 >= 0 && t132 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs333, "index.checked.i64", t132, INT64_C(9));
        goto fault;
    }
    t133 = l5_t[t132];
    t134 = l15_ux;
    t135 = l7_i1;
    if (!cint_mul_i64(ctx, cs334, t134, t135, &t136)) goto fault;
    if (!cint_add_i64(ctx, cs335, t133, t136, &t137)) goto fault;
    l5_t[t131] = t137;
    t138 = INT64_C(2);
    if (!(t138 >= 0 && t138 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs336, "index.checked.i64", t138, INT64_C(9));
        goto fault;
    }
    t139 = INT64_C(2);
    if (!(t139 >= 0 && t139 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs337, "index.checked.i64", t139, INT64_C(9));
        goto fault;
    }
    t140 = l5_t[t139];
    t141 = l13_ux1;
    if (!cint_add_i64(ctx, cs338, t140, t141, &t142)) goto fault;
    t143 = INT64_C(2);
    t144 = l14_ux2;
    if (!cint_mul_i64(ctx, cs339, t143, t144, &t145)) goto fault;
    if (!cint_add_i64(ctx, cs340, t142, t145, &t146)) goto fault;
    l5_t[t138] = t146;
    t147 = INT64_C(3);
    if (!(t147 >= 0 && t147 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs341, "index.checked.i64", t147, INT64_C(9));
        goto fault;
    }
    t148 = INT64_C(3);
    if (!(t148 >= 0 && t148 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs342, "index.checked.i64", t148, INT64_C(9));
        goto fault;
    }
    t149 = l5_t[t148];
    t150 = l18_uy;
    t151 = l6_i0;
    if (!cint_mul_i64(ctx, cs343, t150, t151, &t152)) goto fault;
    if (!cint_add_i64(ctx, cs344, t149, t152, &t153)) goto fault;
    l5_t[t147] = t153;
    t154 = INT64_C(4);
    if (!(t154 >= 0 && t154 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs345, "index.checked.i64", t154, INT64_C(9));
        goto fault;
    }
    t155 = INT64_C(4);
    if (!(t155 >= 0 && t155 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs346, "index.checked.i64", t155, INT64_C(9));
        goto fault;
    }
    t156 = l5_t[t155];
    t157 = l18_uy;
    t158 = l7_i1;
    if (!cint_mul_i64(ctx, cs347, t157, t158, &t159)) goto fault;
    if (!cint_add_i64(ctx, cs348, t156, t159, &t160)) goto fault;
    l5_t[t154] = t160;
    t161 = INT64_C(5);
    if (!(t161 >= 0 && t161 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs349, "index.checked.i64", t161, INT64_C(9));
        goto fault;
    }
    t162 = INT64_C(5);
    if (!(t162 >= 0 && t162 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs350, "index.checked.i64", t162, INT64_C(9));
        goto fault;
    }
    t163 = l5_t[t162];
    t164 = l16_uy1;
    if (!cint_add_i64(ctx, cs351, t163, t164, &t165)) goto fault;
    t166 = INT64_C(2);
    t167 = l17_uy2;
    if (!cint_mul_i64(ctx, cs352, t166, t167, &t168)) goto fault;
    if (!cint_add_i64(ctx, cs353, t165, t168, &t169)) goto fault;
    l5_t[t161] = t169;
    t170 = INT64_C(6);
    if (!(t170 >= 0 && t170 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs354, "index.checked.i64", t170, INT64_C(9));
        goto fault;
    }
    t171 = INT64_C(6);
    if (!(t171 >= 0 && t171 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs355, "index.checked.i64", t171, INT64_C(9));
        goto fault;
    }
    t172 = l5_t[t171];
    t173 = l21_uz;
    t174 = l6_i0;
    if (!cint_mul_i64(ctx, cs356, t173, t174, &t175)) goto fault;
    if (!cint_add_i64(ctx, cs357, t172, t175, &t176)) goto fault;
    l5_t[t170] = t176;
    t177 = INT64_C(7);
    if (!(t177 >= 0 && t177 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs358, "index.checked.i64", t177, INT64_C(9));
        goto fault;
    }
    t178 = INT64_C(7);
    if (!(t178 >= 0 && t178 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs359, "index.checked.i64", t178, INT64_C(9));
        goto fault;
    }
    t179 = l5_t[t178];
    t180 = l21_uz;
    t181 = l7_i1;
    if (!cint_mul_i64(ctx, cs360, t180, t181, &t182)) goto fault;
    if (!cint_add_i64(ctx, cs361, t179, t182, &t183)) goto fault;
    l5_t[t177] = t183;
    t184 = INT64_C(8);
    if (!(t184 >= 0 && t184 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs362, "index.checked.i64", t184, INT64_C(9));
        goto fault;
    }
    t185 = INT64_C(8);
    if (!(t185 >= 0 && t185 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs363, "index.checked.i64", t185, INT64_C(9));
        goto fault;
    }
    t186 = l5_t[t185];
    t187 = l19_uz1;
    if (!cint_add_i64(ctx, cs364, t186, t187, &t188)) goto fault;
    t189 = INT64_C(2);
    t190 = l20_uz2;
    if (!cint_mul_i64(ctx, cs365, t189, t190, &t191)) goto fault;
    if (!cint_add_i64(ctx, cs366, t188, t191, &t192)) goto fault;
    l5_t[t184] = t192;
    t193 = l7_i1;
    t194 = INT64_C(1);
    t195 = cint_add_wrap_i64(t193, t194);
    l7_i1 = t195;
    goto L43_h;
L43_e:;
    t196 = l6_i0;
    t197 = INT64_C(1);
    t198 = cint_add_wrap_i64(t196, t197);
    l6_i0 = t198;
    goto L34_h;
L34_e:;
    t199 = l1_s;
    if (!(t199 >= 0 && t199 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs367, "index.checked.i64", t199, INT64_C(3072));
        goto fault;
    }
    t200 = l2_sx;
    t201 = INT64_C(8589934592);
    t202 = INT64_C(2);
    if (!cint_div_i64(ctx, cs368, t201, t202, &t203)) goto fault;
    if (!cint_add_i64(ctx, cs369, t200, t203, &t204)) goto fault;
    t205 = INT64_C(8589934592);
    if (!cint_div_i64(ctx, cs370, t204, t205, &t206)) goto fault;
    cg_st->g_vx[t199] = t206;
    t207 = l1_s;
    if (!(t207 >= 0 && t207 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs371, "index.checked.i64", t207, INT64_C(3072));
        goto fault;
    }
    t208 = l3_sy;
    t209 = INT64_C(8589934592);
    t210 = INT64_C(2);
    if (!cint_div_i64(ctx, cs372, t209, t210, &t211)) goto fault;
    if (!cint_add_i64(ctx, cs373, t208, t211, &t212)) goto fault;
    t213 = INT64_C(8589934592);
    if (!cint_div_i64(ctx, cs374, t212, t213, &t214)) goto fault;
    cg_st->g_vy[t207] = t214;
    t215 = l1_s;
    if (!(t215 >= 0 && t215 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs375, "index.checked.i64", t215, INT64_C(3072));
        goto fault;
    }
    t216 = l4_sz;
    t217 = INT64_C(8589934592);
    t218 = INT64_C(2);
    if (!cint_div_i64(ctx, cs376, t217, t218, &t219)) goto fault;
    if (!cint_add_i64(ctx, cs377, t216, t219, &t220)) goto fault;
    t221 = INT64_C(8589934592);
    if (!cint_div_i64(ctx, cs378, t220, t221, &t222)) goto fault;
    cg_st->g_vz[t215] = t222;
    t223 = l2_sx;
    t224 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs379, t223, t224, &t225)) goto fault;
    l22_hx = t225;
    t226 = l3_sy;
    t227 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs380, t226, t227, &t228)) goto fault;
    l23_hy = t228;
    t229 = l4_sz;
    t230 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs381, t229, t230, &t231)) goto fault;
    l24_hz = t231;
    t232 = l1_s;
    if (!(t232 >= 0 && t232 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs382, "index.checked.i64", t232, INT64_C(3072));
        goto fault;
    }
    t233 = INT64_C(0);
    if (!(t233 >= 0 && t233 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs383, "index.checked.i64", t233, INT64_C(9));
        goto fault;
    }
    t234 = l5_t[t233];
    t235 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs384, t234, t235, &t236)) goto fault;
    t237 = l22_hx;
    t238 = INT64_C(0);
    if (!(t238 >= 0 && t238 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs385, "index.checked.i64", t238, INT64_C(3));
        goto fault;
    }
    t239 = cg_st->g_fx[t238];
    if (!cint_mul_i64(ctx, cs386, t237, t239, &t240)) goto fault;
    t241 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs387, t240, t241, &t242)) goto fault;
    if (!cint_sub_i64(ctx, cs388, t236, t242, &t243)) goto fault;
    cg_st->g_c0[t232] = t243;
    t244 = l1_s;
    if (!(t244 >= 0 && t244 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs389, "index.checked.i64", t244, INT64_C(3072));
        goto fault;
    }
    t245 = INT64_C(1);
    if (!(t245 >= 0 && t245 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs390, "index.checked.i64", t245, INT64_C(9));
        goto fault;
    }
    t246 = l5_t[t245];
    t247 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs391, t246, t247, &t248)) goto fault;
    t249 = l22_hx;
    t250 = INT64_C(1);
    if (!(t250 >= 0 && t250 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs392, "index.checked.i64", t250, INT64_C(3));
        goto fault;
    }
    t251 = cg_st->g_fx[t250];
    if (!cint_mul_i64(ctx, cs393, t249, t251, &t252)) goto fault;
    t253 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs394, t252, t253, &t254)) goto fault;
    if (!cint_sub_i64(ctx, cs395, t248, t254, &t255)) goto fault;
    cg_st->g_c1[t244] = t255;
    t256 = l1_s;
    if (!(t256 >= 0 && t256 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs396, "index.checked.i64", t256, INT64_C(3072));
        goto fault;
    }
    t257 = INT64_C(2);
    if (!(t257 >= 0 && t257 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs397, "index.checked.i64", t257, INT64_C(9));
        goto fault;
    }
    t258 = l5_t[t257];
    t259 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs398, t258, t259, &t260)) goto fault;
    t261 = l22_hx;
    t262 = INT64_C(2);
    if (!(t262 >= 0 && t262 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs399, "index.checked.i64", t262, INT64_C(3));
        goto fault;
    }
    t263 = cg_st->g_fx[t262];
    if (!cint_mul_i64(ctx, cs400, t261, t263, &t264)) goto fault;
    t265 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs401, t264, t265, &t266)) goto fault;
    if (!cint_sub_i64(ctx, cs402, t260, t266, &t267)) goto fault;
    cg_st->g_c2[t256] = t267;
    t268 = l1_s;
    if (!(t268 >= 0 && t268 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs403, "index.checked.i64", t268, INT64_C(3072));
        goto fault;
    }
    t269 = INT64_C(3);
    if (!(t269 >= 0 && t269 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs404, "index.checked.i64", t269, INT64_C(9));
        goto fault;
    }
    t270 = l5_t[t269];
    t271 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs405, t270, t271, &t272)) goto fault;
    t273 = l23_hy;
    t274 = INT64_C(0);
    if (!(t274 >= 0 && t274 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs406, "index.checked.i64", t274, INT64_C(3));
        goto fault;
    }
    t275 = cg_st->g_fx[t274];
    if (!cint_mul_i64(ctx, cs407, t273, t275, &t276)) goto fault;
    t277 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs408, t276, t277, &t278)) goto fault;
    if (!cint_sub_i64(ctx, cs409, t272, t278, &t279)) goto fault;
    cg_st->g_c3[t268] = t279;
    t280 = l1_s;
    if (!(t280 >= 0 && t280 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs410, "index.checked.i64", t280, INT64_C(3072));
        goto fault;
    }
    t281 = INT64_C(4);
    if (!(t281 >= 0 && t281 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs411, "index.checked.i64", t281, INT64_C(9));
        goto fault;
    }
    t282 = l5_t[t281];
    t283 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs412, t282, t283, &t284)) goto fault;
    t285 = l23_hy;
    t286 = INT64_C(1);
    if (!(t286 >= 0 && t286 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs413, "index.checked.i64", t286, INT64_C(3));
        goto fault;
    }
    t287 = cg_st->g_fx[t286];
    if (!cint_mul_i64(ctx, cs414, t285, t287, &t288)) goto fault;
    t289 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs415, t288, t289, &t290)) goto fault;
    if (!cint_sub_i64(ctx, cs416, t284, t290, &t291)) goto fault;
    cg_st->g_c4[t280] = t291;
    t292 = l1_s;
    if (!(t292 >= 0 && t292 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs417, "index.checked.i64", t292, INT64_C(3072));
        goto fault;
    }
    t293 = INT64_C(5);
    if (!(t293 >= 0 && t293 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs418, "index.checked.i64", t293, INT64_C(9));
        goto fault;
    }
    t294 = l5_t[t293];
    t295 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs419, t294, t295, &t296)) goto fault;
    t297 = l23_hy;
    t298 = INT64_C(2);
    if (!(t298 >= 0 && t298 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs420, "index.checked.i64", t298, INT64_C(3));
        goto fault;
    }
    t299 = cg_st->g_fx[t298];
    if (!cint_mul_i64(ctx, cs421, t297, t299, &t300)) goto fault;
    t301 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs422, t300, t301, &t302)) goto fault;
    if (!cint_sub_i64(ctx, cs423, t296, t302, &t303)) goto fault;
    cg_st->g_c5[t292] = t303;
    t304 = l1_s;
    if (!(t304 >= 0 && t304 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs424, "index.checked.i64", t304, INT64_C(3072));
        goto fault;
    }
    t305 = INT64_C(6);
    if (!(t305 >= 0 && t305 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs425, "index.checked.i64", t305, INT64_C(9));
        goto fault;
    }
    t306 = l5_t[t305];
    t307 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs426, t306, t307, &t308)) goto fault;
    t309 = l24_hz;
    t310 = INT64_C(0);
    if (!(t310 >= 0 && t310 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs427, "index.checked.i64", t310, INT64_C(3));
        goto fault;
    }
    t311 = cg_st->g_fx[t310];
    if (!cint_mul_i64(ctx, cs428, t309, t311, &t312)) goto fault;
    t313 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs429, t312, t313, &t314)) goto fault;
    if (!cint_sub_i64(ctx, cs430, t308, t314, &t315)) goto fault;
    cg_st->g_c6[t304] = t315;
    t316 = l1_s;
    if (!(t316 >= 0 && t316 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs431, "index.checked.i64", t316, INT64_C(3072));
        goto fault;
    }
    t317 = INT64_C(7);
    if (!(t317 >= 0 && t317 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs432, "index.checked.i64", t317, INT64_C(9));
        goto fault;
    }
    t318 = l5_t[t317];
    t319 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs433, t318, t319, &t320)) goto fault;
    t321 = l24_hz;
    t322 = INT64_C(1);
    if (!(t322 >= 0 && t322 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs434, "index.checked.i64", t322, INT64_C(3));
        goto fault;
    }
    t323 = cg_st->g_fx[t322];
    if (!cint_mul_i64(ctx, cs435, t321, t323, &t324)) goto fault;
    t325 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs436, t324, t325, &t326)) goto fault;
    if (!cint_sub_i64(ctx, cs437, t320, t326, &t327)) goto fault;
    cg_st->g_c7[t316] = t327;
    t328 = l1_s;
    if (!(t328 >= 0 && t328 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs438, "index.checked.i64", t328, INT64_C(3072));
        goto fault;
    }
    t329 = INT64_C(8);
    if (!(t329 >= 0 && t329 < INT64_C(9))) {
        (void)cint_index_check(ctx, cs439, "index.checked.i64", t329, INT64_C(9));
        goto fault;
    }
    t330 = l5_t[t329];
    t331 = INT64_C(2147483648);
    if (!cint_div_i64(ctx, cs440, t330, t331, &t332)) goto fault;
    t333 = l24_hz;
    t334 = INT64_C(2);
    if (!(t334 >= 0 && t334 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs441, "index.checked.i64", t334, INT64_C(3));
        goto fault;
    }
    t335 = cg_st->g_fx[t334];
    if (!cint_mul_i64(ctx, cs442, t333, t335, &t336)) goto fault;
    t337 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs443, t336, t337, &t338)) goto fault;
    if (!cint_sub_i64(ctx, cs444, t332, t338, &t339)) goto fault;
    cg_st->g_c8[t328] = t339;
    t340 = l1_s;
    if (!(t340 >= 0 && t340 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs445, "index.checked.i64", t340, INT64_C(3072));
        goto fault;
    }
    t341 = cg_st->g_c0[t340];
    t342 = l1_s;
    if (!(t342 >= 0 && t342 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs446, "index.checked.i64", t342, INT64_C(3072));
        goto fault;
    }
    t343 = cg_st->g_c4[t342];
    if (!cint_add_i64(ctx, cs447, t341, t343, &t344)) goto fault;
    t345 = l1_s;
    if (!(t345 >= 0 && t345 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs448, "index.checked.i64", t345, INT64_C(3072));
        goto fault;
    }
    t346 = cg_st->g_c8[t345];
    if (!cint_add_i64(ctx, cs449, t344, t346, &t347)) goto fault;
    l25_trace = t347;
    t348 = l1_s;
    if (!(t348 >= 0 && t348 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs450, "index.checked.i64", t348, INT64_C(3072));
        goto fault;
    }
    t349 = l1_s;
    if (!(t349 >= 0 && t349 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs451, "index.checked.i64", t349, INT64_C(3072));
        goto fault;
    }
    t350 = cg_st->g_jv[t349];
    t351 = l1_s;
    if (!(t351 >= 0 && t351 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs452, "index.checked.i64", t351, INT64_C(3072));
        goto fault;
    }
    t352 = cg_st->g_jv[t351];
    t353 = l25_trace;
    if (!cint_mul_i64(ctx, cs453, t352, t353, &t354)) goto fault;
    t355 = INT64_C(65536);
    t356 = INT64_C(2);
    if (!cint_div_i64(ctx, cs454, t355, t356, &t357)) goto fault;
    if (!cint_add_i64(ctx, cs455, t354, t357, &t358)) goto fault;
    t359 = INT64_C(65536);
    if (!cint_div_i64(ctx, cs456, t358, t359, &t360)) goto fault;
    if (!cint_add_i64(ctx, cs457, t350, t360, &t361)) goto fault;
    cg_st->g_jv[t348] = t361;
    t362 = l0_p;
    t363 = INT64_C(1);
    t364 = cint_add_wrap_i64(t362, t363);
    l0_p = t364;
    goto L4_h;
L4_e:;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_13_pull_x5Ftwins(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    bool t3 = false;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    bool t7 = false;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    bool t11 = false;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    bool t34 = false;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    int64_t t64 = 0;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    int64_t t69 = 0;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    int64_t t74 = 0;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    int64_t t79 = 0;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    int64_t t83 = 0;
    int64_t t84 = 0;
    int64_t t85 = 0;
    int64_t t86 = 0;
    int64_t t87 = 0;
    int64_t t88 = 0;
    int64_t t89 = 0;
    int64_t t90 = 0;
    int64_t t91 = 0;
    int64_t t92 = 0;
    int64_t t93 = 0;
    int64_t t94 = 0;
    int64_t t95 = 0;
    int64_t t96 = 0;
    int64_t t97 = 0;
    int64_t t98 = 0;
    int64_t t99 = 0;
    int64_t t100 = 0;
    int64_t t101 = 0;
    int64_t t102 = 0;
    int64_t t103 = 0;
    int64_t t104 = 0;
    int64_t t105 = 0;
    int64_t t106 = 0;
    bool t107 = false;
    int64_t t108 = 0;
    int64_t t109 = 0;
    int64_t t110 = 0;
    int64_t t111 = 0;
    int64_t t112 = 0;
    int64_t t113 = 0;
    int64_t t114 = 0;
    int64_t t115 = 0;
    int64_t t116 = 0;
    int64_t t117 = 0;
    int64_t t118 = 0;
    int64_t t119 = 0;
    int64_t t120 = 0;
    int64_t t121 = 0;
    int64_t t122 = 0;
    int64_t t123 = 0;
    int64_t t124 = 0;
    int64_t t125 = 0;
    int64_t t126 = 0;
    int64_t t127 = 0;
    int64_t t128 = 0;
    int64_t t129 = 0;
    int64_t t130 = 0;
    int64_t t131 = 0;
    int64_t t132 = 0;
    int64_t t133 = 0;
    int64_t t134 = 0;
    int64_t t135 = 0;
    int64_t t136 = 0;
    int64_t t137 = 0;
    int64_t t138 = 0;
    int64_t t139 = 0;
    int64_t t140 = 0;
    int64_t t141 = 0;
    int64_t t142 = 0;
    int64_t t143 = 0;
    int64_t l0_k = 0;
    int64_t l1_c = 0;
    int64_t l2_p = 0;
    int64_t l3_t = 0;
    int64_t l4_dx = 0;
    int64_t l5_dy = 0;
    int64_t l6_dz = 0;
    int64_t l7_k4 = 0;
    int64_t l8_k2 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_k;
    (void)l1_c;
    (void)l2_p;
    (void)l3_t;
    (void)l4_dx;
    (void)l5_dy;
    (void)l6_dz;
    (void)l7_k4;
    (void)l8_k2;
    cint_rt_head *fh = cint_rt_head_of(ctx);
    int64_t fu = fh->fuel_used;
    int64_t fcap = fh->fuel_limit >= 0 ? fh->fuel_limit : INT64_MAX;
    static const cint_site cs458 = {0u, 458u}; (void)cs458;
    static const cint_site cs459 = {0u, 459u}; (void)cs459;
    static const cint_site cs460 = {0u, 460u}; (void)cs460;
    static const cint_site cs461 = {0u, 461u}; (void)cs461;
    static const cint_site cs462 = {0u, 462u}; (void)cs462;
    static const cint_site cs463 = {0u, 463u}; (void)cs463;
    static const cint_site cs464 = {0u, 464u}; (void)cs464;
    static const cint_site cs465 = {0u, 465u}; (void)cs465;
    static const cint_site cs466 = {0u, 466u}; (void)cs466;
    static const cint_site cs467 = {0u, 467u}; (void)cs467;
    static const cint_site cs468 = {0u, 468u}; (void)cs468;
    static const cint_site cs469 = {0u, 469u}; (void)cs469;
    static const cint_site cs470 = {0u, 470u}; (void)cs470;
    static const cint_site cs471 = {0u, 471u}; (void)cs471;
    static const cint_site cs472 = {0u, 472u}; (void)cs472;
    static const cint_site cs473 = {0u, 473u}; (void)cs473;
    static const cint_site cs474 = {0u, 474u}; (void)cs474;
    static const cint_site cs475 = {0u, 475u}; (void)cs475;
    static const cint_site cs476 = {0u, 476u}; (void)cs476;
    static const cint_site cs477 = {0u, 477u}; (void)cs477;
    static const cint_site cs478 = {0u, 478u}; (void)cs478;
    static const cint_site cs479 = {0u, 479u}; (void)cs479;
    static const cint_site cs480 = {0u, 480u}; (void)cs480;
    static const cint_site cs481 = {0u, 481u}; (void)cs481;
    static const cint_site cs482 = {0u, 482u}; (void)cs482;
    static const cint_site cs483 = {0u, 483u}; (void)cs483;
    static const cint_site cs484 = {0u, 484u}; (void)cs484;
    static const cint_site cs485 = {0u, 485u}; (void)cs485;
    static const cint_site cs486 = {0u, 486u}; (void)cs486;
    static const cint_site cs487 = {0u, 487u}; (void)cs487;
    static const cint_site cs488 = {0u, 488u}; (void)cs488;
    static const cint_site cs489 = {0u, 489u}; (void)cs489;
    static const cint_site cs490 = {0u, 490u}; (void)cs490;
    static const cint_site cs491 = {0u, 491u}; (void)cs491;
    static const cint_site cs492 = {0u, 492u}; (void)cs492;
    static const cint_site cs493 = {0u, 493u}; (void)cs493;
    static const cint_site cs494 = {0u, 494u}; (void)cs494;
    static const cint_site cs495 = {0u, 495u}; (void)cs495;
    static const cint_site cs496 = {0u, 496u}; (void)cs496;
    static const cint_site cs497 = {0u, 497u}; (void)cs497;
    static const cint_site cs498 = {0u, 498u}; (void)cs498;
    static const cint_site cs499 = {0u, 499u}; (void)cs499;
    static const cint_site cs500 = {0u, 500u}; (void)cs500;
    static const cint_site cs501 = {0u, 501u}; (void)cs501;
    static const cint_site cs502 = {0u, 502u}; (void)cs502;
    static const cint_site cs503 = {0u, 503u}; (void)cs503;
    static const cint_site cs504 = {0u, 504u}; (void)cs504;
    static const cint_site cs505 = {0u, 505u}; (void)cs505;
    static const cint_site cs506 = {0u, 506u}; (void)cs506;
    static const cint_site cs507 = {0u, 507u}; (void)cs507;
    static const cint_site cs508 = {0u, 508u}; (void)cs508;
    static const cint_site cs509 = {0u, 509u}; (void)cs509;
    static const cint_site cs510 = {0u, 510u}; (void)cs510;
    static const cint_site cs511 = {0u, 511u}; (void)cs511;
    static const cint_site cs512 = {0u, 512u}; (void)cs512;
    static const cint_site cs513 = {0u, 513u}; (void)cs513;
    static const cint_site cs514 = {0u, 514u}; (void)cs514;
    static const cint_site cs515 = {0u, 515u}; (void)cs515;
    static const cint_site cs516 = {0u, 516u}; (void)cs516;
    static const cint_site cs517 = {0u, 517u}; (void)cs517;
    static const cint_site cs518 = {0u, 518u}; (void)cs518;
    static const cint_site cs519 = {0u, 519u}; (void)cs519;
    static const cint_site cs520 = {0u, 520u}; (void)cs520;
    t0 = cg_st->g_tether;
    l0_k = t0;
    t1 = l0_k;
    t2 = INT64_C(0);
    t3 = t1 == t2;
    if (!t3) goto L8_f;
    fh->fuel_used = fu;
    return true;
L8_f:;
    t4 = INT64_C(1);
    t5 = INT64_C(3);
    l1_c = t4;
L16_h:;
    t6 = l1_c;
    t7 = t6 < t5;
    if (!t7) goto L16_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs458, 1u); goto fault; }
    fu += 1;
    t8 = INT64_C(0);
    t9 = INT64_C(1024);
    l2_p = t8;
L25_h:;
    t10 = l2_p;
    t11 = t10 < t9;
    if (!t11) goto L25_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs459, 1u); goto fault; }
    fu += 1;
    t12 = l1_c;
    t13 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs460, t12, t13, &t14)) goto fault;
    t15 = l2_p;
    if (!cint_add_i64(ctx, cs461, t14, t15, &t16)) goto fault;
    l3_t = t16;
    t17 = l2_p;
    if (!(t17 >= 0 && t17 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs462, "index.checked.i64", t17, INT64_C(3072));
        goto fault;
    }
    t18 = cg_st->g_px[t17];
    t19 = l3_t;
    if (!(t19 >= 0 && t19 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs463, "index.checked.i64", t19, INT64_C(3072));
        goto fault;
    }
    t20 = cg_st->g_px[t19];
    if (!cint_sub_i64(ctx, cs464, t18, t20, &t21)) goto fault;
    l4_dx = t21;
    t22 = l2_p;
    if (!(t22 >= 0 && t22 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs465, "index.checked.i64", t22, INT64_C(3072));
        goto fault;
    }
    t23 = cg_st->g_py[t22];
    t24 = l3_t;
    if (!(t24 >= 0 && t24 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs466, "index.checked.i64", t24, INT64_C(3072));
        goto fault;
    }
    t25 = cg_st->g_py[t24];
    if (!cint_sub_i64(ctx, cs467, t23, t25, &t26)) goto fault;
    l5_dy = t26;
    t27 = l2_p;
    if (!(t27 >= 0 && t27 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs468, "index.checked.i64", t27, INT64_C(3072));
        goto fault;
    }
    t28 = cg_st->g_pz[t27];
    t29 = l3_t;
    if (!(t29 >= 0 && t29 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs469, "index.checked.i64", t29, INT64_C(3072));
        goto fault;
    }
    t30 = cg_st->g_pz[t29];
    if (!cint_sub_i64(ctx, cs470, t28, t30, &t31)) goto fault;
    l6_dz = t31;
    t32 = l0_k;
    t33 = INT64_C(0);
    t34 = t32 > t33;
    if (!t34) goto L69_f;
    t35 = l0_k;
    t36 = l0_k;
    if (!cint_mul_i64(ctx, cs471, t35, t36, &t37)) goto fault;
    t38 = l0_k;
    if (!cint_mul_i64(ctx, cs472, t37, t38, &t39)) goto fault;
    t40 = l0_k;
    if (!cint_mul_i64(ctx, cs473, t39, t40, &t41)) goto fault;
    l7_k4 = t41;
    t42 = INT64_C(2);
    t43 = l0_k;
    if (!cint_mul_i64(ctx, cs474, t42, t43, &t44)) goto fault;
    t45 = l0_k;
    if (!cint_mul_i64(ctx, cs475, t44, t45, &t46)) goto fault;
    l8_k2 = t46;
    t47 = l3_t;
    if (!(t47 >= 0 && t47 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs476, "index.checked.i64", t47, INT64_C(3072));
        goto fault;
    }
    t48 = l3_t;
    if (!(t48 >= 0 && t48 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs477, "index.checked.i64", t48, INT64_C(3072));
        goto fault;
    }
    t49 = cg_st->g_vx[t48];
    t50 = l4_dx;
    t51 = l7_k4;
    t52 = INT64_C(10000000000);
    if (!cint_builtin_i64(ctx, cs478, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t50, (uint64_t)t51, (uint64_t)t52, &t53)) goto fault;
    if (!cint_add_i64(ctx, cs479, t49, t53, &t54)) goto fault;
    t55 = l2_p;
    if (!(t55 >= 0 && t55 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs480, "index.checked.i64", t55, INT64_C(3072));
        goto fault;
    }
    t56 = cg_st->g_vx[t55];
    t57 = l3_t;
    if (!(t57 >= 0 && t57 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs481, "index.checked.i64", t57, INT64_C(3072));
        goto fault;
    }
    t58 = cg_st->g_vx[t57];
    if (!cint_sub_i64(ctx, cs482, t56, t58, &t59)) goto fault;
    t60 = l8_k2;
    t61 = INT64_C(100000);
    if (!cint_builtin_i64(ctx, cs483, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t59, (uint64_t)t60, (uint64_t)t61, &t62)) goto fault;
    if (!cint_add_i64(ctx, cs484, t54, t62, &t63)) goto fault;
    cg_st->g_vx[t47] = t63;
    t64 = l3_t;
    if (!(t64 >= 0 && t64 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs485, "index.checked.i64", t64, INT64_C(3072));
        goto fault;
    }
    t65 = l3_t;
    if (!(t65 >= 0 && t65 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs486, "index.checked.i64", t65, INT64_C(3072));
        goto fault;
    }
    t66 = cg_st->g_vy[t65];
    t67 = l5_dy;
    t68 = l7_k4;
    t69 = INT64_C(10000000000);
    if (!cint_builtin_i64(ctx, cs487, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t67, (uint64_t)t68, (uint64_t)t69, &t70)) goto fault;
    if (!cint_add_i64(ctx, cs488, t66, t70, &t71)) goto fault;
    t72 = l2_p;
    if (!(t72 >= 0 && t72 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs489, "index.checked.i64", t72, INT64_C(3072));
        goto fault;
    }
    t73 = cg_st->g_vy[t72];
    t74 = l3_t;
    if (!(t74 >= 0 && t74 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs490, "index.checked.i64", t74, INT64_C(3072));
        goto fault;
    }
    t75 = cg_st->g_vy[t74];
    if (!cint_sub_i64(ctx, cs491, t73, t75, &t76)) goto fault;
    t77 = l8_k2;
    t78 = INT64_C(100000);
    if (!cint_builtin_i64(ctx, cs492, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t76, (uint64_t)t77, (uint64_t)t78, &t79)) goto fault;
    if (!cint_add_i64(ctx, cs493, t71, t79, &t80)) goto fault;
    cg_st->g_vy[t64] = t80;
    t81 = l3_t;
    if (!(t81 >= 0 && t81 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs494, "index.checked.i64", t81, INT64_C(3072));
        goto fault;
    }
    t82 = l3_t;
    if (!(t82 >= 0 && t82 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs495, "index.checked.i64", t82, INT64_C(3072));
        goto fault;
    }
    t83 = cg_st->g_vz[t82];
    t84 = l6_dz;
    t85 = l7_k4;
    t86 = INT64_C(10000000000);
    if (!cint_builtin_i64(ctx, cs496, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t84, (uint64_t)t85, (uint64_t)t86, &t87)) goto fault;
    if (!cint_add_i64(ctx, cs497, t83, t87, &t88)) goto fault;
    t89 = l2_p;
    if (!(t89 >= 0 && t89 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs498, "index.checked.i64", t89, INT64_C(3072));
        goto fault;
    }
    t90 = cg_st->g_vz[t89];
    t91 = l3_t;
    if (!(t91 >= 0 && t91 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs499, "index.checked.i64", t91, INT64_C(3072));
        goto fault;
    }
    t92 = cg_st->g_vz[t91];
    if (!cint_sub_i64(ctx, cs500, t90, t92, &t93)) goto fault;
    t94 = l8_k2;
    t95 = INT64_C(100000);
    if (!cint_builtin_i64(ctx, cs501, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t93, (uint64_t)t94, (uint64_t)t95, &t96)) goto fault;
    if (!cint_add_i64(ctx, cs502, t88, t96, &t97)) goto fault;
    cg_st->g_vz[t81] = t97;
    goto L64_e;
L69_f:;
    t98 = l4_dx;
    if (!cint_builtin_i64(ctx, cs503, 1u, CINT_TAG_I64, 0u, 0u, (uint64_t)t98, 0u, 0u, &t99)) goto fault;
    t100 = l5_dy;
    if (!cint_builtin_i64(ctx, cs504, 1u, CINT_TAG_I64, 0u, 0u, (uint64_t)t100, 0u, 0u, &t101)) goto fault;
    t102 = l6_dz;
    if (!cint_builtin_i64(ctx, cs505, 1u, CINT_TAG_I64, 0u, 0u, (uint64_t)t102, 0u, 0u, &t103)) goto fault;
    t104 = cint_max_i64(t101, t103);
    t105 = cint_max_i64(t99, t104);
    t106 = INT64_C(65536);
    t107 = t105 < t106;
    if (!t107) goto L164_f;
    t108 = l3_t;
    if (!(t108 >= 0 && t108 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs506, "index.checked.i64", t108, INT64_C(3072));
        goto fault;
    }
    t109 = l3_t;
    if (!(t109 >= 0 && t109 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs507, "index.checked.i64", t109, INT64_C(3072));
        goto fault;
    }
    t110 = cg_st->g_vx[t109];
    t111 = l4_dx;
    t112 = l0_k;
    t113 = l0_k;
    if (!cint_mul_i64(ctx, cs508, t112, t113, &t114)) goto fault;
    t115 = INT64_C(10000000);
    if (!cint_builtin_i64(ctx, cs509, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t111, (uint64_t)t114, (uint64_t)t115, &t116)) goto fault;
    if (!cint_sub_i64(ctx, cs510, t110, t116, &t117)) goto fault;
    cg_st->g_vx[t108] = t117;
    t118 = l3_t;
    if (!(t118 >= 0 && t118 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs511, "index.checked.i64", t118, INT64_C(3072));
        goto fault;
    }
    t119 = l3_t;
    if (!(t119 >= 0 && t119 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs512, "index.checked.i64", t119, INT64_C(3072));
        goto fault;
    }
    t120 = cg_st->g_vy[t119];
    t121 = l5_dy;
    t122 = l0_k;
    t123 = l0_k;
    if (!cint_mul_i64(ctx, cs513, t122, t123, &t124)) goto fault;
    t125 = INT64_C(10000000);
    if (!cint_builtin_i64(ctx, cs514, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t121, (uint64_t)t124, (uint64_t)t125, &t126)) goto fault;
    if (!cint_sub_i64(ctx, cs515, t120, t126, &t127)) goto fault;
    cg_st->g_vy[t118] = t127;
    t128 = l3_t;
    if (!(t128 >= 0 && t128 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs516, "index.checked.i64", t128, INT64_C(3072));
        goto fault;
    }
    t129 = l3_t;
    if (!(t129 >= 0 && t129 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs517, "index.checked.i64", t129, INT64_C(3072));
        goto fault;
    }
    t130 = cg_st->g_vz[t129];
    t131 = l6_dz;
    t132 = l0_k;
    t133 = l0_k;
    if (!cint_mul_i64(ctx, cs518, t132, t133, &t134)) goto fault;
    t135 = INT64_C(10000000);
    if (!cint_builtin_i64(ctx, cs519, 11u, CINT_TAG_I64, 5u, CINT_TAG_I64, (uint64_t)t131, (uint64_t)t134, (uint64_t)t135, &t136)) goto fault;
    if (!cint_sub_i64(ctx, cs520, t130, t136, &t137)) goto fault;
    cg_st->g_vz[t128] = t137;
    goto L64_e;
L164_f:;
L64_e:;
    t138 = l2_p;
    t139 = INT64_C(1);
    t140 = cint_add_wrap_i64(t138, t139);
    l2_p = t140;
    goto L25_h;
L25_e:;
    t141 = l1_c;
    t142 = INT64_C(1);
    t143 = cint_add_wrap_i64(t141, t142);
    l1_c = t143;
    goto L16_h;
L16_e:;
    fh->fuel_used = fu;
    return true;
fault:
    fh->fuel_used = fu;
    return false;
}

static bool ci_9_avalanche_4_step(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    bool t3 = false;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    bool t12 = false;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    bool t17 = false;
    int64_t t18 = 0;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    int64_t t64 = 0;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    int64_t t69 = 0;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    int64_t t74 = 0;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    int64_t t79 = 0;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    uint64_t t83 = 0;
    uint64_t t84 = 0;
    uint64_t t85 = 0;
    int64_t t86 = 0;
    uint64_t t87 = 0;
    uint64_t t88 = 0;
    int64_t t89 = 0;
    int64_t t90 = 0;
    int64_t t91 = 0;
    int64_t t92 = 0;
    int64_t t93 = 0;
    int64_t t94 = 0;
    int64_t l0_c = 0;
    int64_t l1_c = 0;
    int64_t l2_check = 0;
    int64_t l3_p = 0;
    int64_t l4_s = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_c;
    (void)l1_c;
    (void)l2_check;
    (void)l3_p;
    (void)l4_s;
    static const cint_site cs521 = {0u, 521u}; (void)cs521;
    static const cint_site cs522 = {0u, 522u}; (void)cs522;
    static const cint_site cs523 = {0u, 523u}; (void)cs523;
    static const cint_site cs524 = {0u, 524u}; (void)cs524;
    static const cint_site cs525 = {0u, 525u}; (void)cs525;
    static const cint_site cs526 = {0u, 526u}; (void)cs526;
    static const cint_site cs527 = {0u, 527u}; (void)cs527;
    static const cint_site cs528 = {0u, 528u}; (void)cs528;
    static const cint_site cs529 = {0u, 529u}; (void)cs529;
    static const cint_site cs530 = {0u, 530u}; (void)cs530;
    static const cint_site cs531 = {0u, 531u}; (void)cs531;
    static const cint_site cs532 = {0u, 532u}; (void)cs532;
    static const cint_site cs533 = {0u, 533u}; (void)cs533;
    static const cint_site cs534 = {0u, 534u}; (void)cs534;
    static const cint_site cs535 = {0u, 535u}; (void)cs535;
    static const cint_site cs536 = {0u, 536u}; (void)cs536;
    static const cint_site cs537 = {0u, 537u}; (void)cs537;
    static const cint_site cs538 = {0u, 538u}; (void)cs538;
    static const cint_site cs539 = {0u, 539u}; (void)cs539;
    static const cint_site cs540 = {0u, 540u}; (void)cs540;
    static const cint_site cs541 = {0u, 541u}; (void)cs541;
    static const cint_site cs542 = {0u, 542u}; (void)cs542;
    static const cint_site cs543 = {0u, 543u}; (void)cs543;
    static const cint_site cs544 = {0u, 544u}; (void)cs544;
    static const cint_site cs545 = {0u, 545u}; (void)cs545;
    static const cint_site cs546 = {0u, 546u}; (void)cs546;
    static const cint_site cs547 = {0u, 547u}; (void)cs547;
    static const cint_site cs548 = {0u, 548u}; (void)cs548;
    static const cint_site cs549 = {0u, 549u}; (void)cs549;
    static const cint_site cs550 = {0u, 550u}; (void)cs550;
    static const cint_site cs551 = {0u, 551u}; (void)cs551;
    static const cint_site cs552 = {0u, 552u}; (void)cs552;
    static const cint_site cs553 = {0u, 553u}; (void)cs553;
    static const cint_site cs554 = {0u, 554u}; (void)cs554;
    static const cint_site cs555 = {0u, 555u}; (void)cs555;
    static const cint_site cs556 = {0u, 556u}; (void)cs556;
    static const cint_site cs557 = {0u, 557u}; (void)cs557;
    static const cint_site cs558 = {0u, 558u}; (void)cs558;
    static const cint_site cs559 = {0u, 559u}; (void)cs559;
    static const cint_site cs560 = {0u, 560u}; (void)cs560;
    static const cint_site cs561 = {0u, 561u}; (void)cs561;
    static const cint_site cs562 = {0u, 562u}; (void)cs562;
    t0 = INT64_C(0);
    t1 = INT64_C(3);
    l0_c = t0;
L4_h:;
    t2 = l0_c;
    t3 = t2 < t1;
    if (!t3) goto L4_e;
    if (!cint_fuel_charge(ctx, cs521, 1u)) goto fault;
    t4 = l0_c;
    if (!cint_rt_call_enter(ctx, cs522)) goto fault;
    if (!ci_9_avalanche_7_scatter(ctx, t4)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_rt_call_enter(ctx, cs523)) goto fault;
    if (!ci_9_avalanche_12_move_x5Fgrid(ctx)) goto fault;
    cint_rt_call_leave(ctx);
    t5 = l0_c;
    if (!cint_rt_call_enter(ctx, cs524)) goto fault;
    if (!ci_9_avalanche_6_gather(ctx, t5)) goto fault;
    cint_rt_call_leave(ctx);
    t6 = l0_c;
    t7 = INT64_C(1);
    t8 = cint_add_wrap_i64(t6, t7);
    l0_c = t8;
    goto L4_h;
L4_e:;
    if (!cint_rt_call_enter(ctx, cs525)) goto fault;
    if (!ci_9_avalanche_13_pull_x5Ftwins(ctx)) goto fault;
    cint_rt_call_leave(ctx);
    t9 = INT64_C(0);
    t10 = INT64_C(3);
    l1_c = t9;
L27_h:;
    t11 = l1_c;
    t12 = t11 < t10;
    if (!t12) goto L27_e;
    if (!cint_fuel_charge(ctx, cs526, 1u)) goto fault;
    t13 = INT64_C(0);
    l2_check = t13;
    t14 = INT64_C(0);
    t15 = INT64_C(1024);
    l3_p = t14;
L39_h:;
    t16 = l3_p;
    t17 = t16 < t15;
    if (!t17) goto L39_e;
    if (!cint_fuel_charge(ctx, cs527, 1u)) goto fault;
    t18 = l1_c;
    t19 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs528, t18, t19, &t20)) goto fault;
    t21 = l3_p;
    if (!cint_add_i64(ctx, cs529, t20, t21, &t22)) goto fault;
    l4_s = t22;
    t23 = l4_s;
    if (!(t23 >= 0 && t23 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs530, "index.checked.i64", t23, INT64_C(3072));
        goto fault;
    }
    t24 = l4_s;
    if (!(t24 >= 0 && t24 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs531, "index.checked.i64", t24, INT64_C(3072));
        goto fault;
    }
    t25 = cg_st->g_px[t24];
    t26 = l4_s;
    if (!(t26 >= 0 && t26 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs532, "index.checked.i64", t26, INT64_C(3072));
        goto fault;
    }
    t27 = cg_st->g_vx[t26];
    if (!cint_add_i64(ctx, cs533, t25, t27, &t28)) goto fault;
    t29 = INT64_C(65536);
    t30 = INT64_C(950271);
    if (!cint_builtin_i64(ctx, cs534, 5u, CINT_TAG_I64, 0u, 0u, (uint64_t)t28, (uint64_t)t29, (uint64_t)t30, &t31)) goto fault;
    cg_st->g_px[t23] = t31;
    t32 = l4_s;
    if (!(t32 >= 0 && t32 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs535, "index.checked.i64", t32, INT64_C(3072));
        goto fault;
    }
    t33 = l4_s;
    if (!(t33 >= 0 && t33 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs536, "index.checked.i64", t33, INT64_C(3072));
        goto fault;
    }
    t34 = cg_st->g_py[t33];
    t35 = l4_s;
    if (!(t35 >= 0 && t35 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs537, "index.checked.i64", t35, INT64_C(3072));
        goto fault;
    }
    t36 = cg_st->g_vy[t35];
    if (!cint_add_i64(ctx, cs538, t34, t36, &t37)) goto fault;
    t38 = INT64_C(65536);
    t39 = INT64_C(950271);
    if (!cint_builtin_i64(ctx, cs539, 5u, CINT_TAG_I64, 0u, 0u, (uint64_t)t37, (uint64_t)t38, (uint64_t)t39, &t40)) goto fault;
    cg_st->g_py[t32] = t40;
    t41 = l4_s;
    if (!(t41 >= 0 && t41 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs540, "index.checked.i64", t41, INT64_C(3072));
        goto fault;
    }
    t42 = l4_s;
    if (!(t42 >= 0 && t42 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs541, "index.checked.i64", t42, INT64_C(3072));
        goto fault;
    }
    t43 = cg_st->g_pz[t42];
    t44 = l4_s;
    if (!(t44 >= 0 && t44 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs542, "index.checked.i64", t44, INT64_C(3072));
        goto fault;
    }
    t45 = cg_st->g_vz[t44];
    if (!cint_add_i64(ctx, cs543, t43, t45, &t46)) goto fault;
    t47 = INT64_C(65536);
    t48 = INT64_C(950271);
    if (!cint_builtin_i64(ctx, cs544, 5u, CINT_TAG_I64, 0u, 0u, (uint64_t)t46, (uint64_t)t47, (uint64_t)t48, &t49)) goto fault;
    cg_st->g_pz[t41] = t49;
    t50 = l2_check;
    t51 = l4_s;
    if (!(t51 >= 0 && t51 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs545, "index.checked.i64", t51, INT64_C(3072));
        goto fault;
    }
    t52 = cg_st->g_px[t51];
    t53 = INT64_C(2);
    t54 = l3_p;
    if (!cint_mul_i64(ctx, cs546, t53, t54, &t55)) goto fault;
    t56 = INT64_C(1);
    if (!cint_add_i64(ctx, cs547, t55, t56, &t57)) goto fault;
    if (!cint_mul_i64(ctx, cs548, t52, t57, &t58)) goto fault;
    if (!cint_add_i64(ctx, cs549, t50, t58, &t59)) goto fault;
    t60 = l4_s;
    if (!(t60 >= 0 && t60 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs550, "index.checked.i64", t60, INT64_C(3072));
        goto fault;
    }
    t61 = cg_st->g_py[t60];
    t62 = INT64_C(2);
    t63 = l3_p;
    if (!cint_mul_i64(ctx, cs551, t62, t63, &t64)) goto fault;
    t65 = INT64_C(2049);
    if (!cint_add_i64(ctx, cs552, t64, t65, &t66)) goto fault;
    if (!cint_mul_i64(ctx, cs553, t61, t66, &t67)) goto fault;
    if (!cint_add_i64(ctx, cs554, t59, t67, &t68)) goto fault;
    t69 = l4_s;
    if (!(t69 >= 0 && t69 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs555, "index.checked.i64", t69, INT64_C(3072));
        goto fault;
    }
    t70 = cg_st->g_pz[t69];
    t71 = INT64_C(2);
    t72 = l3_p;
    if (!cint_mul_i64(ctx, cs556, t71, t72, &t73)) goto fault;
    t74 = INT64_C(4097);
    if (!cint_add_i64(ctx, cs557, t73, t74, &t75)) goto fault;
    if (!cint_mul_i64(ctx, cs558, t70, t75, &t76)) goto fault;
    if (!cint_add_i64(ctx, cs559, t68, t76, &t77)) goto fault;
    l2_check = t77;
    t78 = l3_p;
    t79 = INT64_C(1);
    t80 = cint_add_wrap_i64(t78, t79);
    l3_p = t80;
    goto L39_h;
L39_e:;
    t81 = l1_c;
    if (!(t81 >= 0 && t81 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs560, "index.checked.u64", t81, INT64_C(3));
        goto fault;
    }
    t82 = l1_c;
    if (!(t82 >= 0 && t82 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs561, "index.checked.u64", t82, INT64_C(3));
        goto fault;
    }
    t83 = cg_st->g_digest[t82];
    t84 = UINT64_C(1099511628211);
    t85 = cint_mul_wrap_u64(t83, t84);
    t86 = l2_check;
    t87 = cint_as_wrap_u64_from_i64(t86);
    t88 = (uint64_t)(t85 ^ t87);
    cg_st->g_digest[t81] = t88;
    t89 = l1_c;
    t90 = INT64_C(1);
    t91 = cint_add_wrap_i64(t89, t90);
    l1_c = t91;
    goto L27_h;
L27_e:;
    t92 = cg_st->g_steps;
    t93 = INT64_C(1);
    if (!cint_add_i64(ctx, cs562, t92, t93, &t94)) goto fault;
    cg_st->g_steps = t94;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_5_start(cint_ctx *ctx, int64_t v_preset, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    bool t4 = false;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    bool t11 = false;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    bool t15 = false;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    bool t19 = false;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    bool t23 = false;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    int64_t t64 = 0;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    int64_t t69 = 0;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    int64_t t74 = 0;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    int64_t t79 = 0;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    int64_t t83 = 0;
    int64_t t84 = 0;
    int64_t t85 = 0;
    int64_t t86 = 0;
    int64_t t87 = 0;
    int64_t t88 = 0;
    int64_t t89 = 0;
    int64_t t90 = 0;
    int64_t t91 = 0;
    int64_t t92 = 0;
    int64_t t93 = 0;
    int64_t t94 = 0;
    int64_t t95 = 0;
    int64_t t96 = 0;
    int64_t t97 = 0;
    int64_t t98 = 0;
    int64_t t99 = 0;
    int64_t t100 = 0;
    int64_t t101 = 0;
    int64_t t102 = 0;
    int64_t t103 = 0;
    int64_t t104 = 0;
    int64_t t105 = 0;
    int64_t t106 = 0;
    int64_t t107 = 0;
    int64_t t108 = 0;
    int64_t t109 = 0;
    int64_t t110 = 0;
    uint64_t t111 = 0;
    int64_t t112 = 0;
    int64_t t113 = 0;
    int64_t t114 = 0;
    int64_t t115 = 0;
    int64_t t116 = 0;
    int64_t t117 = 0;
    int64_t t118 = 0;
    int64_t t119 = 0;
    int64_t t120 = 0;
    int64_t t121 = 0;
    int64_t t122 = 0;
    int64_t t123 = 0;
    int64_t t124 = 0;
    int64_t t125 = 0;
    int64_t t126 = 0;
    int64_t t127 = 0;
    int64_t t128 = 0;
    int64_t t129 = 0;
    int64_t l0_ox = 0;
    int64_t l1_c = 0;
    int64_t l2_i = 0;
    int64_t l3_j = 0;
    int64_t l4_k = 0;
    int64_t l5_s = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_preset;
    (void)l0_ox;
    (void)l1_c;
    (void)l2_i;
    (void)l3_j;
    (void)l4_k;
    (void)l5_s;
    (void)result;
    cint_rt_head *fh = cint_rt_head_of(ctx);
    int64_t fu = fh->fuel_used;
    int64_t fcap = fh->fuel_limit >= 0 ? fh->fuel_limit : INT64_MAX;
    static const cint_site cs564 = {0u, 564u}; (void)cs564;
    static const cint_site cs565 = {0u, 565u}; (void)cs565;
    static const cint_site cs566 = {0u, 566u}; (void)cs566;
    static const cint_site cs567 = {0u, 567u}; (void)cs567;
    static const cint_site cs568 = {0u, 568u}; (void)cs568;
    static const cint_site cs569 = {0u, 569u}; (void)cs569;
    static const cint_site cs570 = {0u, 570u}; (void)cs570;
    static const cint_site cs571 = {0u, 571u}; (void)cs571;
    static const cint_site cs572 = {0u, 572u}; (void)cs572;
    static const cint_site cs573 = {0u, 573u}; (void)cs573;
    static const cint_site cs574 = {0u, 574u}; (void)cs574;
    static const cint_site cs575 = {0u, 575u}; (void)cs575;
    static const cint_site cs576 = {0u, 576u}; (void)cs576;
    static const cint_site cs577 = {0u, 577u}; (void)cs577;
    static const cint_site cs578 = {0u, 578u}; (void)cs578;
    static const cint_site cs579 = {0u, 579u}; (void)cs579;
    static const cint_site cs580 = {0u, 580u}; (void)cs580;
    static const cint_site cs581 = {0u, 581u}; (void)cs581;
    static const cint_site cs582 = {0u, 582u}; (void)cs582;
    static const cint_site cs583 = {0u, 583u}; (void)cs583;
    static const cint_site cs584 = {0u, 584u}; (void)cs584;
    static const cint_site cs585 = {0u, 585u}; (void)cs585;
    static const cint_site cs586 = {0u, 586u}; (void)cs586;
    static const cint_site cs587 = {0u, 587u}; (void)cs587;
    static const cint_site cs588 = {0u, 588u}; (void)cs588;
    static const cint_site cs589 = {0u, 589u}; (void)cs589;
    static const cint_site cs590 = {0u, 590u}; (void)cs590;
    static const cint_site cs591 = {0u, 591u}; (void)cs591;
    static const cint_site cs592 = {0u, 592u}; (void)cs592;
    static const cint_site cs593 = {0u, 593u}; (void)cs593;
    static const cint_site cs594 = {0u, 594u}; (void)cs594;
    static const cint_site cs595 = {0u, 595u}; (void)cs595;
    static const cint_site cs596 = {0u, 596u}; (void)cs596;
    static const cint_site cs597 = {0u, 597u}; (void)cs597;
    static const cint_site cs598 = {0u, 598u}; (void)cs598;
    static const cint_site cs599 = {0u, 599u}; (void)cs599;
    static const cint_site cs600 = {0u, 600u}; (void)cs600;
    static const cint_site cs601 = {0u, 601u}; (void)cs601;
    static const cint_site cs602 = {0u, 602u}; (void)cs602;
    static const cint_site cs603 = {0u, 603u}; (void)cs603;
    static const cint_site cs604 = {0u, 604u}; (void)cs604;
    static const cint_site cs605 = {0u, 605u}; (void)cs605;
    static const cint_site cs606 = {0u, 606u}; (void)cs606;
    static const cint_site cs607 = {0u, 607u}; (void)cs607;
    static const cint_site cs608 = {0u, 608u}; (void)cs608;
    static const cint_site cs609 = {0u, 609u}; (void)cs609;
    static const cint_site cs610 = {0u, 610u}; (void)cs610;
    static const cint_site cs611 = {0u, 611u}; (void)cs611;
    static const cint_site cs612 = {0u, 612u}; (void)cs612;
    static const cint_site cs613 = {0u, 613u}; (void)cs613;
    static const cint_site cs614 = {0u, 614u}; (void)cs614;
    static const cint_site cs615 = {0u, 615u}; (void)cs615;
    static const cint_site cs616 = {0u, 616u}; (void)cs616;
    t0 = INT64_C(2);
    t1 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs564, t0, t1, &t2)) goto fault;
    l0_ox = t2;
    t3 = INT64_C(1);
    t4 = v_preset == t3;
    if (!t4) goto L10_f;
    t5 = INT64_C(6);
    t6 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs565, t5, t6, &t7)) goto fault;
    l0_ox = t7;
    goto L6_e;
L10_f:;
L6_e:;
    t8 = INT64_C(0);
    t9 = INT64_C(3);
    l1_c = t8;
L21_h:;
    t10 = l1_c;
    t11 = t10 < t9;
    if (!t11) goto L21_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs566, 1u); goto fault; }
    fu += 1;
    t12 = INT64_C(0);
    t13 = INT64_C(8);
    l2_i = t12;
L30_h:;
    t14 = l2_i;
    t15 = t14 < t13;
    if (!t15) goto L30_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs567, 1u); goto fault; }
    fu += 1;
    t16 = INT64_C(0);
    t17 = INT64_C(16);
    l3_j = t16;
L39_h:;
    t18 = l3_j;
    t19 = t18 < t17;
    if (!t19) goto L39_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs568, 1u); goto fault; }
    fu += 1;
    t20 = INT64_C(0);
    t21 = INT64_C(8);
    l4_k = t20;
L48_h:;
    t22 = l4_k;
    t23 = t22 < t21;
    if (!t23) goto L48_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs569, 1u); goto fault; }
    fu += 1;
    t24 = l1_c;
    t25 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs570, t24, t25, &t26)) goto fault;
    t27 = l2_i;
    t28 = INT64_C(16);
    if (!cint_mul_i64(ctx, cs571, t27, t28, &t29)) goto fault;
    t30 = l3_j;
    if (!cint_add_i64(ctx, cs572, t29, t30, &t31)) goto fault;
    t32 = INT64_C(8);
    if (!cint_mul_i64(ctx, cs573, t31, t32, &t33)) goto fault;
    if (!cint_add_i64(ctx, cs574, t26, t33, &t34)) goto fault;
    t35 = l4_k;
    if (!cint_add_i64(ctx, cs575, t34, t35, &t36)) goto fault;
    l5_s = t36;
    t37 = l5_s;
    if (!(t37 >= 0 && t37 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs576, "index.checked.i64", t37, INT64_C(3072));
        goto fault;
    }
    t38 = l0_ox;
    t39 = INT64_C(2);
    t40 = l2_i;
    if (!cint_mul_i64(ctx, cs577, t39, t40, &t41)) goto fault;
    t42 = INT64_C(1);
    if (!cint_add_i64(ctx, cs578, t41, t42, &t43)) goto fault;
    t44 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs579, t43, t44, &t45)) goto fault;
    t46 = INT64_C(4);
    if (!cint_div_i64(ctx, cs580, t45, t46, &t47)) goto fault;
    if (!cint_add_i64(ctx, cs581, t38, t47, &t48)) goto fault;
    cg_st->g_px[t37] = t48;
    t49 = l5_s;
    if (!(t49 >= 0 && t49 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs582, "index.checked.i64", t49, INT64_C(3072));
        goto fault;
    }
    t50 = INT64_C(2);
    t51 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs583, t50, t51, &t52)) goto fault;
    t53 = INT64_C(2);
    t54 = l3_j;
    if (!cint_mul_i64(ctx, cs584, t53, t54, &t55)) goto fault;
    t56 = INT64_C(1);
    if (!cint_add_i64(ctx, cs585, t55, t56, &t57)) goto fault;
    t58 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs586, t57, t58, &t59)) goto fault;
    t60 = INT64_C(4);
    if (!cint_div_i64(ctx, cs587, t59, t60, &t61)) goto fault;
    if (!cint_add_i64(ctx, cs588, t52, t61, &t62)) goto fault;
    cg_st->g_py[t49] = t62;
    t63 = l5_s;
    if (!(t63 >= 0 && t63 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs589, "index.checked.i64", t63, INT64_C(3072));
        goto fault;
    }
    t64 = l0_ox;
    t65 = INT64_C(2);
    t66 = l4_k;
    if (!cint_mul_i64(ctx, cs590, t65, t66, &t67)) goto fault;
    t68 = INT64_C(1);
    if (!cint_add_i64(ctx, cs591, t67, t68, &t69)) goto fault;
    t70 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs592, t69, t70, &t71)) goto fault;
    t72 = INT64_C(4);
    if (!cint_div_i64(ctx, cs593, t71, t72, &t73)) goto fault;
    if (!cint_add_i64(ctx, cs594, t64, t73, &t74)) goto fault;
    cg_st->g_pz[t63] = t74;
    t75 = l5_s;
    if (!(t75 >= 0 && t75 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs595, "index.checked.i64", t75, INT64_C(3072));
        goto fault;
    }
    t76 = INT64_C(0);
    cg_st->g_vx[t75] = t76;
    t77 = l5_s;
    if (!(t77 >= 0 && t77 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs596, "index.checked.i64", t77, INT64_C(3072));
        goto fault;
    }
    t78 = INT64_C(0);
    cg_st->g_vy[t77] = t78;
    t79 = l5_s;
    if (!(t79 >= 0 && t79 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs597, "index.checked.i64", t79, INT64_C(3072));
        goto fault;
    }
    t80 = INT64_C(0);
    cg_st->g_vz[t79] = t80;
    t81 = l5_s;
    if (!(t81 >= 0 && t81 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs598, "index.checked.i64", t81, INT64_C(3072));
        goto fault;
    }
    t82 = INT64_C(65536);
    cg_st->g_jv[t81] = t82;
    t83 = l5_s;
    if (!(t83 >= 0 && t83 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs599, "index.checked.i64", t83, INT64_C(3072));
        goto fault;
    }
    t84 = INT64_C(0);
    cg_st->g_c0[t83] = t84;
    t85 = l5_s;
    if (!(t85 >= 0 && t85 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs600, "index.checked.i64", t85, INT64_C(3072));
        goto fault;
    }
    t86 = INT64_C(0);
    cg_st->g_c1[t85] = t86;
    t87 = l5_s;
    if (!(t87 >= 0 && t87 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs601, "index.checked.i64", t87, INT64_C(3072));
        goto fault;
    }
    t88 = INT64_C(0);
    cg_st->g_c2[t87] = t88;
    t89 = l5_s;
    if (!(t89 >= 0 && t89 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs602, "index.checked.i64", t89, INT64_C(3072));
        goto fault;
    }
    t90 = INT64_C(0);
    cg_st->g_c3[t89] = t90;
    t91 = l5_s;
    if (!(t91 >= 0 && t91 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs603, "index.checked.i64", t91, INT64_C(3072));
        goto fault;
    }
    t92 = INT64_C(0);
    cg_st->g_c4[t91] = t92;
    t93 = l5_s;
    if (!(t93 >= 0 && t93 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs604, "index.checked.i64", t93, INT64_C(3072));
        goto fault;
    }
    t94 = INT64_C(0);
    cg_st->g_c5[t93] = t94;
    t95 = l5_s;
    if (!(t95 >= 0 && t95 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs605, "index.checked.i64", t95, INT64_C(3072));
        goto fault;
    }
    t96 = INT64_C(0);
    cg_st->g_c6[t95] = t96;
    t97 = l5_s;
    if (!(t97 >= 0 && t97 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs606, "index.checked.i64", t97, INT64_C(3072));
        goto fault;
    }
    t98 = INT64_C(0);
    cg_st->g_c7[t97] = t98;
    t99 = l5_s;
    if (!(t99 >= 0 && t99 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs607, "index.checked.i64", t99, INT64_C(3072));
        goto fault;
    }
    t100 = INT64_C(0);
    cg_st->g_c8[t99] = t100;
    t101 = l4_k;
    t102 = INT64_C(1);
    t103 = cint_add_wrap_i64(t101, t102);
    l4_k = t103;
    goto L48_h;
L48_e:;
    t104 = l3_j;
    t105 = INT64_C(1);
    t106 = cint_add_wrap_i64(t104, t105);
    l3_j = t106;
    goto L39_h;
L39_e:;
    t107 = l2_i;
    t108 = INT64_C(1);
    t109 = cint_add_wrap_i64(t107, t108);
    l2_i = t109;
    goto L30_h;
L30_e:;
    t110 = l1_c;
    if (!(t110 >= 0 && t110 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs608, "index.checked.u64", t110, INT64_C(3));
        goto fault;
    }
    t111 = UINT64_C(14695981039346656037);
    cg_st->g_digest[t110] = t111;
    t112 = l1_c;
    t113 = INT64_C(1);
    t114 = cint_add_wrap_i64(t112, t113);
    l1_c = t114;
    goto L21_h;
L21_e:;
    t115 = INT64_C(1024);
    if (!(t115 >= 0 && t115 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs609, "index.checked.i64", t115, INT64_C(3072));
        goto fault;
    }
    t116 = INT64_C(1024);
    if (!(t116 >= 0 && t116 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs610, "index.checked.i64", t116, INT64_C(3072));
        goto fault;
    }
    t117 = cg_st->g_py[t116];
    t118 = INT64_C(1);
    if (!cint_add_i64(ctx, cs611, t117, t118, &t119)) goto fault;
    cg_st->g_py[t115] = t119;
    t120 = INT64_C(2);
    t121 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs612, t120, t121, &t122)) goto fault;
    if (!(t122 >= 0 && t122 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs613, "index.checked.i64", t122, INT64_C(3072));
        goto fault;
    }
    t123 = INT64_C(2);
    t124 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs614, t123, t124, &t125)) goto fault;
    if (!(t125 >= 0 && t125 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs615, "index.checked.i64", t125, INT64_C(3072));
        goto fault;
    }
    t126 = cg_st->g_py[t125];
    t127 = INT64_C(2);
    if (!cint_add_i64(ctx, cs616, t126, t127, &t128)) goto fault;
    cg_st->g_py[t122] = t128;
    t129 = INT64_C(0);
    cg_st->g_steps = t129;
    *result = v_preset;
    fh->fuel_used = fu;
    return true;
fault:
    fh->fuel_used = fu;
    return false;
}

static bool ci_9_avalanche_4_load(cint_ctx *ctx, int64_t v_slot, int64_t v_value, int64_t *result)
{
    int64_t t0 = 0;
    bool t1 = false;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    bool t8 = false;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    bool t12 = false;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    bool t16 = false;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    bool t20 = false;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    bool t24 = false;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    bool t28 = false;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    bool t32 = false;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    bool t36 = false;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    bool t40 = false;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    bool t44 = false;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    bool t48 = false;
    int64_t t49 = 0;
    int64_t t50 = 0;
    int64_t t51 = 0;
    bool t52 = false;
    int64_t t53 = 0;
    int64_t t54 = 0;
    int64_t t55 = 0;
    bool t56 = false;
    int64_t t57 = 0;
    int64_t t58 = 0;
    int64_t t59 = 0;
    bool t60 = false;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    bool t64 = false;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    bool t68 = false;
    int64_t t69 = 0;
    int64_t l0_s = 0;
    int64_t l1_f = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_slot;
    (void)v_value;
    (void)l0_s;
    (void)l1_f;
    (void)result;
    static const cint_site cs618 = {0u, 618u}; (void)cs618;
    static const cint_site cs619 = {0u, 619u}; (void)cs619;
    static const cint_site cs620 = {0u, 620u}; (void)cs620;
    static const cint_site cs621 = {0u, 621u}; (void)cs621;
    static const cint_site cs622 = {0u, 622u}; (void)cs622;
    static const cint_site cs623 = {0u, 623u}; (void)cs623;
    static const cint_site cs624 = {0u, 624u}; (void)cs624;
    static const cint_site cs625 = {0u, 625u}; (void)cs625;
    static const cint_site cs626 = {0u, 626u}; (void)cs626;
    static const cint_site cs627 = {0u, 627u}; (void)cs627;
    static const cint_site cs628 = {0u, 628u}; (void)cs628;
    static const cint_site cs629 = {0u, 629u}; (void)cs629;
    static const cint_site cs630 = {0u, 630u}; (void)cs630;
    static const cint_site cs631 = {0u, 631u}; (void)cs631;
    static const cint_site cs632 = {0u, 632u}; (void)cs632;
    static const cint_site cs633 = {0u, 633u}; (void)cs633;
    static const cint_site cs634 = {0u, 634u}; (void)cs634;
    static const cint_site cs635 = {0u, 635u}; (void)cs635;
    t0 = INT64_C(49152);
    t1 = v_slot == t0;
    if (!t1) goto L5_f;
    cg_st->g_steps = v_value;
    *result = v_value;
    return true;
L5_f:;
    t2 = INT64_C(3072);
    if (!cint_rem_i64(ctx, cs618, v_slot, t2, &t3)) goto fault;
    l0_s = t3;
    t4 = INT64_C(3072);
    if (!cint_div_i64(ctx, cs619, v_slot, t4, &t5)) goto fault;
    l1_f = t5;
    t6 = l1_f;
    t7 = INT64_C(0);
    t8 = t6 == t7;
    if (!t8) goto L23_f;
    t9 = l0_s;
    if (!(t9 >= 0 && t9 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs620, "index.checked.i64", t9, INT64_C(3072));
        goto fault;
    }
    cg_st->g_px[t9] = v_value;
    goto L18_e;
L23_f:;
L18_e:;
    t10 = l1_f;
    t11 = INT64_C(1);
    t12 = t10 == t11;
    if (!t12) goto L34_f;
    t13 = l0_s;
    if (!(t13 >= 0 && t13 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs621, "index.checked.i64", t13, INT64_C(3072));
        goto fault;
    }
    cg_st->g_py[t13] = v_value;
    goto L29_e;
L34_f:;
L29_e:;
    t14 = l1_f;
    t15 = INT64_C(2);
    t16 = t14 == t15;
    if (!t16) goto L45_f;
    t17 = l0_s;
    if (!(t17 >= 0 && t17 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs622, "index.checked.i64", t17, INT64_C(3072));
        goto fault;
    }
    cg_st->g_pz[t17] = v_value;
    goto L40_e;
L45_f:;
L40_e:;
    t18 = l1_f;
    t19 = INT64_C(3);
    t20 = t18 == t19;
    if (!t20) goto L56_f;
    t21 = l0_s;
    if (!(t21 >= 0 && t21 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs623, "index.checked.i64", t21, INT64_C(3072));
        goto fault;
    }
    cg_st->g_vx[t21] = v_value;
    goto L51_e;
L56_f:;
L51_e:;
    t22 = l1_f;
    t23 = INT64_C(4);
    t24 = t22 == t23;
    if (!t24) goto L67_f;
    t25 = l0_s;
    if (!(t25 >= 0 && t25 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs624, "index.checked.i64", t25, INT64_C(3072));
        goto fault;
    }
    cg_st->g_vy[t25] = v_value;
    goto L62_e;
L67_f:;
L62_e:;
    t26 = l1_f;
    t27 = INT64_C(5);
    t28 = t26 == t27;
    if (!t28) goto L78_f;
    t29 = l0_s;
    if (!(t29 >= 0 && t29 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs625, "index.checked.i64", t29, INT64_C(3072));
        goto fault;
    }
    cg_st->g_vz[t29] = v_value;
    goto L73_e;
L78_f:;
L73_e:;
    t30 = l1_f;
    t31 = INT64_C(6);
    t32 = t30 == t31;
    if (!t32) goto L89_f;
    t33 = l0_s;
    if (!(t33 >= 0 && t33 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs626, "index.checked.i64", t33, INT64_C(3072));
        goto fault;
    }
    cg_st->g_jv[t33] = v_value;
    goto L84_e;
L89_f:;
L84_e:;
    t34 = l1_f;
    t35 = INT64_C(7);
    t36 = t34 == t35;
    if (!t36) goto L100_f;
    t37 = l0_s;
    if (!(t37 >= 0 && t37 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs627, "index.checked.i64", t37, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c0[t37] = v_value;
    goto L95_e;
L100_f:;
L95_e:;
    t38 = l1_f;
    t39 = INT64_C(8);
    t40 = t38 == t39;
    if (!t40) goto L111_f;
    t41 = l0_s;
    if (!(t41 >= 0 && t41 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs628, "index.checked.i64", t41, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c1[t41] = v_value;
    goto L106_e;
L111_f:;
L106_e:;
    t42 = l1_f;
    t43 = INT64_C(9);
    t44 = t42 == t43;
    if (!t44) goto L122_f;
    t45 = l0_s;
    if (!(t45 >= 0 && t45 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs629, "index.checked.i64", t45, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c2[t45] = v_value;
    goto L117_e;
L122_f:;
L117_e:;
    t46 = l1_f;
    t47 = INT64_C(10);
    t48 = t46 == t47;
    if (!t48) goto L133_f;
    t49 = l0_s;
    if (!(t49 >= 0 && t49 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs630, "index.checked.i64", t49, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c3[t49] = v_value;
    goto L128_e;
L133_f:;
L128_e:;
    t50 = l1_f;
    t51 = INT64_C(11);
    t52 = t50 == t51;
    if (!t52) goto L144_f;
    t53 = l0_s;
    if (!(t53 >= 0 && t53 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs631, "index.checked.i64", t53, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c4[t53] = v_value;
    goto L139_e;
L144_f:;
L139_e:;
    t54 = l1_f;
    t55 = INT64_C(12);
    t56 = t54 == t55;
    if (!t56) goto L155_f;
    t57 = l0_s;
    if (!(t57 >= 0 && t57 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs632, "index.checked.i64", t57, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c5[t57] = v_value;
    goto L150_e;
L155_f:;
L150_e:;
    t58 = l1_f;
    t59 = INT64_C(13);
    t60 = t58 == t59;
    if (!t60) goto L166_f;
    t61 = l0_s;
    if (!(t61 >= 0 && t61 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs633, "index.checked.i64", t61, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c6[t61] = v_value;
    goto L161_e;
L166_f:;
L161_e:;
    t62 = l1_f;
    t63 = INT64_C(14);
    t64 = t62 == t63;
    if (!t64) goto L177_f;
    t65 = l0_s;
    if (!(t65 >= 0 && t65 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs634, "index.checked.i64", t65, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c7[t65] = v_value;
    goto L172_e;
L177_f:;
L172_e:;
    t66 = l1_f;
    t67 = INT64_C(15);
    t68 = t66 == t67;
    if (!t68) goto L188_f;
    t69 = l0_s;
    if (!(t69 >= 0 && t69 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs635, "index.checked.i64", t69, INT64_C(3072));
        goto fault;
    }
    cg_st->g_c8[t69] = v_value;
    goto L183_e;
L188_f:;
L183_e:;
    *result = v_value;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_4_read(cint_ctx *ctx, int64_t v_slot, int64_t *result)
{
    int64_t t0 = 0;
    bool t1 = false;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    bool t9 = false;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    bool t14 = false;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    bool t19 = false;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    bool t24 = false;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    bool t29 = false;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    bool t34 = false;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    bool t39 = false;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    bool t44 = false;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t t47 = 0;
    int64_t t48 = 0;
    bool t49 = false;
    int64_t t50 = 0;
    int64_t t51 = 0;
    int64_t t52 = 0;
    int64_t t53 = 0;
    bool t54 = false;
    int64_t t55 = 0;
    int64_t t56 = 0;
    int64_t t57 = 0;
    int64_t t58 = 0;
    bool t59 = false;
    int64_t t60 = 0;
    int64_t t61 = 0;
    int64_t t62 = 0;
    int64_t t63 = 0;
    bool t64 = false;
    int64_t t65 = 0;
    int64_t t66 = 0;
    int64_t t67 = 0;
    int64_t t68 = 0;
    bool t69 = false;
    int64_t t70 = 0;
    int64_t t71 = 0;
    int64_t t72 = 0;
    int64_t t73 = 0;
    bool t74 = false;
    int64_t t75 = 0;
    int64_t t76 = 0;
    int64_t t77 = 0;
    int64_t t78 = 0;
    bool t79 = false;
    int64_t t80 = 0;
    int64_t t81 = 0;
    int64_t t82 = 0;
    int64_t t83 = 0;
    int64_t l0_s = 0;
    int64_t l1_f = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_slot;
    (void)l0_s;
    (void)l1_f;
    (void)result;
    static const cint_site cs637 = {0u, 637u}; (void)cs637;
    static const cint_site cs638 = {0u, 638u}; (void)cs638;
    static const cint_site cs639 = {0u, 639u}; (void)cs639;
    static const cint_site cs640 = {0u, 640u}; (void)cs640;
    static const cint_site cs641 = {0u, 641u}; (void)cs641;
    static const cint_site cs642 = {0u, 642u}; (void)cs642;
    static const cint_site cs643 = {0u, 643u}; (void)cs643;
    static const cint_site cs644 = {0u, 644u}; (void)cs644;
    static const cint_site cs645 = {0u, 645u}; (void)cs645;
    static const cint_site cs646 = {0u, 646u}; (void)cs646;
    static const cint_site cs647 = {0u, 647u}; (void)cs647;
    static const cint_site cs648 = {0u, 648u}; (void)cs648;
    static const cint_site cs649 = {0u, 649u}; (void)cs649;
    static const cint_site cs650 = {0u, 650u}; (void)cs650;
    static const cint_site cs651 = {0u, 651u}; (void)cs651;
    static const cint_site cs652 = {0u, 652u}; (void)cs652;
    static const cint_site cs653 = {0u, 653u}; (void)cs653;
    static const cint_site cs654 = {0u, 654u}; (void)cs654;
    t0 = INT64_C(49152);
    t1 = v_slot == t0;
    if (!t1) goto L5_f;
    t2 = cg_st->g_steps;
    *result = t2;
    return true;
L5_f:;
    t3 = INT64_C(3072);
    if (!cint_rem_i64(ctx, cs637, v_slot, t3, &t4)) goto fault;
    l0_s = t4;
    t5 = INT64_C(3072);
    if (!cint_div_i64(ctx, cs638, v_slot, t5, &t6)) goto fault;
    l1_f = t6;
    t7 = l1_f;
    t8 = INT64_C(0);
    t9 = t7 == t8;
    if (!t9) goto L23_f;
    t10 = l0_s;
    if (!(t10 >= 0 && t10 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs639, "index.checked.i64", t10, INT64_C(3072));
        goto fault;
    }
    t11 = cg_st->g_px[t10];
    *result = t11;
    return true;
L23_f:;
    t12 = l1_f;
    t13 = INT64_C(1);
    t14 = t12 == t13;
    if (!t14) goto L35_f;
    t15 = l0_s;
    if (!(t15 >= 0 && t15 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs640, "index.checked.i64", t15, INT64_C(3072));
        goto fault;
    }
    t16 = cg_st->g_py[t15];
    *result = t16;
    return true;
L35_f:;
    t17 = l1_f;
    t18 = INT64_C(2);
    t19 = t17 == t18;
    if (!t19) goto L47_f;
    t20 = l0_s;
    if (!(t20 >= 0 && t20 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs641, "index.checked.i64", t20, INT64_C(3072));
        goto fault;
    }
    t21 = cg_st->g_pz[t20];
    *result = t21;
    return true;
L47_f:;
    t22 = l1_f;
    t23 = INT64_C(3);
    t24 = t22 == t23;
    if (!t24) goto L59_f;
    t25 = l0_s;
    if (!(t25 >= 0 && t25 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs642, "index.checked.i64", t25, INT64_C(3072));
        goto fault;
    }
    t26 = cg_st->g_vx[t25];
    *result = t26;
    return true;
L59_f:;
    t27 = l1_f;
    t28 = INT64_C(4);
    t29 = t27 == t28;
    if (!t29) goto L71_f;
    t30 = l0_s;
    if (!(t30 >= 0 && t30 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs643, "index.checked.i64", t30, INT64_C(3072));
        goto fault;
    }
    t31 = cg_st->g_vy[t30];
    *result = t31;
    return true;
L71_f:;
    t32 = l1_f;
    t33 = INT64_C(5);
    t34 = t32 == t33;
    if (!t34) goto L83_f;
    t35 = l0_s;
    if (!(t35 >= 0 && t35 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs644, "index.checked.i64", t35, INT64_C(3072));
        goto fault;
    }
    t36 = cg_st->g_vz[t35];
    *result = t36;
    return true;
L83_f:;
    t37 = l1_f;
    t38 = INT64_C(6);
    t39 = t37 == t38;
    if (!t39) goto L95_f;
    t40 = l0_s;
    if (!(t40 >= 0 && t40 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs645, "index.checked.i64", t40, INT64_C(3072));
        goto fault;
    }
    t41 = cg_st->g_jv[t40];
    *result = t41;
    return true;
L95_f:;
    t42 = l1_f;
    t43 = INT64_C(7);
    t44 = t42 == t43;
    if (!t44) goto L107_f;
    t45 = l0_s;
    if (!(t45 >= 0 && t45 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs646, "index.checked.i64", t45, INT64_C(3072));
        goto fault;
    }
    t46 = cg_st->g_c0[t45];
    *result = t46;
    return true;
L107_f:;
    t47 = l1_f;
    t48 = INT64_C(8);
    t49 = t47 == t48;
    if (!t49) goto L119_f;
    t50 = l0_s;
    if (!(t50 >= 0 && t50 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs647, "index.checked.i64", t50, INT64_C(3072));
        goto fault;
    }
    t51 = cg_st->g_c1[t50];
    *result = t51;
    return true;
L119_f:;
    t52 = l1_f;
    t53 = INT64_C(9);
    t54 = t52 == t53;
    if (!t54) goto L131_f;
    t55 = l0_s;
    if (!(t55 >= 0 && t55 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs648, "index.checked.i64", t55, INT64_C(3072));
        goto fault;
    }
    t56 = cg_st->g_c2[t55];
    *result = t56;
    return true;
L131_f:;
    t57 = l1_f;
    t58 = INT64_C(10);
    t59 = t57 == t58;
    if (!t59) goto L143_f;
    t60 = l0_s;
    if (!(t60 >= 0 && t60 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs649, "index.checked.i64", t60, INT64_C(3072));
        goto fault;
    }
    t61 = cg_st->g_c3[t60];
    *result = t61;
    return true;
L143_f:;
    t62 = l1_f;
    t63 = INT64_C(11);
    t64 = t62 == t63;
    if (!t64) goto L155_f;
    t65 = l0_s;
    if (!(t65 >= 0 && t65 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs650, "index.checked.i64", t65, INT64_C(3072));
        goto fault;
    }
    t66 = cg_st->g_c4[t65];
    *result = t66;
    return true;
L155_f:;
    t67 = l1_f;
    t68 = INT64_C(12);
    t69 = t67 == t68;
    if (!t69) goto L167_f;
    t70 = l0_s;
    if (!(t70 >= 0 && t70 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs651, "index.checked.i64", t70, INT64_C(3072));
        goto fault;
    }
    t71 = cg_st->g_c5[t70];
    *result = t71;
    return true;
L167_f:;
    t72 = l1_f;
    t73 = INT64_C(13);
    t74 = t72 == t73;
    if (!t74) goto L179_f;
    t75 = l0_s;
    if (!(t75 >= 0 && t75 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs652, "index.checked.i64", t75, INT64_C(3072));
        goto fault;
    }
    t76 = cg_st->g_c6[t75];
    *result = t76;
    return true;
L179_f:;
    t77 = l1_f;
    t78 = INT64_C(14);
    t79 = t77 == t78;
    if (!t79) goto L191_f;
    t80 = l0_s;
    if (!(t80 >= 0 && t80 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs653, "index.checked.i64", t80, INT64_C(3072));
        goto fault;
    }
    t81 = cg_st->g_c7[t80];
    *result = t81;
    return true;
L191_f:;
    t82 = l0_s;
    if (!(t82 >= 0 && t82 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs654, "index.checked.i64", t82, INT64_C(3072));
        goto fault;
    }
    t83 = cg_st->g_c8[t82];
    *result = t83;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_4_spot(cint_ctx *ctx, int64_t v_s, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_s;
    (void)result;
    static const cint_site cs656 = {0u, 656u}; (void)cs656;
    static const cint_site cs657 = {0u, 657u}; (void)cs657;
    static const cint_site cs658 = {0u, 658u}; (void)cs658;
    static const cint_site cs659 = {0u, 659u}; (void)cs659;
    static const cint_site cs660 = {0u, 660u}; (void)cs660;
    static const cint_site cs661 = {0u, 661u}; (void)cs661;
    static const cint_site cs662 = {0u, 662u}; (void)cs662;
    static const cint_site cs663 = {0u, 663u}; (void)cs663;
    static const cint_site cs664 = {0u, 664u}; (void)cs664;
    static const cint_site cs665 = {0u, 665u}; (void)cs665;
    if (!(v_s >= 0 && v_s < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs656, "index.checked.i64", v_s, INT64_C(3072));
        goto fault;
    }
    t0 = cg_st->g_px[v_s];
    t1 = INT64_C(64);
    if (!cint_div_i64(ctx, cs657, t0, t1, &t2)) goto fault;
    t3 = INT64_C(4294967296);
    if (!cint_mul_i64(ctx, cs658, t2, t3, &t4)) goto fault;
    if (!(v_s >= 0 && v_s < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs659, "index.checked.i64", v_s, INT64_C(3072));
        goto fault;
    }
    t5 = cg_st->g_py[v_s];
    t6 = INT64_C(64);
    if (!cint_div_i64(ctx, cs660, t5, t6, &t7)) goto fault;
    t8 = INT64_C(65536);
    if (!cint_mul_i64(ctx, cs661, t7, t8, &t9)) goto fault;
    if (!cint_add_i64(ctx, cs662, t4, t9, &t10)) goto fault;
    if (!(v_s >= 0 && v_s < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs663, "index.checked.i64", v_s, INT64_C(3072));
        goto fault;
    }
    t11 = cg_st->g_pz[v_s];
    t12 = INT64_C(64);
    if (!cint_div_i64(ctx, cs664, t11, t12, &t13)) goto fault;
    if (!cint_add_i64(ctx, cs665, t10, t13, &t14)) goto fault;
    *result = t14;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_4_seed(cint_ctx *ctx, int64_t v_c, uint64_t v_value, uint64_t *result)
{
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_c;
    (void)v_value;
    (void)result;
    static const cint_site cs667 = {0u, 667u}; (void)cs667;
    if (!(v_c >= 0 && v_c < INT64_C(3))) {
        (void)cint_index_check(ctx, cs667, "index.checked.u64", v_c, INT64_C(3));
        goto fault;
    }
    cg_st->g_digest[v_c] = v_value;
    *result = v_value;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_12_digest_x5Fof(cint_ctx *ctx, int64_t v_c, uint64_t *result)
{
    uint64_t t0 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_c;
    (void)result;
    static const cint_site cs669 = {0u, 669u}; (void)cs669;
    if (!(v_c >= 0 && v_c < INT64_C(3))) {
        (void)cint_index_check(ctx, cs669, "index.checked.u64", v_c, INT64_C(3));
        goto fault;
    }
    t0 = cg_st->g_digest[v_c];
    *result = t0;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_4_pull(cint_ctx *ctx, int64_t v_k, int64_t *result)
{
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_k;
    (void)result;
    cg_st->g_tether = v_k;
    *result = v_k;
    return true;
}

static bool ci_9_avalanche_8_scramble(cint_ctx *ctx, int64_t v_o, int64_t *result)
{
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_o;
    (void)result;
    cg_st->g_order = v_o;
    *result = v_o;
    return true;
}

static bool ci_9_avalanche_7_advance(cint_ctx *ctx, int64_t v_n, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    bool t2 = false;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t l0_i = 0;
    (void)ctx;
    (void)v_n;
    (void)l0_i;
    (void)result;
    static const cint_site cs673 = {0u, 673u}; (void)cs673;
    static const cint_site cs674 = {0u, 674u}; (void)cs674;
    t0 = INT64_C(0);
    l0_i = t0;
L4_h:;
    t1 = l0_i;
    t2 = t1 < v_n;
    if (!t2) goto L4_e;
    if (!cint_fuel_charge(ctx, cs673, 1u)) goto fault;
    if (!cint_rt_call_enter(ctx, cs674)) goto fault;
    if (!ci_9_avalanche_4_step(ctx)) goto fault;
    cint_rt_call_leave(ctx);
    t3 = l0_i;
    t4 = INT64_C(1);
    t5 = cint_add_wrap_i64(t3, t4);
    l0_i = t5;
    goto L4_h;
L4_e:;
    *result = v_n;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_6_spread(cint_ctx *ctx, int64_t v_c, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    bool t4 = false;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    int64_t t22 = 0;
    int64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    int64_t t26 = 0;
    int64_t t27 = 0;
    int64_t t28 = 0;
    int64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    int64_t t33 = 0;
    int64_t t34 = 0;
    int64_t t35 = 0;
    int64_t t36 = 0;
    int64_t t37 = 0;
    int64_t t38 = 0;
    int64_t t39 = 0;
    int64_t t40 = 0;
    int64_t t41 = 0;
    int64_t t42 = 0;
    int64_t t43 = 0;
    int64_t t44 = 0;
    int64_t t45 = 0;
    int64_t t46 = 0;
    int64_t l0_most = 0;
    int64_t l1_p = 0;
    int64_t l2_dx = 0;
    int64_t l3_dy = 0;
    int64_t l4_dz = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_c;
    (void)l0_most;
    (void)l1_p;
    (void)l2_dx;
    (void)l3_dy;
    (void)l4_dz;
    (void)result;
    cint_rt_head *fh = cint_rt_head_of(ctx);
    int64_t fu = fh->fuel_used;
    int64_t fcap = fh->fuel_limit >= 0 ? fh->fuel_limit : INT64_MAX;
    static const cint_site cs676 = {0u, 676u}; (void)cs676;
    static const cint_site cs677 = {0u, 677u}; (void)cs677;
    static const cint_site cs678 = {0u, 678u}; (void)cs678;
    static const cint_site cs679 = {0u, 679u}; (void)cs679;
    static const cint_site cs680 = {0u, 680u}; (void)cs680;
    static const cint_site cs681 = {0u, 681u}; (void)cs681;
    static const cint_site cs682 = {0u, 682u}; (void)cs682;
    static const cint_site cs683 = {0u, 683u}; (void)cs683;
    static const cint_site cs684 = {0u, 684u}; (void)cs684;
    static const cint_site cs685 = {0u, 685u}; (void)cs685;
    static const cint_site cs686 = {0u, 686u}; (void)cs686;
    static const cint_site cs687 = {0u, 687u}; (void)cs687;
    static const cint_site cs688 = {0u, 688u}; (void)cs688;
    static const cint_site cs689 = {0u, 689u}; (void)cs689;
    static const cint_site cs690 = {0u, 690u}; (void)cs690;
    static const cint_site cs691 = {0u, 691u}; (void)cs691;
    static const cint_site cs692 = {0u, 692u}; (void)cs692;
    static const cint_site cs693 = {0u, 693u}; (void)cs693;
    static const cint_site cs694 = {0u, 694u}; (void)cs694;
    static const cint_site cs695 = {0u, 695u}; (void)cs695;
    static const cint_site cs696 = {0u, 696u}; (void)cs696;
    static const cint_site cs697 = {0u, 697u}; (void)cs697;
    t0 = INT64_C(0);
    l0_most = t0;
    t1 = INT64_C(0);
    t2 = INT64_C(1024);
    l1_p = t1;
L8_h:;
    t3 = l1_p;
    t4 = t3 < t2;
    if (!t4) goto L8_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs676, 1u); goto fault; }
    fu += 1;
    t5 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs677, v_c, t5, &t6)) goto fault;
    t7 = l1_p;
    if (!cint_add_i64(ctx, cs678, t6, t7, &t8)) goto fault;
    if (!(t8 >= 0 && t8 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs679, "index.checked.i64", t8, INT64_C(3072));
        goto fault;
    }
    t9 = cg_st->g_px[t8];
    t10 = l1_p;
    if (!(t10 >= 0 && t10 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs680, "index.checked.i64", t10, INT64_C(3072));
        goto fault;
    }
    t11 = cg_st->g_px[t10];
    if (!cint_sub_i64(ctx, cs681, t9, t11, &t12)) goto fault;
    l2_dx = t12;
    t13 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs682, v_c, t13, &t14)) goto fault;
    t15 = l1_p;
    if (!cint_add_i64(ctx, cs683, t14, t15, &t16)) goto fault;
    if (!(t16 >= 0 && t16 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs684, "index.checked.i64", t16, INT64_C(3072));
        goto fault;
    }
    t17 = cg_st->g_py[t16];
    t18 = l1_p;
    if (!(t18 >= 0 && t18 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs685, "index.checked.i64", t18, INT64_C(3072));
        goto fault;
    }
    t19 = cg_st->g_py[t18];
    if (!cint_sub_i64(ctx, cs686, t17, t19, &t20)) goto fault;
    l3_dy = t20;
    t21 = INT64_C(1024);
    if (!cint_mul_i64(ctx, cs687, v_c, t21, &t22)) goto fault;
    t23 = l1_p;
    if (!cint_add_i64(ctx, cs688, t22, t23, &t24)) goto fault;
    if (!(t24 >= 0 && t24 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs689, "index.checked.i64", t24, INT64_C(3072));
        goto fault;
    }
    t25 = cg_st->g_pz[t24];
    t26 = l1_p;
    if (!(t26 >= 0 && t26 < INT64_C(3072))) {
        (void)cint_index_check(ctx, cs690, "index.checked.i64", t26, INT64_C(3072));
        goto fault;
    }
    t27 = cg_st->g_pz[t26];
    if (!cint_sub_i64(ctx, cs691, t25, t27, &t28)) goto fault;
    l4_dz = t28;
    t29 = l0_most;
    t30 = l2_dx;
    t31 = l2_dx;
    if (!cint_mul_i64(ctx, cs692, t30, t31, &t32)) goto fault;
    t33 = l3_dy;
    t34 = l3_dy;
    if (!cint_mul_i64(ctx, cs693, t33, t34, &t35)) goto fault;
    if (!cint_add_i64(ctx, cs694, t32, t35, &t36)) goto fault;
    t37 = l4_dz;
    t38 = l4_dz;
    if (!cint_mul_i64(ctx, cs695, t37, t38, &t39)) goto fault;
    if (!cint_add_i64(ctx, cs696, t36, t39, &t40)) goto fault;
    if (!cint_builtin_i64(ctx, cs697, 13u, CINT_TAG_I64, 0u, 0u, (uint64_t)t40, 0u, 0u, &t41)) goto fault;
    t42 = cint_max_i64(t29, t41);
    l0_most = t42;
    t43 = l1_p;
    t44 = INT64_C(1);
    t45 = cint_add_wrap_i64(t43, t44);
    l1_p = t45;
    goto L8_h;
L8_e:;
    t46 = l0_most;
    *result = t46;
    fh->fuel_used = fu;
    return true;
fault:
    fh->fuel_used = fu;
    return false;
}

static bool ci_9_avalanche_14_grid_x5Fdigest(cint_ctx *ctx, uint64_t *result)
{
    uint64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    bool t4 = false;
    uint64_t t5 = 0;
    uint64_t t6 = 0;
    uint64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    uint64_t t10 = 0;
    uint64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    uint64_t t14 = 0;
    int64_t t15 = 0;
    uint64_t t16 = 0;
    uint64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    uint64_t t20 = 0;
    int64_t t21 = 0;
    uint64_t t22 = 0;
    uint64_t t23 = 0;
    int64_t t24 = 0;
    int64_t t25 = 0;
    uint64_t t26 = 0;
    int64_t t27 = 0;
    uint64_t t28 = 0;
    uint64_t t29 = 0;
    int64_t t30 = 0;
    int64_t t31 = 0;
    int64_t t32 = 0;
    uint64_t t33 = 0;
    uint64_t l0_h = 0;
    int64_t l1_n = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_h;
    (void)l1_n;
    (void)result;
    cint_rt_head *fh = cint_rt_head_of(ctx);
    int64_t fu = fh->fuel_used;
    int64_t fcap = fh->fuel_limit >= 0 ? fh->fuel_limit : INT64_MAX;
    static const cint_site cs698 = {0u, 698u}; (void)cs698;
    static const cint_site cs699 = {0u, 699u}; (void)cs699;
    static const cint_site cs700 = {0u, 700u}; (void)cs700;
    static const cint_site cs701 = {0u, 701u}; (void)cs701;
    static const cint_site cs702 = {0u, 702u}; (void)cs702;
    static const cint_site cs703 = {0u, 703u}; (void)cs703;
    static const cint_site cs704 = {0u, 704u}; (void)cs704;
    static const cint_site cs705 = {0u, 705u}; (void)cs705;
    t0 = UINT64_C(14695981039346656037);
    l0_h = t0;
    t1 = INT64_C(0);
    t2 = INT64_C(4096);
    l1_n = t1;
L7_h:;
    t3 = l1_n;
    t4 = t3 < t2;
    if (!t4) goto L7_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs698, 1u); goto fault; }
    fu += 1;
    t5 = l0_h;
    t6 = UINT64_C(1099511628211);
    t7 = cint_mul_wrap_u64(t5, t6);
    t8 = l1_n;
    if (!(t8 >= 0 && t8 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs699, "index.checked.i64", t8, INT64_C(4096));
        goto fault;
    }
    t9 = cg_st->g_gm[t8];
    t10 = cint_as_wrap_u64_from_i64(t9);
    t11 = (uint64_t)(t7 ^ t10);
    t12 = l1_n;
    if (!(t12 >= 0 && t12 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs700, "index.checked.i64", t12, INT64_C(4096));
        goto fault;
    }
    t13 = cg_st->g_gx[t12];
    t14 = cint_as_wrap_u64_from_i64(t13);
    t15 = INT64_C(17);
    if (!cint_shl_wrap_u64(ctx, cs701, t14, cint_count_i64(t15), &t16)) goto fault;
    t17 = (uint64_t)(t11 ^ t16);
    t18 = l1_n;
    if (!(t18 >= 0 && t18 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs702, "index.checked.i64", t18, INT64_C(4096));
        goto fault;
    }
    t19 = cg_st->g_gy[t18];
    t20 = cint_as_wrap_u64_from_i64(t19);
    t21 = INT64_C(31);
    if (!cint_shl_wrap_u64(ctx, cs703, t20, cint_count_i64(t21), &t22)) goto fault;
    t23 = (uint64_t)(t17 ^ t22);
    t24 = l1_n;
    if (!(t24 >= 0 && t24 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs704, "index.checked.i64", t24, INT64_C(4096));
        goto fault;
    }
    t25 = cg_st->g_gz[t24];
    t26 = cint_as_wrap_u64_from_i64(t25);
    t27 = INT64_C(45);
    if (!cint_shl_wrap_u64(ctx, cs705, t26, cint_count_i64(t27), &t28)) goto fault;
    t29 = (uint64_t)(t23 ^ t28);
    l0_h = t29;
    t30 = l1_n;
    t31 = INT64_C(1);
    t32 = cint_add_wrap_i64(t30, t31);
    l1_n = t32;
    goto L7_h;
L7_e:;
    t33 = l0_h;
    *result = t33;
    fh->fuel_used = fu;
    return true;
fault:
    fh->fuel_used = fu;
    return false;
}

static bool ci_9_avalanche_19_grid_x5Fin_x5Forder(cint_ctx *ctx, int64_t v_o, uint64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    uint64_t t2 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)v_o;
    (void)result;
    static const cint_site cs706 = {0u, 706u}; (void)cs706;
    static const cint_site cs707 = {0u, 707u}; (void)cs707;
    cg_st->g_order = v_o;
    t0 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs706)) goto fault;
    if (!ci_9_avalanche_7_scatter(ctx, t0)) goto fault;
    cint_rt_call_leave(ctx);
    t1 = INT64_C(0);
    cg_st->g_order = t1;
    if (!cint_rt_call_enter(ctx, cs707)) goto fault;
    if (!ci_9_avalanche_14_grid_x5Fdigest(ctx, &t2)) goto fault;
    cint_rt_call_leave(ctx);
    *result = t2;
    return true;
fault:
    return false;
}

static bool ci_9_avalanche_12_grid_x5Fmass(cint_ctx *ctx, int64_t *result)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    bool t4 = false;
    int64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t l0_total = 0;
    int64_t l1_n = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_total;
    (void)l1_n;
    (void)result;
    cint_rt_head *fh = cint_rt_head_of(ctx);
    int64_t fu = fh->fuel_used;
    int64_t fcap = fh->fuel_limit >= 0 ? fh->fuel_limit : INT64_MAX;
    static const cint_site cs708 = {0u, 708u}; (void)cs708;
    static const cint_site cs709 = {0u, 709u}; (void)cs709;
    static const cint_site cs710 = {0u, 710u}; (void)cs710;
    static const cint_site cs711 = {0u, 711u}; (void)cs711;
    t0 = INT64_C(0);
    l0_total = t0;
    t1 = INT64_C(0);
    t2 = INT64_C(4096);
    l1_n = t1;
L7_h:;
    t3 = l1_n;
    t4 = t3 < t2;
    if (!t4) goto L7_e;
    if (fh->faulted != 0u || fcap - fu < 1) { fh->fuel_used = fu; (void)cint_fuel_charge(ctx, cs708, 1u); goto fault; }
    fu += 1;
    t5 = l0_total;
    t6 = l1_n;
    if (!(t6 >= 0 && t6 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs709, "index.checked.i64", t6, INT64_C(4096));
        goto fault;
    }
    t7 = cg_st->g_gm[t6];
    if (!cint_add_i64(ctx, cs710, t5, t7, &t8)) goto fault;
    l0_total = t8;
    t9 = l1_n;
    t10 = INT64_C(1);
    t11 = cint_add_wrap_i64(t9, t10);
    l1_n = t11;
    goto L7_h;
L7_e:;
    t12 = l0_total;
    t13 = INT64_C(8589934592);
    if (!cint_div_i64(ctx, cs711, t12, t13, &t14)) goto fault;
    *result = t14;
    fh->fuel_used = fu;
    return true;
fault:
    fh->fuel_used = fu;
    return false;
}

static bool ci_9_avalanche_4_main(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    uint64_t t5 = 0;
    int64_t t6 = 0;
    uint64_t t7 = 0;
    int64_t t8 = 0;
    uint64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    uint64_t t15 = 0;
    int64_t t16 = 0;
    uint64_t t17 = 0;
    int64_t t18 = 0;
    uint64_t t19 = 0;
    int64_t t20 = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    static const cint_site cs713 = {0u, 713u}; (void)cs713;
    static const cint_site cs714 = {0u, 714u}; (void)cs714;
    static const cint_site cs715 = {0u, 715u}; (void)cs715;
    static const cint_site cs716 = {0u, 716u}; (void)cs716;
    static const cint_site cs717 = {0u, 717u}; (void)cs717;
    static const cint_site cs718 = {0u, 718u}; (void)cs718;
    static const cint_site cs719 = {0u, 719u}; (void)cs719;
    static const cint_site cs720 = {0u, 720u}; (void)cs720;
    static const cint_site cs721 = {0u, 721u}; (void)cs721;
    static const cint_site cs722 = {0u, 722u}; (void)cs722;
    static const cint_site cs723 = {0u, 723u}; (void)cs723;
    static const cint_site cs724 = {0u, 724u}; (void)cs724;
    static const cint_site cs725 = {0u, 725u}; (void)cs725;
    static const cint_site cs726 = {0u, 726u}; (void)cs726;
    static const cint_site cs727 = {0u, 727u}; (void)cs727;
    static const cint_site cs728 = {0u, 728u}; (void)cs728;
    static const cint_site cs729 = {0u, 729u}; (void)cs729;
    static const cint_site cs730 = {0u, 730u}; (void)cs730;
    static const cint_site cs731 = {0u, 731u}; (void)cs731;
    static const cint_site cs732 = {0u, 732u}; (void)cs732;
    t0 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs713)) goto fault;
    if (!ci_9_avalanche_5_start(ctx, t0, &t1)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t1;
    t2 = INT64_C(200);
    if (!cint_rt_call_enter(ctx, cs714)) goto fault;
    if (!ci_9_avalanche_7_advance(ctx, t2, &t3)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t3;
    if (!cint_rt_print_begin(ctx, cs715)) goto fault;
    if (!cint_rt_print_bytes(ctx, "after 200 steps, dam break:\n", 28u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t4 = INT64_C(0);
    if (!(t4 >= 0 && t4 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs716, "index.checked.u64", t4, INT64_C(3));
        goto fault;
    }
    t5 = cg_st->g_digest[t4];
    if (!cint_rt_print_begin(ctx, cs717)) goto fault;
    if (!cint_rt_print_bytes(ctx, "leader digest=", 14u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_U64, (uint64_t)t5)) goto fault;
    if (!cint_rt_print_bytes(ctx, "\n", 1u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t6 = INT64_C(1);
    if (!(t6 >= 0 && t6 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs718, "index.checked.u64", t6, INT64_C(3));
        goto fault;
    }
    t7 = cg_st->g_digest[t6];
    if (!cint_rt_print_begin(ctx, cs719)) goto fault;
    if (!cint_rt_print_bytes(ctx, "twin 1 digest=", 14u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_U64, (uint64_t)t7)) goto fault;
    if (!cint_rt_print_bytes(ctx, "\n", 1u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t8 = INT64_C(2);
    if (!(t8 >= 0 && t8 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs720, "index.checked.u64", t8, INT64_C(3));
        goto fault;
    }
    t9 = cg_st->g_digest[t8];
    if (!cint_rt_print_begin(ctx, cs721)) goto fault;
    if (!cint_rt_print_bytes(ctx, "twin 2 digest=", 14u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_U64, (uint64_t)t9)) goto fault;
    if (!cint_rt_print_bytes(ctx, "\n", 1u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t10 = INT64_C(1);
    if (!cint_rt_call_enter(ctx, cs722)) goto fault;
    if (!ci_9_avalanche_6_spread(ctx, t10, &t11)) goto fault;
    cint_rt_call_leave(ctx);
    t12 = INT64_C(2);
    if (!cint_rt_call_enter(ctx, cs723)) goto fault;
    if (!ci_9_avalanche_6_spread(ctx, t12, &t13)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_rt_print_begin(ctx, cs724)) goto fault;
    if (!cint_rt_print_bytes(ctx, "spread twin 1=", 14u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_I64, (uint64_t)t11)) goto fault;
    if (!cint_rt_print_bytes(ctx, " Q, twin 2=", 11u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_I64, (uint64_t)t13)) goto fault;
    if (!cint_rt_print_bytes(ctx, " Q\n", 3u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t14 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs725)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t14, &t15)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_rt_print_begin(ctx, cs726)) goto fault;
    if (!cint_rt_print_bytes(ctx, "grid forward=", 13u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_U64, (uint64_t)t15)) goto fault;
    if (!cint_rt_print_bytes(ctx, "\n", 1u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t16 = INT64_C(1);
    if (!cint_rt_call_enter(ctx, cs727)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t16, &t17)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_rt_print_begin(ctx, cs728)) goto fault;
    if (!cint_rt_print_bytes(ctx, "grid backward=", 14u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_U64, (uint64_t)t17)) goto fault;
    if (!cint_rt_print_bytes(ctx, "\n", 1u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    t18 = INT64_C(2);
    if (!cint_rt_call_enter(ctx, cs729)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t18, &t19)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_rt_print_begin(ctx, cs730)) goto fault;
    if (!cint_rt_print_bytes(ctx, "grid jumping=", 13u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_U64, (uint64_t)t19)) goto fault;
    if (!cint_rt_print_bytes(ctx, "\n", 1u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    if (!cint_rt_call_enter(ctx, cs731)) goto fault;
    if (!ci_9_avalanche_12_grid_x5Fmass(ctx, &t20)) goto fault;
    cint_rt_call_leave(ctx);
    if (!cint_rt_print_begin(ctx, cs732)) goto fault;
    if (!cint_rt_print_bytes(ctx, "grid mass=", 10u)) goto fault;
    if (!cint_rt_print_value(ctx, CINT_TAG_I64, (uint64_t)t20)) goto fault;
    if (!cint_rt_print_bytes(ctx, " particles\n", 11u)) goto fault;
    if (!cint_rt_print_end(ctx)) goto fault;
    return true;
fault:
    return false;
}

static bool cg_9_avalanche_tb0(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    uint64_t t5 = 0;
    int64_t t6 = 0;
    uint64_t t7 = 0;
    uint64_t t8 = 0;
    bool t9 = false;
    int64_t t10 = 0;
    uint64_t t11 = 0;
    uint64_t t12 = 0;
    bool t13 = false;
    bool t14 = false;
    uint64_t l0_a = 0;
    bool l1 = false;
    (void)ctx;
    (void)l0_a;
    (void)l1;
    static const cint_site cs734 = {0u, 734u}; (void)cs734;
    static const cint_site cs735 = {0u, 735u}; (void)cs735;
    static const cint_site cs736 = {0u, 736u}; (void)cs736;
    static const cint_site cs737 = {0u, 737u}; (void)cs737;
    static const cint_site cs738 = {0u, 738u}; (void)cs738;
    static const cint_site cs739 = {0u, 739u}; (void)cs739;
    t0 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs734)) goto fault;
    if (!ci_9_avalanche_5_start(ctx, t0, &t1)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t1;
    t2 = INT64_C(40);
    if (!cint_rt_call_enter(ctx, cs735)) goto fault;
    if (!ci_9_avalanche_7_advance(ctx, t2, &t3)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t3;
    t4 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs736)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t4, &t5)) goto fault;
    cint_rt_call_leave(ctx);
    l0_a = t5;
    t6 = INT64_C(1);
    if (!cint_rt_call_enter(ctx, cs737)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t6, &t7)) goto fault;
    cint_rt_call_leave(ctx);
    t8 = l0_a;
    t9 = t7 == t8;
    l1 = t9;
    if (!t9) goto L23_f;
    t10 = INT64_C(2);
    if (!cint_rt_call_enter(ctx, cs738)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t10, &t11)) goto fault;
    cint_rt_call_leave(ctx);
    t12 = l0_a;
    t13 = t11 == t12;
    l1 = t13;
    goto L21_e;
L23_f:;
L21_e:;
    t14 = l1;
    if (!t14 && !cint_rt_fault_assert(ctx, cs739, 0u, 0u, 0u)) goto fault;
    return true;
fault:
    return false;
}

static bool cg_9_avalanche_tb1(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    uint64_t t5 = 0;
    int64_t t6 = 0;
    int64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    bool t10 = false;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    int64_t t15 = 0;
    int64_t t16 = 0;
    int64_t t17 = 0;
    int64_t t18 = 0;
    int64_t t19 = 0;
    int64_t t20 = 0;
    int64_t t21 = 0;
    bool t22 = false;
    int64_t l0_total = 0;
    int64_t l1_n = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_total;
    (void)l1_n;
    static const cint_site cs741 = {0u, 741u}; (void)cs741;
    static const cint_site cs742 = {0u, 742u}; (void)cs742;
    static const cint_site cs743 = {0u, 743u}; (void)cs743;
    static const cint_site cs744 = {0u, 744u}; (void)cs744;
    static const cint_site cs745 = {0u, 745u}; (void)cs745;
    static const cint_site cs746 = {0u, 746u}; (void)cs746;
    static const cint_site cs747 = {0u, 747u}; (void)cs747;
    static const cint_site cs748 = {0u, 748u}; (void)cs748;
    t0 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs741)) goto fault;
    if (!ci_9_avalanche_5_start(ctx, t0, &t1)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t1;
    t2 = INT64_C(10);
    if (!cint_rt_call_enter(ctx, cs742)) goto fault;
    if (!ci_9_avalanche_7_advance(ctx, t2, &t3)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t3;
    t4 = INT64_C(2);
    if (!cint_rt_call_enter(ctx, cs743)) goto fault;
    if (!ci_9_avalanche_19_grid_x5Fin_x5Forder(ctx, t4, &t5)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t5;
    t6 = INT64_C(0);
    l0_total = t6;
    t7 = INT64_C(0);
    t8 = INT64_C(4096);
    l1_n = t7;
L20_h:;
    t9 = l1_n;
    t10 = t9 < t8;
    if (!t10) goto L20_e;
    if (!cint_fuel_charge(ctx, cs744, 1u)) goto fault;
    t11 = l0_total;
    t12 = l1_n;
    if (!(t12 >= 0 && t12 < INT64_C(4096))) {
        (void)cint_index_check(ctx, cs745, "index.checked.i64", t12, INT64_C(4096));
        goto fault;
    }
    t13 = cg_st->g_gm[t12];
    if (!cint_add_i64(ctx, cs746, t11, t13, &t14)) goto fault;
    l0_total = t14;
    t15 = l1_n;
    t16 = INT64_C(1);
    t17 = cint_add_wrap_i64(t15, t16);
    l1_n = t17;
    goto L20_h;
L20_e:;
    t18 = l0_total;
    t19 = INT64_C(1024);
    t20 = INT64_C(8589934592);
    if (!cint_mul_i64(ctx, cs747, t19, t20, &t21)) goto fault;
    t22 = t18 == t21;
    if (!t22 && !cint_rt_fault_assert(ctx, cs748, CINT_TAG_I64, (uint64_t)t18, (uint64_t)t21)) goto fault;
    return true;
fault:
    return false;
}

static bool cg_9_avalanche_tb2(cint_ctx *ctx)
{
    int64_t t0 = 0;
    int64_t t1 = 0;
    int64_t t2 = 0;
    int64_t t3 = 0;
    int64_t t4 = 0;
    int64_t t5 = 0;
    int64_t t6 = 0;
    uint64_t t7 = 0;
    int64_t t8 = 0;
    int64_t t9 = 0;
    int64_t t10 = 0;
    int64_t t11 = 0;
    int64_t t12 = 0;
    int64_t t13 = 0;
    int64_t t14 = 0;
    uint64_t t15 = 0;
    uint64_t t16 = 0;
    bool t17 = false;
    uint64_t l0_d = 0;
    cg_9_avalanche_state *const cg_st = (cg_9_avalanche_state *)cint_rt_state(ctx, &cg_9_avalanche_state_desc);
    (void)ctx;
    if (cg_st == NULL) {
        return false;
    }
    (void)l0_d;
    static const cint_site cs750 = {0u, 750u}; (void)cs750;
    static const cint_site cs751 = {0u, 751u}; (void)cs751;
    static const cint_site cs752 = {0u, 752u}; (void)cs752;
    static const cint_site cs753 = {0u, 753u}; (void)cs753;
    static const cint_site cs754 = {0u, 754u}; (void)cs754;
    static const cint_site cs755 = {0u, 755u}; (void)cs755;
    static const cint_site cs756 = {0u, 756u}; (void)cs756;
    static const cint_site cs757 = {0u, 757u}; (void)cs757;
    static const cint_site cs758 = {0u, 758u}; (void)cs758;
    t0 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs750)) goto fault;
    if (!ci_9_avalanche_5_start(ctx, t0, &t1)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t1;
    t2 = INT64_C(2);
    if (!cint_rt_call_enter(ctx, cs751)) goto fault;
    if (!ci_9_avalanche_8_scramble(ctx, t2, &t3)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t3;
    t4 = INT64_C(30);
    if (!cint_rt_call_enter(ctx, cs752)) goto fault;
    if (!ci_9_avalanche_7_advance(ctx, t4, &t5)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t5;
    t6 = INT64_C(0);
    if (!(t6 >= 0 && t6 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs753, "index.checked.u64", t6, INT64_C(3));
        goto fault;
    }
    t7 = cg_st->g_digest[t6];
    l0_d = t7;
    t8 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs754)) goto fault;
    if (!ci_9_avalanche_5_start(ctx, t8, &t9)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t9;
    t10 = INT64_C(0);
    if (!cint_rt_call_enter(ctx, cs755)) goto fault;
    if (!ci_9_avalanche_8_scramble(ctx, t10, &t11)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t11;
    t12 = INT64_C(30);
    if (!cint_rt_call_enter(ctx, cs756)) goto fault;
    if (!ci_9_avalanche_7_advance(ctx, t12, &t13)) goto fault;
    cint_rt_call_leave(ctx);
    (void)t13;
    t14 = INT64_C(0);
    if (!(t14 >= 0 && t14 < INT64_C(3))) {
        (void)cint_index_check(ctx, cs757, "index.checked.u64", t14, INT64_C(3));
        goto fault;
    }
    t15 = cg_st->g_digest[t14];
    t16 = l0_d;
    t17 = t15 == t16;
    if (!t17 && !cint_rt_fault_assert(ctx, cs758, CINT_TAG_U64, (uint64_t)t15, (uint64_t)t16)) goto fault;
    return true;
fault:
    return false;
}

static const uint32_t cg_9_avalanche_t0[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o0(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 563u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_5_start(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t1[4] = {CINT_TAG_I64, 2u, CINT_TAG_I64, CINT_TAG_I64};

static cint_status cg_9_avalanche_o1(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 617u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_4_load(ctx, (int64_t)cint_rt_sext(args[0], 64u), (int64_t)cint_rt_sext(args[1], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t2[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o2(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 636u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_4_read(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t3[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o3(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 655u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_4_spot(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t4[4] = {CINT_TAG_U64, 2u, CINT_TAG_I64, CINT_TAG_U64};

static cint_status cg_9_avalanche_o4(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    uint64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 666u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_4_seed(ctx, (int64_t)cint_rt_sext(args[0], 64u), args[1], &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t5[3] = {CINT_TAG_U64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o5(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    uint64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 668u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_12_digest_x5Fof(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t6[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o6(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 670u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_4_pull(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t7[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o7(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 671u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_8_scramble(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t8[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o8(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 672u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_7_advance(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

static const uint32_t cg_9_avalanche_t9[3] = {CINT_TAG_I64, 1u, CINT_TAG_I64};

static cint_status cg_9_avalanche_o9(cint_ctx *ctx, int64_t fuel, int64_t depth, const uint64_t *args, uint64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_begin(ctx, (cint_site){0u, 675u}, fuel, depth);
    if (st != CINT_OK) {
        return st;
    }
    ok = ci_9_avalanche_6_spread(ctx, (int64_t)cint_rt_sext(args[0], 64u), &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = (uint64_t)r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_5_start(cint_ctx *ctx, int64_t fuel, int64_t p_preset, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 563u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 563u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_5_start(ctx, p_preset, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_4_load(cint_ctx *ctx, int64_t fuel, int64_t p_slot, int64_t p_value, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 617u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 617u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_4_load(ctx, p_slot, p_value, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_4_read(cint_ctx *ctx, int64_t fuel, int64_t p_slot, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 636u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 636u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_4_read(ctx, p_slot, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_4_spot(cint_ctx *ctx, int64_t fuel, int64_t p_s, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 655u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 655u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_4_spot(ctx, p_s, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_4_seed(cint_ctx *ctx, int64_t fuel, int64_t p_c, uint64_t p_value, uint64_t *result)
{
    cint_status st;
    bool ok;
    uint64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 666u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 666u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_4_seed(ctx, p_c, p_value, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_12_digest_x5Fof(cint_ctx *ctx, int64_t fuel, int64_t p_c, uint64_t *result)
{
    cint_status st;
    bool ok;
    uint64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 668u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 668u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_12_digest_x5Fof(ctx, p_c, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_4_pull(cint_ctx *ctx, int64_t fuel, int64_t p_k, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 670u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 670u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_4_pull(ctx, p_k, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_8_scramble(cint_ctx *ctx, int64_t fuel, int64_t p_o, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 671u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 671u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_8_scramble(ctx, p_o, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_7_advance(cint_ctx *ctx, int64_t fuel, int64_t p_n, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 672u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 672u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_7_advance(ctx, p_n, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_EXPORT cint_status cx_9_avalanche_6_spread(cint_ctx *ctx, int64_t fuel, int64_t p_c, int64_t *result)
{
    cint_status st;
    bool ok;
    int64_t r = 0;
    st = cint_rt_entry_open(ctx, (cint_site){0u, 675u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    if (result == NULL) {
        (void)cint_rt_refuse(ctx, CINT_REFUSAL_RESULT);
        return cint_rt_entry_end(ctx);
    }
    if (!cint_fuel_charge(ctx, (cint_site){0u, 675u}, 1u)) {
        return cint_rt_entry_end(ctx);
    }
    ok = ci_9_avalanche_6_spread(ctx, p_c, &r);
    st = cint_rt_entry_end(ctx);
    if (ok && st == CINT_OK) {
        *result = r;
    }
    return st;
}

CINT_RT_INTERNAL const cint_observer_entry cg_9_avalanche_obs[10] = {
    {0u, 5u, "start", cg_9_avalanche_t0, cg_9_avalanche_o0},
    {0u, 4u, "load", cg_9_avalanche_t1, cg_9_avalanche_o1},
    {0u, 4u, "read", cg_9_avalanche_t2, cg_9_avalanche_o2},
    {0u, 4u, "spot", cg_9_avalanche_t3, cg_9_avalanche_o3},
    {0u, 4u, "seed", cg_9_avalanche_t4, cg_9_avalanche_o4},
    {0u, 9u, "digest_of", cg_9_avalanche_t5, cg_9_avalanche_o5},
    {0u, 4u, "pull", cg_9_avalanche_t6, cg_9_avalanche_o6},
    {0u, 8u, "scramble", cg_9_avalanche_t7, cg_9_avalanche_o7},
    {0u, 7u, "advance", cg_9_avalanche_t8, cg_9_avalanche_o8},
    {0u, 6u, "spread", cg_9_avalanche_t9, cg_9_avalanche_o9},
};

static const cint_name cg_9_avalanche_xn0[1] = {
    {"preset", 6u, 0u},
};
static const uint8_t cg_9_avalanche_xs0[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn1[2] = {
    {"slot", 4u, 0u},
    {"value", 5u, 0u},
};
static const uint8_t cg_9_avalanche_xs1[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00,
    0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn2[1] = {
    {"slot", 4u, 0u},
};
static const uint8_t cg_9_avalanche_xs2[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn3[1] = {
    {"s", 1u, 0u},
};
static const uint8_t cg_9_avalanche_xs3[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn4[2] = {
    {"c", 1u, 0u},
    {"value", 5u, 0u},
};
static const uint8_t cg_9_avalanche_xs4[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00,
    0x24, 0x24,
};

static const cint_name cg_9_avalanche_xn5[1] = {
    {"c", 1u, 0u},
};
static const uint8_t cg_9_avalanche_xs5[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x24,
};

static const cint_name cg_9_avalanche_xn6[1] = {
    {"k", 1u, 0u},
};
static const uint8_t cg_9_avalanche_xs6[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn7[1] = {
    {"o", 1u, 0u},
};
static const uint8_t cg_9_avalanche_xs7[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn8[1] = {
    {"n", 1u, 0u},
};
static const uint8_t cg_9_avalanche_xs8[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_name cg_9_avalanche_xn9[1] = {
    {"c", 1u, 0u},
};
static const uint8_t cg_9_avalanche_xs9[] = {
    0x1d, 0x00, 0x00, 0x00, 0x63, 0x69, 0x6e, 0x74, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x31, 0x2f,
    0x74, 0x79, 0x70, 0x65, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x76,
    0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x14, 0x14,
};

static const cint_export cg_9_avalanche_exports[10] = {
    {{"start", 5u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn0[0], cg_9_avalanche_xs0, (uint64_t)sizeof(cg_9_avalanche_xs0), (cint_entry_fn)cx_9_avalanche_5_start},
    {{"load", 4u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 2u, NULL, &cg_9_avalanche_xn1[0], cg_9_avalanche_xs1, (uint64_t)sizeof(cg_9_avalanche_xs1), (cint_entry_fn)cx_9_avalanche_4_load},
    {{"read", 4u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn2[0], cg_9_avalanche_xs2, (uint64_t)sizeof(cg_9_avalanche_xs2), (cint_entry_fn)cx_9_avalanche_4_read},
    {{"spot", 4u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn3[0], cg_9_avalanche_xs3, (uint64_t)sizeof(cg_9_avalanche_xs3), (cint_entry_fn)cx_9_avalanche_4_spot},
    {{"seed", 4u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 2u, NULL, &cg_9_avalanche_xn4[0], cg_9_avalanche_xs4, (uint64_t)sizeof(cg_9_avalanche_xs4), (cint_entry_fn)cx_9_avalanche_4_seed},
    {{"digest_of", 9u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn5[0], cg_9_avalanche_xs5, (uint64_t)sizeof(cg_9_avalanche_xs5), (cint_entry_fn)cx_9_avalanche_12_digest_x5Fof},
    {{"pull", 4u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn6[0], cg_9_avalanche_xs6, (uint64_t)sizeof(cg_9_avalanche_xs6), (cint_entry_fn)cx_9_avalanche_4_pull},
    {{"scramble", 8u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn7[0], cg_9_avalanche_xs7, (uint64_t)sizeof(cg_9_avalanche_xs7), (cint_entry_fn)cx_9_avalanche_8_scramble},
    {{"advance", 7u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn8[0], cg_9_avalanche_xs8, (uint64_t)sizeof(cg_9_avalanche_xs8), (cint_entry_fn)cx_9_avalanche_7_advance},
    {{"spread", 6u, 0u}, CINT_EXPORT_FUNCTION, CINT_PURE, 0u, 1u, NULL, &cg_9_avalanche_xn9[0], cg_9_avalanche_xs9, (uint64_t)sizeof(cg_9_avalanche_xs9), (cint_entry_fn)cx_9_avalanche_6_spread},
};

CINT_RT_INTERNAL const cint_module_table cg_9_avalanche_table = {&cm_9_avalanche, 0u, 10u, cg_9_avalanche_exports, NULL};

CINT_RT_INTERNAL cint_status cg_9_avalanche_run(cint_ctx *ctx, int64_t fuel)
{
    cint_status st = cint_rt_entry_begin(ctx, (cint_site){0u, 712u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    (void)ci_9_avalanche_4_main(ctx);
    return cint_rt_entry_end(ctx);
}

CINT_RT_INTERNAL cint_status cg_9_avalanche_test0(cint_ctx *ctx, int64_t fuel)
{
    cint_status st = cint_rt_entry_begin(ctx, (cint_site){0u, 733u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    (void)cg_9_avalanche_tb0(ctx);
    return cint_rt_entry_end(ctx);
}

CINT_RT_INTERNAL cint_status cg_9_avalanche_test1(cint_ctx *ctx, int64_t fuel)
{
    cint_status st = cint_rt_entry_begin(ctx, (cint_site){0u, 740u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    (void)cg_9_avalanche_tb1(ctx);
    return cint_rt_entry_end(ctx);
}

CINT_RT_INTERNAL cint_status cg_9_avalanche_test2(cint_ctx *ctx, int64_t fuel)
{
    cint_status st = cint_rt_entry_begin(ctx, (cint_site){0u, 749u}, fuel, CINT_DEPTH_FROM_CONFIG);
    if (st != CINT_OK) {
        return st;
    }
    (void)cg_9_avalanche_tb2(ctx);
    return cint_rt_entry_end(ctx);
}
