diff --git a/app/src/main/assets/mgc_denoise/chroma_denoise.binarypb b/app/src/main/assets/mgc_denoise/chroma_denoise.binarypb new file mode 100644 index 00000000..83cb87db Binary files /dev/null and b/app/src/main/assets/mgc_denoise/chroma_denoise.binarypb differ diff --git a/app/src/main/assets/mgc_denoise/luma_denoise_default.binarypb b/app/src/main/assets/mgc_denoise/luma_denoise_default.binarypb new file mode 100644 index 00000000..b27f28bf Binary files /dev/null and b/app/src/main/assets/mgc_denoise/luma_denoise_default.binarypb differ diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index 829fd814..18838419 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -1,11 +1,37 @@ cmake_minimum_required(VERSION 3.22.1) project("native-tool") +enable_language(ASM) set(ADOBE_DNG_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dcp/dng_sdk/source) set(ADOBE_XMP_STUB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dcp/XMPStub/include) set(ULTRAHDR_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libultrahdr) option(PHOTON_ENABLE_DNG_JXL "Enable Adobe DNG SDK JPEG XL support" OFF) +set( + MGC_GCASTARTUP_SO + "${CMAKE_CURRENT_SOURCE_DIR}/../../../../MGC/MGC_9.6.080_V24_MGC/lib/arm64-v8a/libgcastartup.so" +) +set( + MGC_GCASTARTUP_SHA256 + "2103c54ebba1627733b79e3646105595ed1ccefa2b1629f63fb7e1785a48d6a0" +) +if(NOT EXISTS "${MGC_GCASTARTUP_SO}") + message(FATAL_ERROR "Pinned MGC libgcastartup.so is required for static denoise extraction") +endif() +file(SHA256 "${MGC_GCASTARTUP_SO}" MGC_GCASTARTUP_ACTUAL_SHA256) +if(NOT MGC_GCASTARTUP_ACTUAL_SHA256 STREQUAL MGC_GCASTARTUP_SHA256) + message(FATAL_ERROR "Pinned MGC libgcastartup.so hash mismatch") +endif() +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/mgc_denoise_static/mgc_full_resolution_denoise_static.S.in" + "${CMAKE_CURRENT_BINARY_DIR}/mgc_full_resolution_denoise_static.S" + @ONLY +) +set_source_files_properties( + "${CMAKE_CURRENT_BINARY_DIR}/mgc_full_resolution_denoise_static.S" + PROPERTIES GENERATED TRUE +) + # 4. 添加头文件路径 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/LibRaw) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libjpeg-turbo/src) @@ -89,6 +115,9 @@ add_library(my-native-lib SHARED yuv_utils.cpp lut_processor.cpp dcp_parser.cpp + mgc_denoise_static/mgc_denoise_static.cpp + mgc_denoise_static/mgc_full_resolution_denoise_jni.cpp + "${CMAKE_CURRENT_BINARY_DIR}/mgc_full_resolution_denoise_static.S" ${LIBRAW_SOURCES} ${ADOBE_DNG_SOURCES} ) diff --git a/app/src/main/cpp/mgc_denoise_static/mgc_denoise_static.cpp b/app/src/main/cpp/mgc_denoise_static/mgc_denoise_static.cpp new file mode 100644 index 00000000..1b73efee --- /dev/null +++ b/app/src/main/cpp/mgc_denoise_static/mgc_denoise_static.cpp @@ -0,0 +1,922 @@ +#include "mgc_denoise_static.h" + +#include +#include +#include + +#include +#include +#include + +namespace photon::mgc_denoise { +namespace { + +constexpr char kTag[] = "MgcDenoiseStatic"; + +struct HalideType { + uint8_t code; + uint8_t bits; + uint16_t lanes; +}; + +struct HalideDimension { + int32_t min; + int32_t extent; + int32_t stride; + uint32_t flags; +}; + +struct HalideBuffer { + uint64_t device; + const void* device_interface; + uint8_t* host; + uint64_t flags; + HalideType type; + int32_t dimensions; + const HalideDimension* dim; + void* padding; +}; + +static_assert(sizeof(HalideBuffer) == 56); +static_assert(sizeof(HalideDimension) == 16); + +using HalideTask = int (*)(void*, int, uint8_t*); +using PecanFn = int (*)( + void*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*); +using StrengthFn = int (*)( + void*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + float, + float); +using RgbRawToYuvFn = int (*)( + void*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + uint16_t, + uint16_t, + HalideBuffer*, + float, + float, + float, + HalideBuffer*); +using ChromaFn = int (*)( + void*, + HalideBuffer*, + HalideBuffer*, + int, + int, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*); +using YuvToRgbFn = int (*)( + void*, + HalideBuffer*, + HalideBuffer*); + +extern "C" int photon_mgc_compute_denoise_strength_maps_u16( + void*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + float, + float); +extern "C" int photon_mgc_rgb_raw_to_yuv_s16( + void*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + uint16_t, + uint16_t, + HalideBuffer*, + float, + float, + float, + HalideBuffer*); +extern "C" int photon_mgc_chroma_denoise_pyramid_complete_s16( + void*, + HalideBuffer*, + HalideBuffer*, + int, + int, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*); +extern "C" int photon_mgc_pecan_luma_denoise_s16( + void*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*, + HalideBuffer*); +extern "C" int photon_mgc_yuv_to_rgb_s16( + void*, + HalideBuffer*, + HalideBuffer*); + +void* HalideMalloc(void*, size_t size) { + void* result = nullptr; + if (posix_memalign(&result, 128, std::max(size, 1)) != 0) { + return nullptr; + } +#if defined(MGC_DENOISE_FORCE_SERIAL) + __android_log_print( + ANDROID_LOG_INFO, + kTag, + "probe HalideMalloc size=%zu result=%p", + size, + result); +#endif + return result; +} + +void HalideFree(void*, void* pointer) { + free(pointer); +} + +uintptr_t HalideTrace( + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t) { + return 0; +} + +struct ParallelJob { + void* user_context; + HalideTask task; + int minimum; + int size; + uint8_t* closure; + std::atomic next{0}; + std::atomic first_error{0}; +}; + +void* RunParallelJob(void* opaque) { + auto* job = static_cast(opaque); + for (;;) { + const int offset = job->next.fetch_add(1, std::memory_order_relaxed); + if (offset >= job->size) break; + const int result = + job->task(job->user_context, job->minimum + offset, job->closure); + if (result != 0) { + int expected = 0; + job->first_error.compare_exchange_strong( + expected, + result, + std::memory_order_relaxed); + } + } + return nullptr; +} + +int HalideDoParFor( + void* user_context, + HalideTask task, + int minimum, + int size, + uint8_t* closure) { + if (size <= 0) return 0; +#if defined(MGC_DENOISE_FORCE_SERIAL) + __android_log_print( + ANDROID_LOG_INFO, + kTag, + "probe HalideDoParFor task=%p min=%d size=%d closure=%p", + reinterpret_cast(task), + minimum, + size, + closure); +#endif + ParallelJob job{user_context, task, minimum, size, closure}; + long online_cpus = sysconf(_SC_NPROCESSORS_ONLN); + online_cpus = std::max(online_cpus, 1); +#if defined(MGC_DENOISE_FORCE_SERIAL) + online_cpus = 1; +#endif + const int worker_count = + std::min(std::min(online_cpus, size), 16); + pthread_t workers[15] = {}; + int created = 0; + for (int index = 1; index < worker_count; ++index) { + if (pthread_create( + &workers[created], + nullptr, + RunParallelJob, + &job) != 0) { + break; + } + ++created; + } + RunParallelJob(&job); + for (int index = 0; index < created; ++index) { + pthread_join(workers[index], nullptr); + } + return job.first_error.load(std::memory_order_relaxed); +} + +template +uintptr_t HalideValidationError( + uintptr_t argument0, + uintptr_t argument1, + uintptr_t argument2, + uintptr_t argument3, + uintptr_t, + uintptr_t, + uintptr_t, + uintptr_t) { + __android_log_print( + ANDROID_LOG_ERROR, + kTag, + "MGC Halide validation target=0x%zx args=[0x%zx,0x%zx,0x%zx,0x%zx]", + static_cast(Target), + static_cast(argument0), + static_cast(argument1), + static_cast(argument2), + static_cast(argument3)); + return Target; +} + +HalideBuffer MakeBuffer( + void* host, + HalideType type, + int dimensions, + const HalideDimension* dimension_data) { + return HalideBuffer{ + 0, + nullptr, + static_cast(host), + 0, + type, + dimensions, + dimension_data, + nullptr, + }; +} + +float DownsamplingEnergy( + const float spectrum[128], + int x_factor, + int y_factor) { + // Exact scalar form of MGC sub_5E9DEE0 (0x5e9dee0). + float total = 0.0f; + for (int outer = 0; outer < 128; ++outer) { + float inner_sum = 0.0f; + for (int inner = 0; inner < 128; ++inner) { + const int wrapped = + (outer * y_factor + inner * x_factor) & 127; + // 0x5e9def4..0x5e9df68 builds: + // cos(wrapped * pi / 64 - (x_factor + y_factor) * pi). + // The second term is a whole-pi phase shift, not part of the + // pi/64 bin coordinate. + const double angle = + static_cast(wrapped) * M_PI / 64.0 - + static_cast(x_factor + y_factor) * M_PI; + const float cosine = static_cast(std::cos(angle)); + const float response = + (1.0f - cosine * cosine) + + (cosine - 1.0f) * (cosine - 1.0f); + inner_sum += spectrum[inner] * response; + } + total += inner_sum * spectrum[outer]; + } + return total * 0.00006103515625f; +} + +bool AdvancePyramidCorrelation( + float spectrum[128], + float* coefficient_scale) { + // MGC's fixed eight-tap filter at 0x6b20e0/0x6b6200. + constexpr float filter[8] = { + -3.0f / 128.0f, + -7.0f / 128.0f, + 17.0f / 128.0f, + 57.0f / 128.0f, + 57.0f / 128.0f, + 17.0f / 128.0f, + -7.0f / 128.0f, + -3.0f / 128.0f, + }; + float filtered[128] = {}; + float energy = 0.0f; + for (int frequency = 0; frequency < 128; ++frequency) { + double real = 0.0; + double imaginary = 0.0; + // mgc_noise_model_next_pyramid (0x5e98c98) reaches + // sub_5e9ca0c through mgc_correlation_convolve. Its root table is + // initialized at 0x5e9cd34 with this half-bin-centered coordinate. + const double omega = + (static_cast(frequency) + 0.5) * + 2.0 * M_PI / 128.0 - + M_PI; + for (int tap = 0; tap < 8; ++tap) { + real += static_cast(filter[tap]) * + std::cos(omega * tap); + imaginary -= static_cast(filter[tap]) * + std::sin(omega * tap); + } + const float response = static_cast( + real * real + imaginary * imaginary); + filtered[frequency] = spectrum[frequency] * response; + energy += filtered[frequency]; + } + energy *= 1.0f / 128.0f; + if (!(energy > 0.0f) || !std::isfinite(energy)) return false; + const float inverse_energy = 1.0f / energy; + for (int index = 0; index < 128; ++index) { + spectrum[index] = filtered[index] * inverse_energy; + } + *coefficient_scale = energy * energy; + return true; +} + +} // namespace + +extern "C" __attribute__((visibility("hidden"))) void* +photon_mgc_halide_malloc(void* user_context, size_t size) { + return HalideMalloc(user_context, size); +} + +extern "C" __attribute__((visibility("hidden"))) void +photon_mgc_halide_free(void* user_context, void* pointer) { + HalideFree(user_context, pointer); +} + +extern "C" __attribute__((visibility("hidden"))) uintptr_t +photon_mgc_halide_trace( + uintptr_t argument0, + uintptr_t argument1, + uintptr_t argument2, + uintptr_t argument3, + uintptr_t argument4, + uintptr_t argument5, + uintptr_t argument6, + uintptr_t argument7, + uintptr_t argument8, + uintptr_t argument9, + uintptr_t argument10, + uintptr_t argument11) { + return HalideTrace( + argument0, + argument1, + argument2, + argument3, + argument4, + argument5, + argument6, + argument7, + argument8, + argument9, + argument10, + argument11); +} + +extern "C" __attribute__((visibility("hidden"))) int +photon_mgc_halide_do_par_for( + void* user_context, + HalideTask task, + int minimum, + int size, + uint8_t* closure) { + return HalideDoParFor(user_context, task, minimum, size, closure); +} + +#define PHOTON_MGC_DEFINE_HALIDE_ERROR(address) \ + extern "C" __attribute__((visibility("hidden"))) uintptr_t \ + photon_mgc_halide_error_##address( \ + uintptr_t argument0, \ + uintptr_t argument1, \ + uintptr_t argument2, \ + uintptr_t argument3, \ + uintptr_t argument4, \ + uintptr_t argument5, \ + uintptr_t argument6, \ + uintptr_t argument7) { \ + return HalideValidationError<0x##address>( \ + argument0, \ + argument1, \ + argument2, \ + argument3, \ + argument4, \ + argument5, \ + argument6, \ + argument7); \ + } + +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef604c) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6140) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef61ac) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6294) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef636c) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef63f8) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef64dc) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6568) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6600) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef668c) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6794) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6a74) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6a94) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6b6c) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6bd8) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6c38) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef6cd0) +PHOTON_MGC_DEFINE_HALIDE_ERROR(5ef7030) + +#undef PHOTON_MGC_DEFINE_HALIDE_ERROR + +bool BuildNoiseBuffers( + float read_noise, + float shot_noise, + float quadratic_noise, + const float correlation[128], + const float strength[5], + const float outlier_distance[5], + const float revert_factor[5], + DenoiseNoiseBuffers* output) { + if (correlation == nullptr || strength == nullptr || + outlier_distance == nullptr || revert_factor == nullptr || + output == nullptr || !std::isfinite(read_noise) || + !std::isfinite(shot_noise) || !std::isfinite(quadratic_noise)) { + return false; + } + + float current_correlation[128] = {}; + for (int index = 0; index < 128; ++index) { + const float value = correlation[index]; + if (!std::isfinite(value)) return false; + current_correlation[index] = value; + } + float current_read = std::max(read_noise, 0.0f); + float current_shot = std::max(shot_noise, 0.0f); + float current_quadratic = std::max(quadratic_noise, 0.0f); + + for (int level = 0; level < 4; ++level) { + const float strength_downsampled = + std::max(strength[level + 1], 0.0f); + const float strength_native = std::max(strength[level], 0.0f); + const float downsampled_scale = + strength_downsampled * strength_downsampled * 0.5f * + DownsamplingEnergy(current_correlation, 2, 0); + const float native_scale = + strength_native * strength_native * + DownsamplingEnergy(current_correlation, 1, 0); + + output->read[level] = current_read * downsampled_scale; + output->read[4 + level] = current_read * native_scale; + output->shot[level] = current_shot * downsampled_scale; + output->shot[4 + level] = current_shot * native_scale; + output->quadratic[level] = + current_quadratic * downsampled_scale; + output->quadratic[4 + level] = + current_quadratic * native_scale; + float coefficient_scale = 0.0f; + if (!AdvancePyramidCorrelation( + current_correlation, + &coefficient_scale)) { + return false; + } + current_read *= coefficient_scale; + current_shot *= coefficient_scale; + current_quadratic *= coefficient_scale; + } + std::copy_n( + outlier_distance, + 5, + output->outlier_distance); + std::copy_n(revert_factor, 5, output->revert_factor); + return true; +} + +bool BuildChromaNoiseBuffers( + const float read_noise[3], + const float shot_noise[3], + const float quadratic_noise[3], + const float correlation[128], + const float strength[5], + const float outlier_threshold[5], + ChromaDenoiseNoiseBuffers* output) { + if (read_noise == nullptr || shot_noise == nullptr || + quadratic_noise == nullptr || correlation == nullptr || + strength == nullptr || outlier_threshold == nullptr || + output == nullptr) { + return false; + } + float current_correlation[128] = {}; + for (int index = 0; index < 128; ++index) { + if (!std::isfinite(correlation[index])) return false; + current_correlation[index] = correlation[index]; + } + float current_read[3] = {}; + float current_shot[3] = {}; + float current_quadratic[3] = {}; + for (int channel = 0; channel < 3; ++channel) { + if (!std::isfinite(read_noise[channel]) || + !std::isfinite(shot_noise[channel]) || + !std::isfinite(quadratic_noise[channel])) { + return false; + } + current_read[channel] = std::max(read_noise[channel], 0.0f); + current_shot[channel] = std::max(shot_noise[channel], 0.0f); + current_quadratic[channel] = + std::max(quadratic_noise[channel], 0.0f); + } + + for (int level = 0; level < 4; ++level) { + for (int branch = 0; branch < 2; ++branch) { + const int downsample_factor = branch == 0 ? 2 : 1; + const int tuning_level = + level + (downsample_factor == 2 ? 1 : 0); + const float tuning_strength = + std::max(strength[tuning_level], 0.0f); + const float scale = + tuning_strength * tuning_strength / + static_cast(downsample_factor) * + DownsamplingEnergy( + current_correlation, + downsample_factor, + 0); + for (int channel = 0; channel < 3; ++channel) { + const int index = + level + channel * 4 + branch * 12; + output->read[index] = current_read[channel] * scale; + output->shot[index] = current_shot[channel] * scale; + output->quadratic[index] = + current_quadratic[channel] * scale; + } + output->outlier_threshold[level + branch * 4] = + static_cast( + static_cast(outlier_threshold[tuning_level])); + } + float coefficient_scale = 0.0f; + if (!AdvancePyramidCorrelation( + current_correlation, + &coefficient_scale)) { + return false; + } + for (int channel = 0; channel < 3; ++channel) { + current_read[channel] *= coefficient_scale; + current_shot[channel] *= coefficient_scale; + current_quadratic[channel] *= coefficient_scale; + } + } + return true; +} + +int ComputeStrengthMap( + const uint16_t* input, + int width, + int height, + const float* gain_map, + int gain_width, + int gain_height, + float sample_rate_x, + float sample_rate_y, + uint16_t* output) { + if (input == nullptr || gain_map == nullptr || + output == nullptr || width <= 0 || height <= 0 || + gain_width <= 0 || gain_height <= 0) { + return -1; + } + const HalideDimension input_dimensions[] = { + {0, width, 1, 0}, + {0, height, width, 0}, + }; + const HalideDimension gain_dimensions[] = { + {0, gain_width, 4, 0}, + {0, gain_height, gain_width * 4, 0}, + {0, 4, 1, 0}, + }; + const HalideDimension output_dimensions[] = { + {0, width, 1, 0}, + {0, height, width, 0}, + {0, 3, width * height, 0}, + }; + HalideBuffer input_buffer = MakeBuffer( + const_cast(input), + {1, 16, 1}, + 2, + input_dimensions); + HalideBuffer gain_buffer = MakeBuffer( + const_cast(gain_map), + {2, 32, 1}, + 3, + gain_dimensions); + HalideBuffer output_buffer = MakeBuffer( + output, + {1, 16, 1}, + 3, + output_dimensions); + const auto function = reinterpret_cast( + &photon_mgc_compute_denoise_strength_maps_u16); + return function( + nullptr, + &input_buffer, + &gain_buffer, + &output_buffer, + sample_rate_x, + sample_rate_y); +} + +int RunRgbRawToYuv( + const uint16_t* input, + int width, + int height, + int16_t* output) { + if (input == nullptr || output == nullptr || + width <= 0 || height <= 0) { + return -1; + } + const int pixel_count = width * height; + const HalideDimension image_dimensions[] = { + {0, width, 1, 0}, + {0, height, width, 0}, + {0, 3, pixel_count, 0}, + }; + const HalideDimension vector_dimensions[] = { + {0, 3, 1, 0}, + }; + const HalideDimension gain_map_dimensions[] = { + {0, 2, 4, 0}, + {0, 2, 8, 0}, + {0, 4, 1, 0}, + }; + float black_levels[3] = {}; + float channel_gains[3] = {1.0f, 1.0f, 1.0f}; + float neutral_gain_map[16]; + std::fill_n(neutral_gain_map, 16, 1.0f); + HalideBuffer input_buffer = MakeBuffer( + const_cast(input), + {1, 16, 1}, + 3, + image_dimensions); + HalideBuffer black_buffer = MakeBuffer( + black_levels, + {2, 32, 1}, + 1, + vector_dimensions); + HalideBuffer gain_buffer = MakeBuffer( + channel_gains, + {2, 32, 1}, + 1, + vector_dimensions); + HalideBuffer gain_map_buffer = MakeBuffer( + neutral_gain_map, + {2, 32, 1}, + 3, + gain_map_dimensions); + HalideBuffer output_buffer = MakeBuffer( + output, + {0, 16, 1}, + 3, + image_dimensions); + const auto function = reinterpret_cast( + &photon_mgc_rgb_raw_to_yuv_s16); + constexpr uint16_t kDenoiseWhiteLevel = 16383; + return function( + nullptr, + &input_buffer, + &black_buffer, + &gain_buffer, + kDenoiseWhiteLevel, + kDenoiseWhiteLevel, + &gain_map_buffer, + 1.0f, + 1.0f, + 1.0f, + &output_buffer); +} + +int RunChromaDenoise( + const int16_t* input, + int width, + int height, + const uint16_t* strength_map, + int strength_width, + int strength_height, + const ChromaDenoiseNoiseBuffers& noise, + int16_t* output) { + if (input == nullptr || + strength_map == nullptr || output == nullptr || + width <= 0 || height <= 0 || + strength_width != width / 4 || + strength_height != height / 4) { + return -1; + } + const int pixel_count = width * height; + const int strength_count = strength_width * strength_height; + const HalideDimension image_dimensions[] = { + {0, width, 1, 0}, + {0, height, width, 0}, + {0, 3, pixel_count, 0}, + }; + const HalideDimension strength_dimensions[] = { + {0, strength_width, 1, 0}, + {0, strength_height, strength_width, 0}, + {0, 3, strength_count, 0}, + }; + // MGC slices channel zero from its original [4,3,2] quadratic and + // shot buffers, retaining the original branch stride of 12. + const HalideDimension scalar_noise_dimensions[] = { + {0, 4, 1, 0}, + {0, 2, 12, 0}, + }; + const HalideDimension read_noise_dimensions[] = { + {0, 4, 1, 0}, + {0, 3, 4, 0}, + {0, 2, 12, 0}, + }; + const HalideDimension outlier_dimensions[] = { + {0, 4, 1, 0}, + {0, 2, 4, 0}, + }; + HalideBuffer input_buffer = MakeBuffer( + const_cast(input), + {0, 16, 1}, + 3, + image_dimensions); + HalideBuffer strength_buffer = MakeBuffer( + const_cast(strength_map), + {1, 16, 1}, + 3, + strength_dimensions); + HalideBuffer quadratic_buffer = MakeBuffer( + const_cast(noise.quadratic), + {2, 32, 1}, + 2, + scalar_noise_dimensions); + HalideBuffer shot_buffer = MakeBuffer( + const_cast(noise.shot), + {2, 32, 1}, + 2, + scalar_noise_dimensions); + HalideBuffer read_buffer = MakeBuffer( + const_cast(noise.read), + {2, 32, 1}, + 3, + read_noise_dimensions); + HalideBuffer outlier_buffer = MakeBuffer( + const_cast(noise.outlier_threshold), + {1, 8, 1}, + 2, + outlier_dimensions); + HalideBuffer output_buffer = MakeBuffer( + output, + {0, 16, 1}, + 3, + image_dimensions); + const auto function = reinterpret_cast( + &photon_mgc_chroma_denoise_pyramid_complete_s16); + // The full-resolution S16 call site at 0x468512c passes 2 and 0. + return function( + nullptr, + &input_buffer, + &strength_buffer, + 2, + 0, + &quadratic_buffer, + &shot_buffer, + &read_buffer, + &outlier_buffer, + &output_buffer); +} + +int RunPecan( + const uint16_t* strength_map, + int strength_width, + int strength_height, + const DenoiseNoiseBuffers& noise, + const int16_t* input, + int width, + int height, + int16_t* output) { + if (strength_map == nullptr || input == nullptr || + output == nullptr || width <= 0 || height <= 0 || + strength_width != width / 4 || + strength_height != height / 4) { + return -1; + } + const HalideDimension strength_dimensions[] = { + {0, strength_width, 1, 0}, + {0, strength_height, strength_width, 0}, + {0, 3, strength_width * strength_height, 0}, + }; + const HalideDimension noise_dimensions[] = { + {0, 4, 1, 0}, + {0, 2, 4, 0}, + }; + const HalideDimension tuning_dimensions[] = { + {0, 5, 1, 0}, + }; + const HalideDimension image_dimensions[] = { + {0, width, 1, 0}, + {0, height, width, 0}, + }; + HalideBuffer strength_buffer = MakeBuffer( + const_cast(strength_map), + {1, 16, 1}, + 3, + strength_dimensions); + HalideBuffer read_buffer = MakeBuffer( + const_cast(noise.read), + {2, 32, 1}, + 2, + noise_dimensions); + HalideBuffer shot_buffer = MakeBuffer( + const_cast(noise.shot), + {2, 32, 1}, + 2, + noise_dimensions); + HalideBuffer quadratic_buffer = MakeBuffer( + const_cast(noise.quadratic), + {2, 32, 1}, + 2, + noise_dimensions); + HalideBuffer outlier_buffer = MakeBuffer( + const_cast(noise.outlier_distance), + {2, 32, 1}, + 1, + tuning_dimensions); + HalideBuffer revert_buffer = MakeBuffer( + const_cast(noise.revert_factor), + {2, 32, 1}, + 1, + tuning_dimensions); + HalideBuffer input_buffer = MakeBuffer( + const_cast(input), + {0, 16, 1}, + 2, + image_dimensions); + HalideBuffer output_buffer = MakeBuffer( + output, + {0, 16, 1}, + 2, + image_dimensions); + const auto function = reinterpret_cast( + &photon_mgc_pecan_luma_denoise_s16); + return function( + nullptr, + &strength_buffer, + &read_buffer, + &shot_buffer, + &quadratic_buffer, + &outlier_buffer, + &revert_buffer, + &input_buffer, + &output_buffer); +} + +int RunYuvToRgb( + const int16_t* input, + int width, + int height, + int16_t* output) { + if (input == nullptr || output == nullptr || + width <= 0 || height <= 0) { + return -1; + } + const int pixel_count = width * height; + const HalideDimension image_dimensions[] = { + {0, width, 1, 0}, + {0, height, width, 0}, + {0, 3, pixel_count, 0}, + }; + HalideBuffer input_buffer = MakeBuffer( + const_cast(input), + {0, 16, 1}, + 3, + image_dimensions); + HalideBuffer output_buffer = MakeBuffer( + output, + {0, 16, 1}, + 3, + image_dimensions); + const auto function = reinterpret_cast( + &photon_mgc_yuv_to_rgb_s16); + return function(nullptr, &input_buffer, &output_buffer); +} + +} // namespace photon::mgc_denoise diff --git a/app/src/main/cpp/mgc_denoise_static/mgc_denoise_static.h b/app/src/main/cpp/mgc_denoise_static/mgc_denoise_static.h new file mode 100644 index 00000000..705dbfd3 --- /dev/null +++ b/app/src/main/cpp/mgc_denoise_static/mgc_denoise_static.h @@ -0,0 +1,111 @@ +#pragma once + +#include + +namespace photon::mgc_denoise { + +struct DenoiseNoiseBuffers { + float read[8] = {}; + float shot[8] = {}; + float quadratic[8] = {}; + float outlier_distance[5] = {}; + float revert_factor[5] = {}; +}; + +struct ChromaDenoiseNoiseBuffers { + // The MGC wrapper first creates [level=4, channel=3, branch=2] tables. + // CompleteS16 then slices channel zero from quadratic/shot while retaining + // all three channels for read variance. Keeping the original 24-value + // backing layout preserves the exact sliced strides (1, 12). + float quadratic[24] = {}; + float shot[24] = {}; + float read[24] = {}; + uint8_t outlier_threshold[8] = {}; +}; + +/** + * Reproduces CreateLumaDenoiseNoiseBuffers for one luma noise channel. + * correlation is MGC's 128-bin normalized power correlation spectrum. A + * single uncorrelated frame is represented by 128 ones. + */ +bool BuildNoiseBuffers( + float read_noise, + float shot_noise, + float quadratic_noise, + const float correlation[128], + const float strength[5], + const float outlier_distance[5], + const float revert_factor[5], + DenoiseNoiseBuffers* output); + +/** + * Reproduces CreateChromaDenoiseNoiseModelBuffers. Input coefficients are + * already transformed into MGC's Y/Cb/Cr domain. + */ +bool BuildChromaNoiseBuffers( + const float read_noise[3], + const float shot_noise[3], + const float quadratic_noise[3], + const float correlation[128], + const float strength[5], + const float outlier_threshold[5], + ChromaDenoiseNoiseBuffers* output); + +/** + * Runs the original ComputeDenoiseStrengthMapsU16Halide kernel. + * + * gain_map is [height][width][4] interleaved Camera2 R/Ge/Go/B gain data. + * output is three planar U16 channels: strength, strength*lumaGain and + * strength*lumaGain^2. + */ +int ComputeStrengthMap( + const uint16_t* input, + int width, + int height, + const float* gain_map, + int gain_width, + int gain_height, + float sample_rate_x, + float sample_rate_y, + uint16_t* output); + +/** Runs the statically linked RgbRawToYuv1xS16 with neutral corrections. */ +int RunRgbRawToYuv( + const uint16_t* input, + int width, + int height, + int16_t* output); + +/** Runs the complete four-level S16 chroma pyramid used by MGC. */ +int RunChromaDenoise( + const int16_t* input, + int width, + int height, + const uint16_t* strength_map, + int strength_width, + int strength_height, + const ChromaDenoiseNoiseBuffers& noise, + int16_t* output); + +/** + * Runs the exact statically linked PecanLumaDenoise S16 kernel recovered from + * RunFullResolutionDenoise. + */ +int RunPecan( + const uint16_t* strength_map, + int strength_width, + int strength_height, + const DenoiseNoiseBuffers& noise, + const int16_t* input, + int width, + int height, + int16_t* output); + +/** Runs the statically linked YuvToRgbS16 kernel on planar S16 data. */ +int RunYuvToRgb( + const int16_t* input, + int width, + int height, + int16_t* output); + +} // namespace photon::mgc_denoise diff --git a/app/src/main/cpp/mgc_denoise_static/mgc_full_resolution_denoise_jni.cpp b/app/src/main/cpp/mgc_denoise_static/mgc_full_resolution_denoise_jni.cpp new file mode 100644 index 00000000..79057bbc --- /dev/null +++ b/app/src/main/cpp/mgc_denoise_static/mgc_full_resolution_denoise_jni.cpp @@ -0,0 +1,604 @@ +#include "mgc_denoise_static.h" + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace { + +constexpr int kWhiteLevel = 16383; +constexpr char kLogTag[] = "PLog_MgcFullResolutionDenoise"; + +int LogStageFailure(const char* stage, int result) { + __android_log_print( + ANDROID_LOG_ERROR, + kLogTag, + "MGC full-resolution denoise stage=%s failed result=%d", + stage, + result); + return result; +} + +int RoundUp(int value, int multiple) { + return ((value + multiple - 1) / multiple) * multiple; +} + +float HalfToFloat(uint16_t bits) { + _Float16 half = {}; + static_assert(sizeof(half) == sizeof(bits)); + std::memcpy(&half, &bits, sizeof(bits)); + return static_cast(half); +} + +uint16_t FloatToHalf(float value) { + const _Float16 half = static_cast<_Float16>(value); + uint16_t bits = 0; + std::memcpy(&bits, &half, sizeof(bits)); + return bits; +} + +float BilinearGain( + const float* gain_map, + int gain_width, + int gain_height, + int channel, + float x, + float y) { + x = std::clamp(x, 0.0f, static_cast(gain_width - 1)); + y = std::clamp(y, 0.0f, static_cast(gain_height - 1)); + const int x0 = static_cast(std::floor(x)); + const int y0 = static_cast(std::floor(y)); + const int x1 = std::min(x0 + 1, gain_width - 1); + const int y1 = std::min(y0 + 1, gain_height - 1); + const float fx = x - static_cast(x0); + const float fy = y - static_cast(y0); + const auto value = [&](int px, int py) { + return gain_map[(py * gain_width + px) * 4 + channel]; + }; + const float top = value(x0, y0) + (value(x1, y0) - value(x0, y0)) * fx; + const float bottom = + value(x0, y1) + (value(x1, y1) - value(x0, y1)) * fx; + return std::max(top + (bottom - top) * fy, 0.0f); +} + +bool CopyFive(JNIEnv* env, jfloatArray source, float output[5]) { + if (source == nullptr || env->GetArrayLength(source) != 5) return false; + env->GetFloatArrayRegion(source, 0, 5, output); + return !env->ExceptionCheck(); +} + +bool CopyThree(JNIEnv* env, jfloatArray source, float output[3]) { + if (source == nullptr || env->GetArrayLength(source) != 3) return false; + env->GetFloatArrayRegion(source, 0, 3, output); + return !env->ExceptionCheck(); +} + +struct SampledDelta { + int64_t sample_count = 0; + int64_t changed_count = 0; + double absolute_sum = 0.0; + double squared_sum = 0.0; + int maximum = 0; +}; + +std::array MeasurePlanarDelta( + const int16_t* source, + const int16_t* denoised, + int width, + int height, + int stride, + size_t plane_size) { + std::array result = {}; + constexpr int kSampleStep = 8; + for (int y = 0; y < height; y += kSampleStep) { + for (int x = 0; x < width; x += kSampleStep) { + const size_t pixel = static_cast(y) * stride + x; + for (int channel = 0; channel < 3; ++channel) { + const size_t index = + static_cast(channel) * plane_size + pixel; + const int difference = + static_cast(denoised[index]) - + static_cast(source[index]); + const int absolute = std::abs(difference); + SampledDelta& delta = result[channel]; + ++delta.sample_count; + if (difference != 0) ++delta.changed_count; + delta.absolute_sum += static_cast(absolute); + delta.squared_sum += + static_cast(difference) * difference; + delta.maximum = std::max(delta.maximum, absolute); + } + } + } + return result; +} + +void LogDenoiseDiagnostics( + const uint16_t* strength, + size_t strength_count, + const std::array& delta) { + std::array strength_min = { + std::numeric_limits::max(), + std::numeric_limits::max(), + std::numeric_limits::max(), + }; + std::array strength_max = {}; + std::array strength_sum = {}; + for (int channel = 0; channel < 3; ++channel) { + const uint16_t* plane = + strength + static_cast(channel) * strength_count; + for (size_t index = 0; index < strength_count; ++index) { + const uint16_t value = plane[index]; + strength_min[channel] = + std::min(strength_min[channel], value); + strength_max[channel] = + std::max(strength_max[channel], value); + strength_sum[channel] += value; + } + } + const auto mean_strength = [&](int channel) { + return strength_count > 0 + ? strength_sum[channel] / + static_cast(strength_count) + : 0.0; + }; + const auto changed_percent = [&](int channel) { + return delta[channel].sample_count > 0 + ? 100.0 * static_cast(delta[channel].changed_count) / + static_cast(delta[channel].sample_count) + : 0.0; + }; + const auto mean_absolute = [&](int channel) { + return delta[channel].sample_count > 0 + ? delta[channel].absolute_sum / + static_cast(delta[channel].sample_count) + : 0.0; + }; + const auto rms = [&](int channel) { + return delta[channel].sample_count > 0 + ? std::sqrt( + delta[channel].squared_sum / + static_cast(delta[channel].sample_count)) + : 0.0; + }; + __android_log_print( + ANDROID_LOG_INFO, + kLogTag, + "MGC denoise diagnostics strengthQ8=" + "[%u..%u/%.2f,%u..%u/%.2f,%u..%u/%.2f] " + "delta14 Y=%.2f/%.2f/%d/%.1f%% " + "Cb=%.2f/%.2f/%d/%.1f%% " + "Cr=%.2f/%.2f/%d/%.1f%% samples=%lld", + strength_min[0], + strength_max[0], + mean_strength(0), + strength_min[1], + strength_max[1], + mean_strength(1), + strength_min[2], + strength_max[2], + mean_strength(2), + mean_absolute(0), + rms(0), + delta[0].maximum, + changed_percent(0), + mean_absolute(1), + rms(1), + delta[1].maximum, + changed_percent(1), + mean_absolute(2), + rms(2), + delta[2].maximum, + changed_percent(2), + static_cast(delta[0].sample_count)); +} + +void LogPecanInputs( + const float yuv_read[3], + const float yuv_shot[3], + const float correlation[128], + const float luma_strength[5], + const photon::mgc_denoise::DenoiseNoiseBuffers& noise) { + float correlation_min = std::numeric_limits::max(); + float correlation_max = std::numeric_limits::lowest(); + double correlation_sum = 0.0; + for (int index = 0; index < 128; ++index) { + correlation_min = std::min(correlation_min, correlation[index]); + correlation_max = std::max(correlation_max, correlation[index]); + correlation_sum += correlation[index]; + } + __android_log_print( + ANDROID_LOG_INFO, + kLogTag, + "MGC Pecan inputs " + "yuvRead=[%.6g,%.6g,%.6g] yuvShot=[%.6g,%.6g,%.6g] " + "correlation=%.6g..%.6g/%.6g " + "strength=[%.6g,%.6g,%.6g,%.6g,%.6g] " + "read4x2=[%.6g,%.6g,%.6g,%.6g;%.6g,%.6g,%.6g,%.6g] " + "shot4x2=[%.6g,%.6g,%.6g,%.6g;%.6g,%.6g,%.6g,%.6g] " + "outlier=[%.6g,%.6g,%.6g,%.6g,%.6g] " + "revert=[%.6g,%.6g,%.6g,%.6g,%.6g]", + yuv_read[0], + yuv_read[1], + yuv_read[2], + yuv_shot[0], + yuv_shot[1], + yuv_shot[2], + correlation_min, + correlation_max, + correlation_sum / 128.0, + luma_strength[0], + luma_strength[1], + luma_strength[2], + luma_strength[3], + luma_strength[4], + noise.read[0], + noise.read[1], + noise.read[2], + noise.read[3], + noise.read[4], + noise.read[5], + noise.read[6], + noise.read[7], + noise.shot[0], + noise.shot[1], + noise.shot[2], + noise.shot[3], + noise.shot[4], + noise.shot[5], + noise.shot[6], + noise.shot[7], + noise.outlier_distance[0], + noise.outlier_distance[1], + noise.outlier_distance[2], + noise.outlier_distance[3], + noise.outlier_distance[4], + noise.revert_factor[0], + noise.revert_factor[1], + noise.revert_factor[2], + noise.revert_factor[3], + noise.revert_factor[4]); +} + +} // namespace + +extern "C" JNIEXPORT jint JNICALL +Java_com_hinnka_mycamera_raw_MgcFullResolutionDenoise_nativeDenoiseRgba16f( + JNIEnv* env, + jobject, + jobject rgba_buffer, + jint width, + jint height, + jint global_origin_x, + jint global_origin_y, + jint full_width, + jint full_height, + jfloatArray lens_shading, + jint lens_width, + jint lens_height, + jfloatArray normalized_rgb_shot_array, + jfloatArray normalized_rgb_read_array, + jfloatArray correlation_array, + jboolean luma_enabled, + jboolean chroma_enabled, + jfloatArray luma_strength_array, + jfloatArray luma_outlier_array, + jfloatArray luma_revert_array, + jfloatArray chroma_strength_array, + jfloatArray chroma_outlier_array) { + const bool run_luma = luma_enabled == JNI_TRUE; + const bool run_chroma = chroma_enabled == JNI_TRUE; + if (rgba_buffer == nullptr || width <= 0 || height <= 0 || + full_width <= 0 || full_height <= 0 || + (!run_luma && !run_chroma)) { + return -1; + } + auto* rgba = static_cast( + env->GetDirectBufferAddress(rgba_buffer)); + const jlong capacity = env->GetDirectBufferCapacity(rgba_buffer); + const int64_t required_bytes = + static_cast(width) * height * 4 * sizeof(uint16_t); + if (rgba == nullptr || capacity < required_bytes) return -1; + + float normalized_rgb_shot[3] = {}; + float normalized_rgb_read[3] = {}; + float luma_strength[5] = {}; + float luma_outlier[5] = {}; + float luma_revert[5] = {}; + float chroma_strength[5] = {}; + float chroma_outlier[5] = {}; + if (!CopyThree(env, normalized_rgb_shot_array, normalized_rgb_shot) || + !CopyThree(env, normalized_rgb_read_array, normalized_rgb_read) || + !CopyFive(env, luma_strength_array, luma_strength) || + !CopyFive(env, luma_outlier_array, luma_outlier) || + !CopyFive(env, luma_revert_array, luma_revert) || + !CopyFive(env, chroma_strength_array, chroma_strength) || + !CopyFive(env, chroma_outlier_array, chroma_outlier)) { + return -1; + } + + float correlation[128]; + std::fill_n(correlation, 128, 1.0f); + if (correlation_array != nullptr) { + if (env->GetArrayLength(correlation_array) != 128) return -1; + env->GetFloatArrayRegion(correlation_array, 0, 128, correlation); + if (env->ExceptionCheck()) return -1; + } + + const int padded_width = RoundUp(width, 128); + const int padded_height = RoundUp(height, 16); + const int strength_width = padded_width / 4; + const int strength_height = padded_height / 4; + const size_t pixel_count = + static_cast(padded_width) * padded_height; + const size_t strength_count = + static_cast(strength_width) * strength_height; + + try { + // Two planar allocations are reused across RGB -> YUV, chroma, + // Pecan luma and YUV -> RGB. + std::vector planar_a(pixel_count * 3); + std::vector planar_b(pixel_count * 3); + auto* rgb_input = + reinterpret_cast(planar_a.data()); + for (int y = 0; y < padded_height; ++y) { + const int source_y = std::min(y, height - 1); + for (int x = 0; x < padded_width; ++x) { + const int source_x = std::min(x, width - 1); + const size_t source_index = + (static_cast(source_y) * width + source_x) * 4; + const size_t destination_index = + static_cast(y) * padded_width + x; + for (int channel = 0; channel < 3; ++channel) { + const float normalized = std::clamp( + HalfToFloat(rgba[source_index + channel]), + 0.0f, + 1.0f); + rgb_input[ + static_cast(channel) * pixel_count + + destination_index] = + static_cast( + std::lround(normalized * kWhiteLevel)); + } + } + } + + std::vector base_strength(strength_count, 256); + std::vector strength(strength_count * 3, 256); + if (lens_shading != nullptr && lens_width > 0 && lens_height > 0) { + const jsize lens_count = env->GetArrayLength(lens_shading); + if (lens_count != lens_width * lens_height * 4) return -1; + std::vector lens( + static_cast(lens_count)); + env->GetFloatArrayRegion( + lens_shading, + 0, + lens_count, + lens.data()); + if (env->ExceptionCheck()) return -1; + std::vector local_gain(strength_count * 4); + const int valid_strength_width = std::max(1, (width + 3) / 4); + const int valid_strength_height = std::max(1, (height + 3) / 4); + for (int y = 0; y < strength_height; ++y) { + const int valid_y = std::min(y, valid_strength_height - 1); + const float local_y = valid_strength_height > 1 + ? static_cast(valid_y) * + static_cast(height - 1) / + static_cast(valid_strength_height - 1) + : 0.0f; + const float global_y = std::clamp( + static_cast(global_origin_y) + local_y, + 0.0f, + static_cast(full_height - 1)); + const float gain_y = full_height > 1 + ? global_y * static_cast(lens_height - 1) / + static_cast(full_height - 1) + : 0.0f; + for (int x = 0; x < strength_width; ++x) { + const int valid_x = std::min(x, valid_strength_width - 1); + const float local_x = valid_strength_width > 1 + ? static_cast(valid_x) * + static_cast(width - 1) / + static_cast(valid_strength_width - 1) + : 0.0f; + const float global_x = std::clamp( + static_cast(global_origin_x) + local_x, + 0.0f, + static_cast(full_width - 1)); + const float gain_x = full_width > 1 + ? global_x * static_cast(lens_width - 1) / + static_cast(full_width - 1) + : 0.0f; + const size_t index = + (static_cast(y) * strength_width + x) * 4; + for (int channel = 0; channel < 4; ++channel) { + local_gain[index + channel] = BilinearGain( + lens.data(), + lens_width, + lens_height, + channel, + gain_x, + gain_y); + } + } + } + const int strength_result = + photon::mgc_denoise::ComputeStrengthMap( + base_strength.data(), + strength_width, + strength_height, + local_gain.data(), + strength_width, + strength_height, + 1.0f, + 1.0f, + strength.data()); + if (strength_result != 0) { + return LogStageFailure("strength_map", strength_result); + } + } + + const float white = static_cast(kWhiteLevel); + // Exact matrix stored by MGC at libgcastartup.so+0x0d64c24. + // TransformNoiseModel applies squared coefficients independently to + // read, shot and quadratic variance in the Y/Cb/Cr domain. + constexpr float rgb_to_yuv[9] = { + 0.2125999927520752f, + 0.7152000069618225f, + 0.07219959795475006f, + -0.16245023906230927f, + -0.5464943051338196f, + 0.7089447379112244f, + 0.9999967217445374f, + -0.9083024859428406f, + -0.09169333428144455f, + }; + float yuv_read[3] = {}; + float yuv_shot[3] = {}; + float yuv_quadratic[3] = {}; + for (int output_channel = 0; output_channel < 3; ++output_channel) { + for (int input_channel = 0; input_channel < 3; ++input_channel) { + const float matrix_value = + rgb_to_yuv[output_channel * 3 + input_channel]; + const float matrix_squared = matrix_value * matrix_value; + yuv_read[output_channel] += + matrix_squared * + std::max(normalized_rgb_read[input_channel], 0.0f) * + white * white; + yuv_shot[output_channel] += + matrix_squared * + std::max(normalized_rgb_shot[input_channel], 0.0f) * + white; + } + } + + const int rgb_to_yuv_result = + photon::mgc_denoise::RunRgbRawToYuv( + rgb_input, + padded_width, + padded_height, + planar_b.data()); + if (rgb_to_yuv_result != 0) { + return LogStageFailure("rgb_to_yuv", rgb_to_yuv_result); + } + + if (run_chroma) { + photon::mgc_denoise::ChromaDenoiseNoiseBuffers chroma_noise; + if (!photon::mgc_denoise::BuildChromaNoiseBuffers( + yuv_read, + yuv_shot, + yuv_quadratic, + correlation, + chroma_strength, + chroma_outlier, + &chroma_noise)) { + return LogStageFailure("chroma_noise_model", -1); + } + const int chroma_result = + photon::mgc_denoise::RunChromaDenoise( + planar_b.data(), + padded_width, + padded_height, + strength.data(), + strength_width, + strength_height, + chroma_noise, + planar_a.data()); + if (chroma_result != 0) { + return LogStageFailure("chroma_pyramid", chroma_result); + } + } + + if (run_luma) { + photon::mgc_denoise::DenoiseNoiseBuffers luma_noise; + if (!photon::mgc_denoise::BuildNoiseBuffers( + yuv_read[0], + yuv_shot[0], + yuv_quadratic[0], + correlation, + luma_strength, + luma_outlier, + luma_revert, + &luma_noise)) { + return LogStageFailure("luma_noise_model", -1); + } + LogPecanInputs( + yuv_read, + yuv_shot, + correlation, + luma_strength, + luma_noise); + if (!run_chroma) { + std::copy_n( + planar_b.data() + pixel_count, + pixel_count * 2, + planar_a.data() + pixel_count); + } + const int pecan_result = photon::mgc_denoise::RunPecan( + strength.data(), + strength_width, + strength_height, + luma_noise, + planar_b.data(), + padded_width, + padded_height, + planar_a.data()); + if (pecan_result != 0) { + return LogStageFailure("pecan_luma", pecan_result); + } + } + + const auto output_delta = MeasurePlanarDelta( + planar_b.data(), + planar_a.data(), + width, + height, + padded_width, + pixel_count); + LogDenoiseDiagnostics( + strength.data(), + strength_count, + output_delta); + + const int yuv_to_rgb_result = + photon::mgc_denoise::RunYuvToRgb( + planar_a.data(), + padded_width, + padded_height, + planar_b.data()); + if (yuv_to_rgb_result != 0) { + return LogStageFailure("yuv_to_rgb", yuv_to_rgb_result); + } + + for (int y = 0; y < height; ++y) { + for (int x = 0; x < width; ++x) { + const size_t source_index = + static_cast(y) * padded_width + x; + const size_t destination_index = + (static_cast(y) * width + x) * 4; + for (int channel = 0; channel < 3; ++channel) { + const float normalized = + static_cast( + planar_b[ + static_cast(channel) * pixel_count + + source_index]) / + static_cast(kWhiteLevel); + rgba[destination_index + channel] = + FloatToHalf(normalized); + } + } + } + return 0; + } catch (const std::bad_alloc&) { + return LogStageFailure("allocation", -2); + } +} diff --git a/app/src/main/cpp/mgc_denoise_static/mgc_full_resolution_denoise_static.S.in b/app/src/main/cpp/mgc_denoise_static/mgc_full_resolution_denoise_static.S.in new file mode 100644 index 00000000..d5d8073f --- /dev/null +++ b/app/src/main/cpp/mgc_denoise_static/mgc_full_resolution_denoise_static.S.in @@ -0,0 +1,5403 @@ +/* Generated mechanically from pinned MGC 9.6.080 V24. + * Do not edit; regenerate with + * scripts/research/generate_mgc_denoise_static_asm.py. + */ + +#if !defined(__aarch64__) +#error "MGC denoise static lift is arm64-only" +#endif + + .hidden photon_mgc_halide_error_5ef604c + .hidden photon_mgc_halide_error_5ef6140 + .hidden photon_mgc_halide_error_5ef61ac + .hidden photon_mgc_halide_error_5ef6294 + .hidden photon_mgc_halide_error_5ef636c + .hidden photon_mgc_halide_error_5ef63f8 + .hidden photon_mgc_halide_error_5ef64dc + .hidden photon_mgc_halide_error_5ef6568 + .hidden photon_mgc_halide_error_5ef6600 + .hidden photon_mgc_halide_error_5ef668c + .hidden photon_mgc_halide_error_5ef6794 + .hidden photon_mgc_halide_error_5ef6a74 + .hidden photon_mgc_halide_error_5ef6a94 + .hidden photon_mgc_halide_error_5ef6b6c + .hidden photon_mgc_halide_error_5ef6bd8 + .hidden photon_mgc_halide_error_5ef6c38 + .hidden photon_mgc_halide_error_5ef6cd0 + .hidden photon_mgc_halide_error_5ef7030 + .hidden photon_mgc_halide_do_par_for + .hidden photon_mgc_halide_free + .hidden photon_mgc_halide_malloc + .hidden photon_mgc_halide_trace + +.section .text.photon_mgc.BayerRawToYuv1xS16,"ax",@progbits + .p2align 12 +photon_mgc_page_49c3000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c3000, 0x484 +photon_mgc_address_49c3484: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c3484, 0x1ac + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c3634, 0x18 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c3650, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c3668, 0x34 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c36a0, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c36b8, 0x13c + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c37f8, 0x44 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c3840, 0x7c0 +photon_mgc_page_49c4000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c4000, 0x1c0 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c41c4, 0xe3c +photon_mgc_page_49c5000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5000, 0x708 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c570c, 0xb0 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c57c0, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c57d8, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c57f0, 0x30 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5824, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c583c, 0x130 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5970, 0x8 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c597c, 0x184 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b04, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b1c, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b30, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b44, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b5c, 0x4 + adrp x2, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b64, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b6c, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5b74, 0x2c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5ba4, 0x4 + adrp x2, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5bac, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5bb4, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5bbc, 0xc + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5bcc, 0x8 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5bd8, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5be4, 0x44 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c5c2c, 0x3d4 +photon_mgc_page_49c6000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c6000, 0xcc + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c60d0, 0xf30 +photon_mgc_page_49c7000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7000, 0x670 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7674, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7684, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7694, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c76a4, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c76b4, 0x54 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c770c, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7734, 0x28 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7760, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7788, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c77b0, 0x28 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c77dc, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7804, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c782c, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7854, 0x38 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7890, 0x4 + adrp x2, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7898, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c78a0, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c78a8, 0xc + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c78b8, 0x8 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c78c4, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c78d0, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49c78f8, 0x54 + adrp x8, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7950, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7968, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7974, 0x8 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7980, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c798c, 0x30 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c79c0, 0xc + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c79d0, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c79dc, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7a0c, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7a3c, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7a6c, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7a9c, 0x30 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7ad0, 0x30 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7b04, 0x30 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7b38, 0x2c +photon_mgc_address_49c7b64: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7b64, 0xe0 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c7c48, 0x3b8 +photon_mgc_page_49c8000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8000, 0xc + adrp x13, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8010, 0x30 + adrp x13, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8044, 0x74 + adrp x16, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c80bc, 0xac + adrp x9, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c816c, 0xb0 + adrp x9, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8220, 0x53c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8760, 0x40 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c87a4, 0x34 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c87dc, 0x34 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8814, 0x30 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8848, 0x2c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8878, 0x3c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c88b8, 0x34 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c88f0, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c88f8, 0x28 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8924, 0x28 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8950, 0x3c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8990, 0x34 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c89c8, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c89d0, 0x2c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8a00, 0x24 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8a28, 0x2c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8a58, 0x334 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8d90, 0x40 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8dd4, 0x30 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8e08, 0x30 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8e3c, 0x20 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8e60, 0x28 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8e8c, 0x20 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8eb0, 0x28 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8edc, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8ef8, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8f14, 0x34 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8f4c, 0x8 + adrp x8, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8f58, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x49c8f7c, 0x84 +photon_mgc_page_49c9000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49c9000, 0x8c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x49c9090, 0x74 + adrp x12, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c9108, 0x28 + adrp x11, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49c9134, 0xecc +photon_mgc_page_49ca000: + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca000, 0x218 + adrp x1, photon_mgc_page_614f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca21c, 0x2c + adrp x9, photon_mgc_page_6ac000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca24c, 0xd4 + adrp x12, photon_mgc_page_6b7000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca324, 0x28 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca350, 0x8 + adrp x20, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca35c, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca370, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca384, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca3a8, 0x3c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca3e8, 0x4 + adrp x2, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca3f0, 0x10 + bl photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca404, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca41c, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca428, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca434, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca440, 0xc + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca450, 0x30 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca484, 0x4 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca48c, 0x40 + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca4d0, 0x30 + b photon_mgc_halide_error_5ef6a74 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca508, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca51c, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca530, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca544, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca558, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca56c, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca578, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca584, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca590, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca5a4, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca5c0, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca5dc, 0x1c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca5fc, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca618, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca630, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca644, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca65c, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca670, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca678, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca694, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca6b0, 0x1c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca6d0, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca6ec, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca700, 0x20 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca724, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca73c, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca744, 0xc + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca754, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca75c, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca774, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca7ac, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca7c0, 0x34 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca7f8, 0x4 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca800, 0x18 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca81c, 0x20 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca840, 0x34 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca878, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca884, 0x44 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca8cc, 0x4 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca8d4, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca8dc, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca8f4, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca8fc, 0x14 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca914, 0x4 + adrp x3, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca91c, 0x38 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca95c, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca970, 0x10 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca984, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca990, 0x34 + b photon_mgc_halide_error_5ef6b6c + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49ca9cc, 0x3c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49caa10, 0x8 + adrp x1, photon_mgc_page_d4d000 + .incbin "@MGC_GCASTARTUP_SO@", 0x49caa1c, 0x34 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x49caa54, 0x5ac + +.section .text.photon_mgc.RgbRawToYuv1xS16,"ax",@progbits + .p2align 12 + .global photon_mgc_rgb_raw_to_yuv_s16 + .hidden photon_mgc_rgb_raw_to_yuv_s16 + .type photon_mgc_rgb_raw_to_yuv_s16, %function +photon_mgc_page_4a17000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a17000, 0xea8 +photon_mgc_address_4a17ea8: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a17ea8, 0x104 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4a17fb0, 0x50 +photon_mgc_page_4a18000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a18000, 0xa8 + adrp x9, photon_mgc_page_6b0000 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a180b0, 0xf50 +photon_mgc_page_4a19000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19000, 0xb4 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4a190b8, 0x160 + adrp x9, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1921c, 0x4 + adrp x9, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19224, 0x5c4 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4a197ec, 0x3c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1982c, 0x48 + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19878, 0x3c + b photon_mgc_halide_error_5ef6a74 +photon_mgc_rgb_raw_to_yuv_s16: +photon_mgc_address_4a198b8: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a198b8, 0xd4 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19990, 0x378 + adrp x9, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19d0c, 0x30 + adrp x10, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19d40, 0x74 + adrp x16, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19db8, 0x70 + adrp x8, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19e2c, 0xb0 + adrp x8, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a19ee0, 0x120 +photon_mgc_page_4a1a000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a000, 0x420 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a424, 0x44 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a46c, 0x3c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a4ac, 0x38 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a4e8, 0x34 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a520, 0x30 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a554, 0x40 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a598, 0x3c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a5d8, 0x4 + adrp x3, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a5e0, 0x34 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a618, 0x2c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a648, 0x30 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a67c, 0x38 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a6b8, 0x2c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a6e8, 0x28 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a714, 0x2c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1a744, 0x33c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1aa84, 0x40 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1aac8, 0x30 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1aafc, 0x30 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ab30, 0x20 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ab54, 0x28 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ab80, 0x20 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1aba4, 0x28 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1abd0, 0x18 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1abec, 0x18 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ac08, 0x30 + adrp x8, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ac3c, 0x4 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ac44, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ac68, 0x12c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ad98, 0x34 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1add0, 0x14 + adrp x9, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1ade8, 0x218 +photon_mgc_page_4a1b000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1b000, 0xc0c + adrp x12, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bc10, 0x60 + adrp x1, photon_mgc_page_614f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bc74, 0x74 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bcec, 0x8 + adrp x20, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bcf8, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bd0c, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bd20, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bd44, 0x3c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bd84, 0x4 + adrp x2, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bd8c, 0x10 + bl photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bda0, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bdbc, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bdc8, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bdd4, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bde0, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bdec, 0x34 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1be24, 0x4 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1be2c, 0x48 + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1be78, 0x30 + b photon_mgc_halide_error_5ef6a74 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1beb0, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bebc, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bed0, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bee4, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bef8, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf0c, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf20, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf2c, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf38, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf4c, 0x18 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf68, 0x1c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bf88, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bfa0, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bfb8, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bfd0, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bfe4, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1bffc, 0x4 +photon_mgc_page_4a1c000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c000, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c014, 0x4 + adrp x3, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c01c, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c034, 0x18 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c050, 0x20 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c074, 0x18 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c090, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c0a4, 0x24 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c0cc, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c0e4, 0xc + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c0f4, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c108, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c140, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c154, 0x34 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c18c, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c198, 0x14 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c1b0, 0x1c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c1d0, 0x34 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c208, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c214, 0x44 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c25c, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c268, 0x8 + adrp x3, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c274, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c288, 0x4 + adrp x3, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c290, 0x18 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c2ac, 0x4 + adrp x3, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c2b4, 0x34 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c2f0, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c304, 0x10 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c318, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c324, 0x34 + b photon_mgc_halide_error_5ef6b6c + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c360, 0x3c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c3a4, 0x8 + adrp x1, photon_mgc_page_d51000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c3b0, 0x34 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4a1c3e8, 0xc18 + +.section .text.photon_mgc.ChromaDenoisePyramidCompleteS16,"ax",@progbits + .p2align 12 + .global photon_mgc_chroma_denoise_pyramid_complete_s16 + .hidden photon_mgc_chroma_denoise_pyramid_complete_s16 + .type photon_mgc_chroma_denoise_pyramid_complete_s16, %function +photon_mgc_page_4be2000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be2000, 0x8cc +photon_mgc_chroma_denoise_pyramid_complete_s16: +photon_mgc_address_4be28cc: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be28cc, 0x11c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be29ec, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be2a10, 0x518 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be2f2c, 0xd4 +photon_mgc_page_4be3000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be3000, 0x240 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be3244, 0x360 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be35a8, 0x378 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be3924, 0x3a8 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be3cd0, 0x330 +photon_mgc_page_4be4000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4000, 0x58 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be405c, 0x350 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be43b0, 0x334 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be46e8, 0x158 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4844, 0xd8 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4920, 0x1a8 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4acc, 0xd8 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4ba8, 0x1a4 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4d50, 0xd0 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be4e24, 0x1dc +photon_mgc_page_4be5000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5000, 0x3a0 + adrp x13, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be53a4, 0x84 + adrp x14, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be542c, 0x74 + adrp x15, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be54a4, 0x8c + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5534, 0x1c + adrp x13, photon_mgc_page_6a8000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5554, 0x3c + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5594, 0x14 + adrp x13, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be55ac, 0x84 + adrp x13, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5634, 0xb4 + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be56ec, 0x18 + adrp x13, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5708, 0x77c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5e88, 0x44 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5ed0, 0x4c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5f20, 0x3c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5f60, 0x8 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5f6c, 0x34 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5fa4, 0x30 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be5fd8, 0x28 +photon_mgc_page_4be6000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6000, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be601c, 0x40 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6060, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be608c, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be60b8, 0x3c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be60f8, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6124, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be612c, 0x30 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6160, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6190, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6198, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be61c4, 0x38 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6200, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6208, 0x24 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6230, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6260, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6284, 0x8 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6290, 0x24 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be62b8, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be62e8, 0x24 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6310, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be633c, 0x24 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6364, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6388, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be63b8, 0x24 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be63e0, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6404, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6428, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6430, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6454, 0x120 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6578, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6580, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be65b0, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be65d4, 0x35c + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6934, 0x30 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6968, 0x34 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be69a0, 0x2c + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be69d0, 0x2c + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6a00, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6a2c, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6a58, 0x50 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6aac, 0x8 + adrp x8, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6ab8, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6adc, 0x158 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6c38, 0xc + adrp x8, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6c48, 0x80 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6ccc, 0x174 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6e44, 0x8c + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6ed4, 0xf4 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6fcc, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be6fd4, 0x2c +photon_mgc_page_4be7000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7000, 0x4c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7050, 0x88 + bl photon_mgc_address_4bf1874 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be70dc, 0x154 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7234, 0xb4 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be72ec, 0x168 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7458, 0xb4 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7510, 0x40 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7554, 0x20 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7578, 0x13c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be76b8, 0xb8 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7774, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7788, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7798, 0x38 + bl photon_mgc_address_4c394a0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be77d4, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be77e8, 0xc + bl photon_mgc_halide_free + adrp x8, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be77fc, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be781c, 0x1c + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4be783c, 0x2c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be786c, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7888, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be78b0, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be78d8, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7900, 0x3c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7940, 0x8 + bl photon_mgc_halide_error_5ef604c + .incbin "@MGC_GCASTARTUP_SO@", 0x4be794c, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be797c, 0x8 + bl photon_mgc_halide_error_5ef604c + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7988, 0x30 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be79bc, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be79cc, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be79e0, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be79f4, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a00, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a14, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a24, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a3c, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a4c, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a60, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a6c, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a80, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7a8c, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7aa0, 0x10 + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ab4, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ac0, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ad4, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7adc, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b00, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b08, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b28, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b34, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b64, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b6c, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b7c, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b84, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7b94, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ba0, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7bb0, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7bbc, 0x30 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7bf0, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7bf8, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c0c, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c18, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c24, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c2c, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c4c, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c54, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c70, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7c7c, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ca8, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7cb0, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7cd4, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7cdc, 0x30 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7d10, 0x4 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7d18, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7d40, 0x2c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7d70, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7d7c, 0x8 + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7d88, 0x38 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7dc4, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7dd0, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7dd8, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7df4, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7dfc, 0x1c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7e1c, 0x8 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7e28, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7e30, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7e50, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7e58, 0x20 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7e7c, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ea8, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7eb0, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ecc, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ed4, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ef4, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7efc, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f18, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f20, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f38, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f40, 0x1c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f60, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f80, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f88, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7f9c, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7fa4, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7fc4, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7fcc, 0x18 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7fe8, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be7ffc, 0x4 +photon_mgc_page_4be8000: + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8004, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8028, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8030, 0x1c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8050, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be807c, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8084, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be80a8, 0x4 + adrp x2, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be80b0, 0x14 + bl photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x4be80c8, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be80d8, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be80f4, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8118, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be812c, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8148, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be816c, 0x28 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8198, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be81b8, 0x1c + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be81d8, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be81fc, 0x14 + bl photon_mgc_halide_error_5ef668c + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8214, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8224, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be822c, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8244, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be824c, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8260, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8268, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be827c, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8284, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8294, 0x8 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be82a0, 0xc + bl photon_mgc_halide_error_5ef6794 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be82b0, 0xc + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be82c0, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be82d4, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be82ec, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8300, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8310, 0xc + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8320, 0x14 + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8338, 0x10 + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be834c, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be835c, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8370, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8388, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8398, 0x10 + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be83ac, 0x10 + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be83c0, 0xc + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4be83d0, 0xc + adrp x1, photon_mgc_page_d5f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be83e0, 0xc + bl photon_mgc_halide_error_5ef6600 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be83f0, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8404, 0xc + bl photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8414, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8428, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be843c, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8454, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be846c, 0x8 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8478, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be848c, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be84a4, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be84b4, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be84d0, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be84d8, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be84f0, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8508, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be851c, 0x20 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8540, 0x8 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be854c, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8560, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8578, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8590, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be85a8, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be85bc, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be85d4, 0x18 + bl photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be85f0, 0xc + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8600, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8608, 0x18 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8624, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8638, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8650, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8664, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be866c, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8684, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8698, 0x14 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be86b0, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be86c4, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be86cc, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be86e0, 0x8 + bl photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4be86ec, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8700, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8708, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be871c, 0x8 + bl photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8728, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be873c, 0x10 + adrp x1, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8750, 0x4 + adrp x3, photon_mgc_page_d60000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4be8758, 0x8a8 + +.section .text.photon_mgc.ChromaDenoisePyramidLevelS16,"ax",@progbits + .p2align 12 +photon_mgc_page_4bee000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bee000, 0x520 +photon_mgc_address_4bee520: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bee520, 0x18c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4bee6b0, 0x190 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bee844, 0x8 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bee850, 0x7b0 +photon_mgc_page_4bef000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bef000, 0x818 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bef81c, 0x8 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bef828, 0x644 + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4befe70, 0x14 + adrp x8, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4befe88, 0x178 +photon_mgc_page_4bf0000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0000, 0x760 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0764, 0x44 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf07ac, 0x4c + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf07fc, 0x30 + b photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0830, 0x2d4 + adrp x11, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0b08, 0xb0 + adrp x4, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0bbc, 0x334 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0ef4, 0x34 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0f2c, 0x34 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0f64, 0x34 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0f9c, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0fa4, 0x30 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf0fd8, 0x28 +photon_mgc_page_4bf1000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1000, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf100c, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1014, 0x34 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf104c, 0x1dc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf122c, 0x2c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf125c, 0x28 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1288, 0x24 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf12b0, 0x1c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf12d0, 0x30 + adrp x28, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1304, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf130c, 0x1c + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf132c, 0x18 + adrp x1, photon_mgc_page_614f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1348, 0xac + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf13f8, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1410, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1434, 0x24 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf145c, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf146c, 0x20 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1490, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf14a0, 0xc + adrp x2, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf14b0, 0x20 + b photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf14d4, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf14e4, 0x28 + b photon_mgc_halide_error_5ef668c + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1510, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1518, 0x10 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf152c, 0x10 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1540, 0x28 + b photon_mgc_halide_error_5ef6600 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf156c, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1574, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf158c, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf159c, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf15b4, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf15cc, 0x20 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf15f0, 0x10 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1604, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf160c, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1624, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf162c, 0x18 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1648, 0x28 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1674, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf167c, 0x24 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf16a4, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf16b4, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf16c4, 0x1c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf16e4, 0x2c + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1714, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1720, 0x24 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1748, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1750, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1758, 0x18 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1774, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf177c, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1794, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf17a4, 0x24 + b photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf17cc, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf17d4, 0x28 + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1804, 0x10 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1818, 0x4 + adrp x3, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1820, 0x24 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf184c, 0x24 + b photon_mgc_halide_error_5ef6bd8 +photon_mgc_address_4bf1874: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf1874, 0x78c + +.section .text.photon_mgc.ChromaDenoisePyramidDownsampleS16,"ax",@progbits + .p2align 12 +photon_mgc_page_4bf4000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf4000, 0xcdc +photon_mgc_address_4bf4cdc: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf4cdc, 0x2ac + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf4f8c, 0x74 +photon_mgc_page_4bf5000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf5000, 0x18c + adrp x13, photon_mgc_page_6a8000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf5190, 0x21c + adrp x9, photon_mgc_page_6ac000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf53b0, 0x8 + adrp x9, photon_mgc_page_6a8000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf53bc, 0x9b4 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf5d74, 0x8 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf5d80, 0x280 +photon_mgc_page_4bf6000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf6000, 0xec + adrp x3, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf60f0, 0x38 + adrp x11, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf612c, 0xed4 +photon_mgc_page_4bf7000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf7000, 0x1000 +photon_mgc_page_4bf8000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf8000, 0x1000 +photon_mgc_page_4bf9000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf9000, 0xbc + adrp x8, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf90c0, 0x10 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf90d4, 0xe4 + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf91bc, 0x4 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bf91c4, 0xe3c +photon_mgc_page_4bfa000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfa000, 0x678 + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfa67c, 0x48 + adrp x8, photon_mgc_page_6a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfa6c8, 0x9c + adrp x8, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfa768, 0x898 +photon_mgc_page_4bfb000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfb000, 0x1000 +photon_mgc_page_4bfc000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfc000, 0x1000 +photon_mgc_page_4bfd000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfd000, 0x1000 +photon_mgc_page_4bfe000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bfe000, 0x1000 +photon_mgc_page_4bff000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4bff000, 0x1000 +photon_mgc_page_4c00000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c00000, 0x1000 +photon_mgc_page_4c01000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c01000, 0x1000 +photon_mgc_page_4c02000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c02000, 0x1000 +photon_mgc_page_4c03000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c03000, 0x1000 +photon_mgc_page_4c04000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c04000, 0x1000 +photon_mgc_page_4c05000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c05000, 0x1000 +photon_mgc_page_4c06000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c06000, 0x1000 +photon_mgc_page_4c07000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c07000, 0x1000 +photon_mgc_page_4c08000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c08000, 0x1000 +photon_mgc_page_4c09000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c09000, 0x7d4 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c097d8, 0x8 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c097e4, 0x2b0 + adrp x9, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c09a98, 0x330 + adrp x16, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c09dcc, 0x234 +photon_mgc_page_4c0a000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0a000, 0x1000 +photon_mgc_page_4c0b000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0b000, 0x1000 +photon_mgc_page_4c0c000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0c000, 0x1000 +photon_mgc_page_4c0d000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0d000, 0x1000 +photon_mgc_page_4c0e000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0e000, 0x2b8 + adrp x8, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0e2bc, 0x10 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0e2d0, 0xe8 + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0e3bc, 0x4 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0e3c4, 0xc3c +photon_mgc_page_4c0f000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0f000, 0x89c + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0f8a0, 0x44 + adrp x8, photon_mgc_page_6a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0f8e8, 0xa0 + adrp x8, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c0f98c, 0x674 +photon_mgc_page_4c10000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c10000, 0x1000 +photon_mgc_page_4c11000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c11000, 0x1000 +photon_mgc_page_4c12000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c12000, 0x1000 +photon_mgc_page_4c13000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c13000, 0x1000 +photon_mgc_page_4c14000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c14000, 0x1000 +photon_mgc_page_4c15000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c15000, 0x1000 +photon_mgc_page_4c16000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c16000, 0x1000 +photon_mgc_page_4c17000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c17000, 0x1000 +photon_mgc_page_4c18000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c18000, 0x1000 +photon_mgc_page_4c19000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c19000, 0x1000 +photon_mgc_page_4c1a000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1a000, 0x1000 +photon_mgc_page_4c1b000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1b000, 0x1000 +photon_mgc_page_4c1c000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1c000, 0x1000 +photon_mgc_page_4c1d000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1d000, 0x1000 +photon_mgc_page_4c1e000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1e000, 0x5d8 + adrp x8, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1e5dc, 0x10 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1e5f0, 0x50 + adrp x8, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1e644, 0x8 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1e650, 0x294 + adrp x12, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1e8e8, 0x2e0 + adrp x10, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1ebcc, 0x434 +photon_mgc_page_4c1f000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c1f000, 0x1000 +photon_mgc_page_4c20000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c20000, 0x1000 +photon_mgc_page_4c21000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c21000, 0x1000 +photon_mgc_page_4c22000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c22000, 0x1000 +photon_mgc_page_4c23000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c23000, 0xa90 + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c23a94, 0x4 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c23a9c, 0x564 +photon_mgc_page_4c24000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c24000, 0x1000 +photon_mgc_page_4c25000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c25000, 0x5c + adrp x8, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c25060, 0x44 + adrp x8, photon_mgc_page_6a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c250a8, 0xc4 + adrp x8, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c25170, 0xe90 +photon_mgc_page_4c26000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c26000, 0x1000 +photon_mgc_page_4c27000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c27000, 0x1000 +photon_mgc_page_4c28000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c28000, 0x1000 +photon_mgc_page_4c29000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c29000, 0x1000 +photon_mgc_page_4c2a000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c2a000, 0x1000 +photon_mgc_page_4c2b000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c2b000, 0x1000 +photon_mgc_page_4c2c000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c2c000, 0x1000 +photon_mgc_page_4c2d000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c2d000, 0x1000 +photon_mgc_page_4c2e000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c2e000, 0x1000 +photon_mgc_page_4c2f000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c2f000, 0x1000 +photon_mgc_page_4c30000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c30000, 0x1000 +photon_mgc_page_4c31000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c31000, 0x1000 +photon_mgc_page_4c32000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c32000, 0x1000 +photon_mgc_page_4c33000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c33000, 0x66c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4c33670, 0x194 + adrp x9, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c33808, 0xc + adrp x9, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c33818, 0x7e8 +photon_mgc_page_4c34000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c34000, 0x568 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3456c, 0x84 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4c345f4, 0x100 + adrp x9, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c346f8, 0xc + adrp x9, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c34708, 0x8f8 +photon_mgc_page_4c35000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35000, 0x50c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35510, 0xe8 + adrp x20, photon_mgc_page_6b9000 + adrp x19, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35600, 0x47c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35a80, 0x40 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35ac4, 0x20 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35ae8, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35b00, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35b14, 0x54 + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35b6c, 0x34 + b photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35ba4, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35bb0, 0x24 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35bd8, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35be4, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35c00, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35c10, 0x150 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35d64, 0x24 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35d8c, 0x1c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c35dac, 0x254 +photon_mgc_page_4c36000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36000, 0x4fc + adrp x4, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36500, 0x70 + adrp x8, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36574, 0x7c + adrp x10, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c365f4, 0x48 + adrp x10, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36640, 0x4 + adrp x4, photon_mgc_page_6ad000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36648, 0x5c + adrp x16, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c366a8, 0x4 + adrp x4, photon_mgc_page_6ad000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c366b0, 0x4c + adrp x10, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36700, 0x78 + adrp x19, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3677c, 0x8 + adrp x22, photon_mgc_page_6ad000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36788, 0x4c + adrp x10, photon_mgc_page_6b1000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c367d8, 0x4 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c367e0, 0x8 + adrp x10, photon_mgc_page_6ae000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c367ec, 0xa0 + adrp x10, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c36890, 0x770 +photon_mgc_page_4c37000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37000, 0xc8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c370cc, 0x48 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37118, 0x5c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37178, 0x44 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c371c0, 0x44 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37208, 0x3c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37248, 0x34 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37280, 0x4c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c372d0, 0x30 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37304, 0x2c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37334, 0x3c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37374, 0x40 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c373b8, 0x38 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c373f4, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37420, 0x34 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37458, 0x34 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37490, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c374bc, 0x38 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c374f8, 0x34 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37530, 0x2c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37560, 0x2c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37590, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c375bc, 0x30 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c375f0, 0x2c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37620, 0x20 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37644, 0x2c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37674, 0x30 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c376a8, 0x30 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c376dc, 0x20 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37700, 0x34 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37738, 0x25c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37998, 0x30 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c379cc, 0x8 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c379d8, 0x24 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37a00, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37a08, 0x38 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37a44, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37a70, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37a9c, 0x8 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37aa8, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37ad4, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c37adc, 0x524 +photon_mgc_page_4c38000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38000, 0x1bc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c381c0, 0x4c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38210, 0x40 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38254, 0x34 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3828c, 0x2c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c382bc, 0x28 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c382e8, 0x34 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38320, 0x28 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3834c, 0x24 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38374, 0x20 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38398, 0x2c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c383c8, 0x20 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c383ec, 0x24 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38414, 0x20 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38438, 0x40 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3847c, 0x18 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38498, 0x24 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c384c0, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c384dc, 0x1c + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c384fc, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38518, 0x18 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38534, 0x30 + adrp x20, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38568, 0x4 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38570, 0x24 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38598, 0x3fc + adrp x10, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38998, 0xf8 + adrp x1, photon_mgc_page_614f000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38a94, 0x20 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ab8, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ad0, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38af4, 0x3c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38b34, 0x4 + adrp x2, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38b3c, 0x3c + b photon_mgc_halide_error_5ef61ac + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38b80, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38b8c, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38b98, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ba4, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38bb0, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38bc0, 0x30 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38bf4, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38c00, 0x20 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38c24, 0x20 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38c48, 0x40 + b photon_mgc_halide_error_5ef668c + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38c8c, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38c98, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38cac, 0xc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38cbc, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38cc4, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38cd8, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ce0, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38cf8, 0x8 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d04, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d18, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d2c, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d40, 0x8 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d4c, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d60, 0x8 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d6c, 0xc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d7c, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d84, 0xc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d94, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38d9c, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38db8, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38dcc, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38de0, 0x4 + adrp x3, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38de8, 0x34 + b photon_mgc_halide_error_5ef6794 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e20, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e2c, 0x38 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e68, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e74, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e80, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e90, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38e9c, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38eb4, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ec0, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ed8, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ee4, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ef0, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f00, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f10, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f1c, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f28, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f40, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f4c, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f60, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f6c, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f7c, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38f8c, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38fa0, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38fb8, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38fd0, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38fe8, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c38ffc, 0x4 +photon_mgc_page_4c39000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39000, 0xc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39010, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39024, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39038, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3904c, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39060, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3907c, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39094, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c390ac, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c390c0, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c390dc, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c390f4, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3910c, 0xc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3911c, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39138, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3914c, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39160, 0x18 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3917c, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39194, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c391ac, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c391c0, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c391d8, 0x14 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c391f0, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39228, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39234, 0x10 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39248, 0x34 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39280, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3928c, 0x2c + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c392bc, 0x3c + b photon_mgc_halide_error_5ef63f8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39300, 0x14 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39318, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39324, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39334, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39340, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39350, 0x38 + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39390, 0x8 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3939c, 0x10 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c393b0, 0xc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c393c0, 0xc + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c393d0, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c393dc, 0x34 + b photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39414, 0x4 + adrp x1, photon_mgc_page_d61000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3941c, 0x38 + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c3945c, 0x8 + adrp x1, photon_mgc_page_d62000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4c39468, 0x34 + b photon_mgc_halide_error_5ef6bd8 +photon_mgc_address_4c394a0: + .incbin "@MGC_GCASTARTUP_SO@", 0x4c394a0, 0xb60 + +.section .text.photon_mgc.YuvToRgbS16,"ax",@progbits + .p2align 12 + .global photon_mgc_yuv_to_rgb_s16 + .hidden photon_mgc_yuv_to_rgb_s16 + .type photon_mgc_yuv_to_rgb_s16, %function +photon_mgc_page_4ce4000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce4000, 0xf50 +photon_mgc_address_4ce4f50: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce4f50, 0xb0 +photon_mgc_page_4ce5000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5000, 0xb4 + adrp x7, photon_mgc_page_6b2000 + adrp x19, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce50bc, 0x10 + adrp x7, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce50d0, 0x1b4 + adrp x3, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5288, 0x2c4 +photon_mgc_yuv_to_rgb_s16: +photon_mgc_address_4ce554c: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce554c, 0xd0 + adrp x4, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5620, 0x3c + adrp x5, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5660, 0x288 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce58ec, 0x34 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5924, 0x30 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5958, 0x34 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5990, 0x2c + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce59c0, 0x28 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce59ec, 0x18 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5a08, 0x28 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5a34, 0x1e0 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5c18, 0x38 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5c54, 0x30 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5c88, 0x30 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5cbc, 0x1c + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5cdc, 0x34 + adrp x26, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5d14, 0x4 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5d1c, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5d40, 0x5c + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5da0, 0x80 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5e24, 0x14 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5e3c, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5e60, 0x24 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5e88, 0x8 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5e94, 0x20 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5eb8, 0x8 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5ec4, 0xc + adrp x2, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5ed4, 0x20 + b photon_mgc_halide_error_5ef61ac + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5efc, 0x10 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5f10, 0x10 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5f24, 0x2c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5f58, 0x18 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5f74, 0x14 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5f8c, 0x24 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5fb4, 0x14 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5fcc, 0x14 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce5fe4, 0x1c +photon_mgc_page_4ce6000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6000, 0x10 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6014, 0x8 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6020, 0x28 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce604c, 0x28 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6078, 0x4 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6080, 0x28 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce60ac, 0x8 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce60b8, 0x4 + adrp x3, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce60c0, 0x10 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce60d4, 0x4 + adrp x3, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce60dc, 0x28 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce610c, 0x10 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6120, 0x24 + b photon_mgc_halide_error_5ef6b6c + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce614c, 0x2c + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce6180, 0x8 + adrp x1, photon_mgc_page_d65000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce618c, 0x24 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ce61b4, 0xe4c + +.section .text.photon_mgc.PecanLumaDenoiseS16,"ax",@progbits + .p2align 12 + .global photon_mgc_pecan_luma_denoise_s16 + .hidden photon_mgc_pecan_luma_denoise_s16 + .type photon_mgc_pecan_luma_denoise_s16, %function +photon_mgc_page_4ef0000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0000, 0x154 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0158, 0x18c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef02e8, 0x17c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0468, 0x1f0 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef065c, 0xfc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef075c, 0x1c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef077c, 0x108 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0888, 0xd0 + adrp x25, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef095c, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0974, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0984, 0x78 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0a00, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0a10, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0a28, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0a4c, 0x30 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0a80, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0a9c, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0ac4, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0aec, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0b14, 0x3c + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0b54, 0xc + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0b64, 0xc + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0b74, 0xc + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0b84, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0b98, 0x8 + bl photon_mgc_halide_error_5ef604c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0ba4, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0bd8, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0be0, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c04, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c0c, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c2c, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c40, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c4c, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c58, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c64, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c6c, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c7c, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c84, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0c94, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0ca8, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0cb4, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0cc0, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0ccc, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0cd4, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0cf4, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0cfc, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d14, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d28, 0x18 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d44, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d50, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d5c, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d64, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d74, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d7c, 0xc + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d8c, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0d98, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0da4, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0dac, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0dcc, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0dd4, 0x14 + bl photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0dec, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e00, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e0c, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e1c, 0x8 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e28, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e48, 0x8 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e54, 0x18 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e70, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e7c, 0xc + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e8c, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0e98, 0x2c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0ec8, 0x24 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0ef0, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0efc, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f08, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f14, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f20, 0x34 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f58, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f60, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f68, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f84, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0f8c, 0x20 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0fb0, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0fbc, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0fc4, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0fe4, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef0fec, 0x14 +photon_mgc_page_4ef1000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1000, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef100c, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1040, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1048, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1068, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1070, 0x14 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1088, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10a0, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10a8, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10b8, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10c0, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10d0, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10e4, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef10ec, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1110, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1118, 0x18 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1134, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef115c, 0x8 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1168, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1188, 0x8 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1194, 0x18 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef11b0, 0x2c + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef11e0, 0x20 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1204, 0xc + bl photon_mgc_halide_error_5ef668c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1214, 0x4 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef121c, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1224, 0x18 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1240, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1248, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1260, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1268, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef127c, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1284, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1298, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef12a0, 0x10 + bl photon_mgc_halide_error_5ef6794 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef12b4, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef12c0, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef12d4, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef12e8, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef12fc, 0x10 + bl photon_mgc_halide_error_5ef6600 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1310, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef131c, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1330, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1344, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1350, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef135c, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1370, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1384, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1390, 0x8 + bl photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef139c, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef13a8, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef13bc, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef13d0, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef13dc, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef13e8, 0x8 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef13f4, 0x8 + bl photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1400, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1414, 0x8 + bl photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1420, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1434, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1448, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1460, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1478, 0x8 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1484, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1498, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef14ac, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef14c0, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef14d8, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef14e0, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef14f8, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1510, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1524, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef153c, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1544, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef155c, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1574, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef157c, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1590, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef15a8, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef15b0, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef15c8, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef15e0, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef15f4, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef15fc, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1614, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1628, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1640, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1654, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef165c, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1670, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1684, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1698, 0x18 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef16b4, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef16bc, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef16d4, 0x8 + bl photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef16e0, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef16f4, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef16fc, 0x14 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1714, 0x8 + bl photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1720, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1734, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef173c, 0x10 + adrp x1, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1750, 0x4 + adrp x3, photon_mgc_page_f36000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1758, 0x8 +photon_mgc_pecan_luma_denoise_s16: +photon_mgc_address_4ef1760: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1760, 0x110 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1874, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef1898, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef18b4, 0x74c +photon_mgc_page_4ef2000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef2000, 0x1000 +photon_mgc_page_4ef3000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3000, 0x74 + adrp x12, photon_mgc_page_6b5000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3078, 0x28 + adrp x11, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef30a4, 0x4c + adrp x12, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef30f4, 0x60 + adrp x14, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3158, 0x14 + adrp x12, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3170, 0x5c + adrp x15, photon_mgc_page_6b5000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef31d0, 0x30 + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3204, 0x14 + adrp x13, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef321c, 0x68 + adrp x17, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3288, 0xd0 + adrp x17, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef335c, 0x14 + adrp x14, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3374, 0x728 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3aa0, 0x4c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3af0, 0x4c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3b40, 0x44 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3b88, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3b90, 0x34 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3bc8, 0x38 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3c04, 0x38 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3c40, 0x40 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3c84, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3c8c, 0x2c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3cbc, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3ce8, 0x34 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3d20, 0x2c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3d50, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3d7c, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3da8, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3db0, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3de4, 0x38 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3e20, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3e28, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3e54, 0x34 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3e8c, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3eb0, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3eb8, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3ee0, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3f04, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3f0c, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3f34, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3f68, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3f70, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3f9c, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3fc4, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef3ff8, 0x8 +photon_mgc_page_4ef4000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4000, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef402c, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4034, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4060, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef408c, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4094, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef40bc, 0x18 + bl photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef40d8, 0x11c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef41f8, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4200, 0x3c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4240, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4248, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4274, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef427c, 0x2ac + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef452c, 0x38 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4568, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4594, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef45c8, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef45ec, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4614, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4638, 0x40 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef467c, 0x18 + adrp x8, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4698, 0x1c + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef46b8, 0x10c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef47c8, 0x14 + adrp x8, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef47e0, 0x190 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4974, 0x184 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4afc, 0x180 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4c80, 0x1f0 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4e74, 0x100 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4f78, 0x1c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef4f98, 0x68 +photon_mgc_page_4ef5000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5000, 0x70 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5074, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef507c, 0x30 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef50b0, 0xe0 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5194, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef51a4, 0x6c + adrp x19, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5214, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5224, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5234, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef524c, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5270, 0x30 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef52a4, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef52c0, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef52e8, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5310, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5338, 0x3c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5378, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5388, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5398, 0xc + bl photon_mgc_halide_error_5ef604c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef53a8, 0x2c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef53d8, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef53ec, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef53f4, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5418, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5420, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5440, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5454, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5460, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef546c, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5478, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5480, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5490, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5498, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef54a8, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef54bc, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef54c8, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef54f4, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5500, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef550c, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5514, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5530, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5538, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5558, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef556c, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5598, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55a4, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55b0, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55b8, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55c8, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55d0, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55e0, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55ec, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef55f8, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5600, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5620, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5628, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef564c, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5658, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5668, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5670, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5690, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef569c, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef56ac, 0x8 + bl photon_mgc_halide_error_5ef6140 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef56b8, 0x2c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef56e8, 0x28 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5714, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5720, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef572c, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5738, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5744, 0x34 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef577c, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5784, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef578c, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef57a8, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef57b0, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef57d4, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef57dc, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef57fc, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5804, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef582c, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5834, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5850, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5858, 0x18 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5874, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef589c, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef58a4, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef58b4, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef58bc, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef58cc, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef58e0, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef58e8, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef590c, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5914, 0x1c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5934, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5948, 0x8 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5954, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5974, 0x8 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5980, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef59a0, 0x4 + adrp x2, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef59a8, 0x14 + bl photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef59c0, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef59d0, 0x34 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a08, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a2c, 0xc + bl photon_mgc_halide_error_5ef668c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a3c, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a44, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a4c, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a64, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a6c, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a84, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5a8c, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5aa0, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5aa8, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5abc, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ac4, 0x10 + bl photon_mgc_halide_error_5ef6794 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ad8, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ae4, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5af8, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b0c, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b20, 0x10 + bl photon_mgc_halide_error_5ef6600 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b34, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b40, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b54, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b68, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b74, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b80, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5b94, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ba8, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5bb4, 0x8 + bl photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5bc0, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5bcc, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5be0, 0x10 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5bf4, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c00, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c0c, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c18, 0x8 + bl photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c24, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c34, 0x10 + bl photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c48, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c58, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c68, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c80, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5c9c, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ca4, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5cb8, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5cc8, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5cd8, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5cf0, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5cf8, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d10, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d28, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d38, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d54, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d5c, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d70, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d88, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5d98, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5db0, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5db8, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5dd0, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5de8, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5df8, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e00, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e18, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e24, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e40, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e50, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e60, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e70, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e88, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5e98, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ea0, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5eb8, 0xc + bl photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ec8, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ed8, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ee0, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5ef8, 0xc + bl photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5f08, 0xc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5f18, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5f20, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5f34, 0x8 +photon_mgc_address_4ef5f3c: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef5f3c, 0xc4 +photon_mgc_page_4ef6000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6000, 0x24 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6028, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6040, 0x114 + adrp x14, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6158, 0x14 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6170, 0x468 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef65dc, 0x44 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6624, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef663c, 0xc0 + adrp x8, photon_mgc_page_6b0000 + adrp x13, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6704, 0x36c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6a74, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6a84, 0x28 + adrp x8, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6ab0, 0x2c + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6ae0, 0x20 + b photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6b04, 0x4 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6b0c, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6b24, 0x170 + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6c98, 0x100 + adrp x0, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef6d9c, 0x264 +photon_mgc_page_4ef7000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7000, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef700c, 0x2c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef703c, 0x2c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef706c, 0x2c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef709c, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef70a4, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef70c8, 0x28 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef70f4, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef710c, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7134, 0x28 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7160, 0x150 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef72b4, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef72dc, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7304, 0x40 + adrp x8, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7348, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7350, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7374, 0x38 + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef73b0, 0x158 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef750c, 0x4 + adrp x8, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7514, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7534, 0x1c + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7554, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef757c, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7588, 0x24 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef75b0, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef75b8, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef75cc, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef75e0, 0x24 + b photon_mgc_halide_error_5ef6600 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7608, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7610, 0x28 + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7640, 0x24 + b photon_mgc_halide_error_5ef6b6c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef766c, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7678, 0x24 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef76a0, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef76ac, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef76c4, 0x1c + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef76e4, 0x18 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7700, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7708, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7720, 0x2c + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7750, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7764, 0x20 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7788, 0x28 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef77b4, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef77bc, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef77c4, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef77d8, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef77e0, 0x14 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef77f8, 0x4 + adrp x3, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7800, 0x28 + b photon_mgc_halide_error_5ef6794 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef782c, 0x4 +photon_mgc_address_4ef7830: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7830, 0xa4 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef78d8, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef78f0, 0x124 + adrp x14, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7a18, 0x14 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7a30, 0x408 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7e3c, 0x38 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7e78, 0x14 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7e90, 0xe0 + adrp x13, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7f74, 0x4 + adrp x8, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef7f7c, 0x84 +photon_mgc_page_4ef8000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8000, 0x278 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef827c, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef828c, 0x28 + adrp x8, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef82b8, 0x2c + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef82e8, 0x20 + b photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef830c, 0x4 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8314, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef832c, 0x1ac + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef84dc, 0xcc + adrp x8, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef85ac, 0x25c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef880c, 0x34 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8844, 0x28 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8870, 0x30 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef88a4, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef88ac, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef88d0, 0x28 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef88fc, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8918, 0x24 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8940, 0x28 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef896c, 0x160 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8ad0, 0x30 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8b04, 0x30 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8b38, 0x4c + adrp x8, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8b88, 0x4 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8b90, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8bb4, 0x44 + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8bfc, 0x70 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8c70, 0x14 + adrp x8, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8c88, 0x4 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8c90, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8cb4, 0x24 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8cdc, 0x8 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8ce8, 0x20 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d0c, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d14, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d28, 0x10 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d3c, 0x24 + b photon_mgc_halide_error_5ef6600 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d64, 0x4 + adrp x1, photon_mgc_page_f37000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d6c, 0x28 + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8d9c, 0x24 + b photon_mgc_halide_error_5ef6b6c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8dc8, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8dd4, 0x24 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8dfc, 0x4 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8e04, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8e20, 0x1c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8e40, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8e5c, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8e64, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8e7c, 0x2c + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8eac, 0xc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8ebc, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8ee0, 0x28 + b photon_mgc_halide_error_5ef63f8 + adrp x8, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f10, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f1c, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f34, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f3c, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f54, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f5c, 0x28 + b photon_mgc_halide_error_5ef6794 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f88, 0x4 +photon_mgc_address_4ef8f8c: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef8f8c, 0x74 +photon_mgc_page_4ef9000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9000, 0x194 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9198, 0x64 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9200, 0x58 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef925c, 0x24 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9284, 0x3c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef92c4, 0x924 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9bec, 0x2f8 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9ee8, 0x24 + adrp x25, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4ef9f10, 0xf0 +photon_mgc_page_4efa000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa000, 0x8 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa00c, 0x8 + adrp x25, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa018, 0x4d4 + adrp x9, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa4f0, 0xc + adrp x9, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa500, 0x468 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa96c, 0x8 + adrp x25, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efa978, 0x59c + adrp x25, photon_mgc_page_6b2000 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efaf1c, 0x58 + adrp x9, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efaf78, 0xc + adrp x9, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efaf88, 0x78 +photon_mgc_page_4efb000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4efb000, 0x40 + adrp x4, photon_mgc_page_6b0000 + adrp x30, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efb048, 0x5c4 + adrp x4, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efb610, 0x54c + adrp x18, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efbb60, 0x8 + adrp x5, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efbb6c, 0x494 +photon_mgc_page_4efc000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4efc000, 0x408 + adrp x5, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efc40c, 0x8 + adrp x18, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efc418, 0x18c + bl photon_mgc_halide_malloc + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efc5ac, 0xc4 + adrp x14, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efc674, 0x428 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efcaa0, 0x38 + adrp x0, photon_mgc_page_6b2000 + adrp x1, photon_mgc_page_6b0000 + adrp x2, photon_mgc_page_6bd000 + adrp x3, photon_mgc_page_6bc000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efcae8, 0xd8 + adrp x17, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efcbc4, 0x35c + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efcf24, 0xdc +photon_mgc_page_4efd000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd000, 0xe8 + adrp x12, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd0ec, 0x2c + adrp x11, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd11c, 0x8 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd128, 0x3c0 + adrp x27, photon_mgc_page_6b0000 + adrp x11, photon_mgc_page_6b0000 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd4f4, 0x8 + adrp x12, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd500, 0x108 + adrp x10, photon_mgc_page_6b2000 + adrp x11, photon_mgc_page_6b0000 + adrp x12, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd614, 0x394 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efd9ac, 0x4c + adrp x11, photon_mgc_page_6b0000 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efda00, 0x4 + adrp x12, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efda08, 0x104 + adrp x15, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efdb10, 0x8 + adrp x28, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efdb1c, 0x4 + adrp x29, photon_mgc_page_6b0000 + adrp x14, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efdb28, 0x8 + adrp x13, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efdb34, 0x4 + adrp x16, photon_mgc_page_6b9000 + adrp x2, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efdb40, 0x4c0 +photon_mgc_page_4efe000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4efe000, 0x1c + adrp x29, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efe020, 0x20 + adrp x28, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efe044, 0x14 + adrp x27, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efe05c, 0x188 + adrp x15, photon_mgc_page_6b4000 + adrp x14, photon_mgc_page_6af000 + adrp x13, photon_mgc_page_6b9000 + adrp x16, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efe1f4, 0x754 + adrp x18, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efe94c, 0x6b4 +photon_mgc_page_4eff000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4eff000, 0xc34 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effc38, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effc50, 0x8 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effc5c, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effc6c, 0x8 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effc78, 0x30 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effcac, 0x20 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effcd0, 0x34 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd08, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd24, 0x34 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd5c, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd68, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd74, 0x8 + adrp x2, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd80, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd88, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effd90, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effda8, 0x8 + adrp x2, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effdb4, 0x8 + adrp x4, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effdc0, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effddc, 0x4 + adrp x2, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effde4, 0x8 + adrp x4, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effdf0, 0xc + bl photon_mgc_halide_error_5ef6cd0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe00, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe0c, 0xc + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe1c, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe28, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe40, 0x38 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe7c, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4effe94, 0xc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effea4, 0x1c + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4effec4, 0x14 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4effedc, 0x30 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efff10, 0x18 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4efff2c, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efff3c, 0x28 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efff68, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efff98, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4efffc8, 0x38 +photon_mgc_page_4f00000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f00000, 0xbc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f000c0, 0x700 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f007c4, 0x10c + adrp x0, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f008d4, 0x58 + adrp x0, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f00930, 0xa4 + adrp x3, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f009d8, 0x58 + adrp x9, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f00a34, 0xa0 + adrp x13, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f00ad8, 0x528 +photon_mgc_page_4f01000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01000, 0x44 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01048, 0x5c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f010a8, 0x44 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f010f0, 0x50 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01144, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0114c, 0x44 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01194, 0x44 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f011dc, 0x4c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0122c, 0x48 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01278, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01280, 0x38 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f012bc, 0x34 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f012f4, 0x3c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01334, 0x3c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01374, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0137c, 0x3c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f013bc, 0x48 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01408, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01410, 0x44 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01458, 0x324 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01780, 0x44 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f017c8, 0x30 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f017fc, 0x30 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01830, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01854, 0x28 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01880, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f018a4, 0x28 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f018d0, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f018ec, 0x30 + adrp x28, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01920, 0x4 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01928, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0194c, 0x1e8 + adrp x16, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01b38, 0xe4 + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01c20, 0x84 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01ca8, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01cc4, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01ce8, 0x38 + adrp x2, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d24, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d30, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d38, 0x4 + adrp x5, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d40, 0x38 + b photon_mgc_halide_error_5ef7030 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d80, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d8c, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01d98, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01da4, 0x30 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01dd8, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01df0, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01e08, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01e24, 0x40 + b photon_mgc_halide_error_5ef668c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01e6c, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01e80, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01e94, 0x3c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01ed8, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01eec, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01ef8, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f0c, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f18, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f24, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f38, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f4c, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f58, 0x34 + b photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f90, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01f9c, 0xc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01fac, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01fc8, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01fe0, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f01fe8, 0x14 + adrp x1, photon_mgc_page_f38000 +photon_mgc_page_4f02000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02000, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02014, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02028, 0x1c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02048, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0206c, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02084, 0x24 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f020ac, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f020b4, 0xc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f020c4, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f020cc, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f020e8, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f020fc, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02110, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0212c, 0x24 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02154, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0216c, 0x24 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02194, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0219c, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f021b0, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f021b8, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f021d4, 0x38 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02210, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0221c, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02254, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02260, 0x34 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02298, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f022a4, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f022ac, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f022c0, 0x44 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02308, 0x4 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02310, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0232c, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02334, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02348, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02350, 0x14 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02368, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02370, 0x38 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f023b0, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f023c4, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f023d0, 0x3c + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02414, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02420, 0x34 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02458, 0xc +photon_mgc_address_4f02464: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02464, 0x24c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f026b4, 0x40 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f026f8, 0x4c + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02748, 0x28 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f02774, 0x34 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f027ac, 0x854 +photon_mgc_page_4f03000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f03000, 0x7c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f03080, 0x5c4 + adrp x16, photon_mgc_page_6b0000 + adrp x0, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0364c, 0x144 + adrp x0, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f03794, 0x8 + adrp x16, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f037a0, 0x1c8 + adrp x9, photon_mgc_page_6ad000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0396c, 0x4ac + adrp x16, photon_mgc_page_6b0000 + adrp x0, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f03e20, 0x1e0 +photon_mgc_page_4f04000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f04000, 0x31c + adrp x16, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f04320, 0x38 + adrp x0, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0435c, 0xa64 + adrp x0, photon_mgc_page_6b2000 + adrp x16, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f04dc8, 0x238 +photon_mgc_page_4f05000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05000, 0xa38 + adrp x0, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05a3c, 0x8 + adrp x16, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05a48, 0x80 + adrp x25, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05acc, 0xc + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05adc, 0xa4 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05b84, 0x9c + adrp x19, photon_mgc_page_6b0000 + adrp x20, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05c28, 0x3c8 + adrp x25, photon_mgc_page_6b0000 + adrp x26, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f05ff8, 0x8 +photon_mgc_page_4f06000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06000, 0x3a8 + adrp x18, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f063ac, 0x40 + adrp x9, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f063f0, 0x248 + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0663c, 0x108 + adrp x25, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06748, 0x11c + adrp x30, photon_mgc_page_6b0000 + adrp x9, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0686c, 0x2f0 + adrp x25, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06b60, 0x74 + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06bd8, 0x128 + adrp x30, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06d04, 0x8 + adrp x15, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06d10, 0x8 + adrp x14, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06d1c, 0x8 + adrp x16, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06d28, 0x4 + adrp x2, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06d30, 0x3c + adrp x13, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f06d70, 0x290 +photon_mgc_page_4f07000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f07000, 0x2ac + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f072b0, 0x28 + adrp x25, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f072dc, 0x208 + adrp x30, photon_mgc_page_6b0000 + adrp x15, photon_mgc_page_6b2000 + adrp x14, photon_mgc_page_6b4000 + adrp x13, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f074f4, 0x4 + adrp x16, photon_mgc_page_6b9000 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f07500, 0x6e4 + adrp x25, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f07be8, 0x418 +photon_mgc_page_4f08000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f08000, 0xfb0 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f08fb4, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f08fc4, 0x8 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f08fd0, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f08fe0, 0x8 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f08fec, 0x14 +photon_mgc_page_4f09000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09000, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0901c, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09038, 0x38 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09074, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09090, 0x34 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f090c8, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f090d4, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f090e0, 0x8 + adrp x2, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f090ec, 0x4 + adrp x3, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f090f4, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f090fc, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09114, 0x34 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0914c, 0x8 + adrp x2, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09158, 0x8 + adrp x4, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09164, 0xc + bl photon_mgc_halide_error_5ef6cd0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09174, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09180, 0xc + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09190, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0919c, 0xc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f091ac, 0x18 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f091c8, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f091d8, 0x34 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09210, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09228, 0xc + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09238, 0x1c + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09258, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09264, 0x28 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09290, 0x18 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f092ac, 0xc + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f092bc, 0x10 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f092d0, 0x2c + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09300, 0xf4 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f093f8, 0x7fc + adrp x0, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09bf8, 0x6c + adrp x13, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09c68, 0x78 + adrp x7, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09ce4, 0x44 + adrp x14, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09d2c, 0xd0 + adrp x9, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f09e00, 0x200 +photon_mgc_page_4f0a000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a000, 0x3a4 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a3a8, 0x54 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a400, 0x44 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a448, 0x54 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a4a0, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a4a8, 0x40 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a4ec, 0x40 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a530, 0x48 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a57c, 0x40 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a5c0, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a5c8, 0x38 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a604, 0x30 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a638, 0x3c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a678, 0x34 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a6b0, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a6b8, 0x38 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a6f4, 0x44 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a73c, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a744, 0x34 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0a77c, 0x324 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0aaa4, 0x3c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0aae4, 0x30 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ab18, 0x30 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ab4c, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ab70, 0x28 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ab9c, 0x20 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0abc0, 0x28 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0abec, 0x18 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ac08, 0x30 + adrp x23, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ac3c, 0x4 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ac44, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ac68, 0x314 + adrp x2, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0af80, 0x80 +photon_mgc_page_4f0b000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b000, 0x70 + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b074, 0x30 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b0a8, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b0c4, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b0e8, 0x38 + adrp x2, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b124, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b130, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b138, 0x4 + adrp x5, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b140, 0x38 + b photon_mgc_halide_error_5ef7030 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b180, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b18c, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b198, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b1a4, 0x30 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b1d8, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b1ec, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b208, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b230, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b248, 0x40 + b photon_mgc_halide_error_5ef668c + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b290, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b2a4, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b2b8, 0x3c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b2fc, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b310, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b31c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b330, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b33c, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b348, 0x10 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b35c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b370, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b37c, 0x34 + b photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b3b4, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b3c0, 0xc + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b3d0, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b3ec, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b404, 0x8 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b410, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b428, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b43c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b450, 0x1c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b470, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b48c, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b4b4, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b4d8, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b4e0, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b4f4, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b4fc, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b518, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b534, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b548, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b564, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b588, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b5a4, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b5cc, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b5d4, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b5e8, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b5f0, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b614, 0x34 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b64c, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b658, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b690, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b69c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b6b0, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b6b8, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b6d0, 0x44 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b718, 0x4 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b720, 0x38 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b75c, 0x4 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b764, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b76c, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b784, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b78c, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b7a4, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b7ac, 0x38 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b7ec, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b800, 0x8 + adrp x1, photon_mgc_page_f38000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b80c, 0x3c + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b850, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b85c, 0x34 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b894, 0xc +photon_mgc_address_4f0b8a0: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0b8a0, 0x1f4 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ba98, 0x84 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0bb20, 0x30 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0bb54, 0x30 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0bb88, 0x320 + adrp x7, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0beac, 0x14 + adrp x4, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0bec4, 0x13c +photon_mgc_page_4f0c000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0c000, 0x388 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0c38c, 0xc74 +photon_mgc_page_4f0d000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0d000, 0xdcc + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ddd0, 0x230 +photon_mgc_page_4f0e000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0e000, 0x2cc + adrp x0, photon_mgc_page_6b2000 + adrp x1, photon_mgc_page_6b0000 + adrp x2, photon_mgc_page_6bd000 + adrp x3, photon_mgc_page_6bc000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0e2dc, 0x574 + adrp x24, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0e854, 0x48 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0e8a0, 0x360 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ec04, 0x164 + adrp x10, photon_mgc_page_6b0000 + adrp x4, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0ed70, 0x290 +photon_mgc_page_4f0f000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f000, 0x9c + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f0a0, 0x150 + adrp x30, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f1f4, 0x8 + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f200, 0x4 + adrp x28, photon_mgc_page_6b4000 + adrp x29, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f20c, 0x8 + adrp x15, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f218, 0x4 + adrp x14, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f220, 0x32c + adrp x28, photon_mgc_page_6b4000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f550, 0x4 + adrp x29, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f558, 0x150 + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f6ac, 0x20c + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f0f8bc, 0x744 +photon_mgc_page_4f10000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f10000, 0xc + adrp x18, photon_mgc_page_6ac000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f10010, 0xff0 +photon_mgc_page_4f11000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11000, 0x1f0 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f111f4, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11208, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11218, 0xc + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11228, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11250, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1126c, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11284, 0x38 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f112c0, 0x4 + adrp x2, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f112c8, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f112d0, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f112d8, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f112f0, 0x8 + adrp x2, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f112fc, 0x8 + adrp x4, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11308, 0xc + bl photon_mgc_halide_error_5ef6cd0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11318, 0xc + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11328, 0x8 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11334, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11340, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11368, 0x20 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1138c, 0x28 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f113b8, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f113d0, 0x24 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f113f8, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11420, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11438, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11444, 0xf0 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11538, 0x7b0 + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11cec, 0x54 + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11d44, 0x84 + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11dcc, 0x5c + adrp x14, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11e2c, 0xa0 + adrp x0, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f11ed0, 0x130 +photon_mgc_page_4f12000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12000, 0x440 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12444, 0x68 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f124b0, 0x50 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12504, 0x50 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12558, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12560, 0x4c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f125b0, 0x48 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f125fc, 0x50 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12650, 0x48 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1269c, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f126a4, 0x40 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f126e8, 0x38 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12724, 0x44 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1276c, 0x3c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f127ac, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f127b4, 0x4c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12804, 0x3c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12844, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1284c, 0x48 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12898, 0x334 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12bd0, 0x48 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12c1c, 0x38 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12c58, 0x38 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12c94, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12cb8, 0x28 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12ce4, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12d08, 0x28 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12d34, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12d50, 0x30 + adrp x26, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12d84, 0x4 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12d8c, 0x24 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12db4, 0x21c + adrp x1, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f12fd4, 0x2c +photon_mgc_page_4f13000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13000, 0x78 + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1307c, 0x78 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4f130f8, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13114, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13138, 0x38 + adrp x2, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13174, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13180, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13188, 0x4 + adrp x5, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13190, 0x38 + b photon_mgc_halide_error_5ef7030 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f131d0, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f131dc, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f131e8, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f131f4, 0x30 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13228, 0xc + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13238, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13250, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13274, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13298, 0x40 + b photon_mgc_halide_error_5ef668c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f132e0, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f132f4, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13308, 0x3c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1334c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13360, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1336c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13380, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1338c, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13398, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f133ac, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f133c0, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f133cc, 0x34 + b photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13404, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13410, 0xc + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13420, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1343c, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13454, 0x8 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13460, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13478, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1348c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f134a0, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f134bc, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f134d4, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f134f8, 0x20 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1351c, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13524, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1353c, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13544, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1355c, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13570, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13584, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f135a0, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f135c8, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f135e0, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13608, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13610, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13624, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1362c, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13648, 0x38 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13684, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13690, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f136c8, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f136d4, 0x34 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1370c, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13718, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1372c, 0x44 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13774, 0x4 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1377c, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13798, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f137a0, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f137b4, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f137bc, 0x14 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f137d4, 0x4 + adrp x3, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f137dc, 0x34 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13818, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1382c, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13838, 0x3c + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1387c, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13888, 0x34 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f138c0, 0xc +photon_mgc_address_4f138cc: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f138cc, 0x1e0 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13ab0, 0x94 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13b48, 0x30 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13b7c, 0x34 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13bb4, 0x350 + adrp x22, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13f08, 0x8 + adrp x23, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f13f14, 0xec +photon_mgc_page_4f14000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f14000, 0x37c + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f14380, 0xc80 +photon_mgc_page_4f15000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f15000, 0x1000 +photon_mgc_page_4f16000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f16000, 0x34c + bl photon_mgc_halide_malloc + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f16354, 0x840 + adrp x9, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f16b98, 0x2e8 + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f16e84, 0x12c + adrp x9, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f16fb4, 0x4c +photon_mgc_page_4f17000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f17000, 0x27c + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f17280, 0x130 + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f173b4, 0x4 + adrp x14, photon_mgc_page_6b4000 + adrp x16, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f173c0, 0x8 + adrp x2, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f173cc, 0x38 + adrp x13, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f17408, 0x4b0 + adrp x26, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f178bc, 0x19c + adrp x15, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f17a5c, 0x4 + adrp x14, photon_mgc_page_6b4000 + adrp x13, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f17a68, 0x4 + adrp x16, photon_mgc_page_6b9000 + adrp x10, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f17a74, 0x58c +photon_mgc_page_4f18000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f18000, 0x1a4 + adrp x18, photon_mgc_page_6ac000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f181a8, 0xe58 +photon_mgc_page_4f19000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19000, 0x318 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1931c, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19334, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19348, 0x10 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1935c, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19384, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f193a0, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f193b8, 0x38 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f193f4, 0x4 + adrp x2, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f193fc, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19404, 0x4 + bl photon_mgc_halide_error_5ef6c38 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1940c, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19424, 0x8 + adrp x2, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19430, 0x8 + adrp x4, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1943c, 0xc + bl photon_mgc_halide_error_5ef6cd0 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1944c, 0xc + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1945c, 0x8 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19468, 0x8 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19474, 0x24 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1949c, 0x20 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f194c0, 0x28 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f194ec, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19504, 0xc + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19514, 0x14 + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1952c, 0x24 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19554, 0x24 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1957c, 0x24 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f195a4, 0xf0 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19698, 0x7dc + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19e78, 0x38 + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19eb4, 0x94 + adrp x6, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19f4c, 0x6c + adrp x13, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f19fbc, 0x44 +photon_mgc_page_4f1a000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a000, 0x5c + adrp x0, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a060, 0x55c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a5c0, 0x5c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a620, 0x48 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a66c, 0x54 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a6c4, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a6cc, 0x48 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a718, 0x44 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a760, 0x48 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a7ac, 0x44 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a7f4, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a7fc, 0x40 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a840, 0x34 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a878, 0x3c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a8b8, 0x40 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a8fc, 0x44 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a944, 0x3c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a984, 0x40 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1a9c8, 0x338 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ad04, 0x4c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ad54, 0x44 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ad9c, 0x44 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ade4, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ae0c, 0x2c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ae3c, 0x24 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ae64, 0x2c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ae94, 0x18 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1aeb0, 0x30 + adrp x28, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1aee4, 0x4 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1aeec, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1af10, 0xf0 +photon_mgc_page_4f1b000: + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b000, 0x1ec + adrp x1, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b1f0, 0xd0 + adrp x1, photon_mgc_page_6150000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b2c4, 0x74 + bl photon_mgc_halide_do_par_for + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b33c, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b358, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b37c, 0x38 + adrp x2, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b3b8, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b3c4, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b3cc, 0x4 + adrp x5, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b3d4, 0x38 + b photon_mgc_halide_error_5ef7030 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b414, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b420, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b42c, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b438, 0x30 + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b46c, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b484, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b498, 0x1c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b4b8, 0x20 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b4dc, 0x40 + b photon_mgc_halide_error_5ef668c + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b524, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b538, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b54c, 0x3c + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b590, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b5a4, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b5b0, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b5c4, 0x8 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b5d0, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b5dc, 0x10 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b5f0, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b604, 0x8 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b610, 0x34 + b photon_mgc_halide_error_5ef6b6c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b648, 0x8 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b654, 0xc + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b664, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b680, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b698, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b6a0, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b6b8, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b6cc, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b6e0, 0x1c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b700, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b71c, 0x24 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b744, 0x24 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b76c, 0xc + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b77c, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b784, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b7a0, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b7bc, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b7d0, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b7ec, 0x20 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b810, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b828, 0x24 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b850, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b858, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b870, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b878, 0x1c + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b898, 0x34 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b8d0, 0x8 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b8dc, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b914, 0x8 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b920, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b938, 0x18 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b954, 0x38 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b990, 0x4 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b998, 0x38 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b9d4, 0x4 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b9dc, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b9e4, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1b9fc, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ba04, 0x14 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ba1c, 0x4 + adrp x3, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ba24, 0x34 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ba60, 0x10 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ba74, 0x8 + adrp x1, photon_mgc_page_f39000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1ba80, 0x3c + b photon_mgc_halide_error_5ef64dc + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1bac4, 0x8 + adrp x1, photon_mgc_page_f3a000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1bad0, 0x34 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1bb08, 0xc + adrp x9, photon_mgc_page_6b2000 + adrp x10, photon_mgc_page_6b6000 + .incbin "@MGC_GCASTARTUP_SO@", 0x4f1bb1c, 0x4e4 + +.section .text.photon_mgc.ComputeDenoiseStrengthMapsU16,"ax",@progbits + .p2align 12 + .global photon_mgc_compute_denoise_strength_maps_u16 + .hidden photon_mgc_compute_denoise_strength_maps_u16 + .type photon_mgc_compute_denoise_strength_maps_u16, %function +photon_mgc_page_54db000: + .incbin "@MGC_GCASTARTUP_SO@", 0x54db000, 0xe04 +photon_mgc_address_54dbe04: + .incbin "@MGC_GCASTARTUP_SO@", 0x54dbe04, 0x58 + adrp x18, photon_mgc_page_6b2000 + adrp x3, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dbe64, 0xf0 + adrp x0, photon_mgc_page_6ba000 + adrp x3, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dbf5c, 0xa4 +photon_mgc_page_54dc000: + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc000, 0x158 + adrp x12, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc15c, 0x510 + adrp x19, photon_mgc_page_6ba000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc670, 0x18 + adrp x19, photon_mgc_page_6b9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc68c, 0x40 + adrp x6, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc6d0, 0x4 + adrp x7, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc6d8, 0x18 + adrp x7, photon_mgc_page_6ab000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dc6f4, 0x640 +photon_mgc_compute_denoise_strength_maps_u16: +photon_mgc_address_54dcd34: + .incbin "@MGC_GCASTARTUP_SO@", 0x54dcd34, 0x2a0 + adrp x23, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dcfd8, 0x28 +photon_mgc_page_54dd000: + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd000, 0x50 + adrp x21, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd054, 0x7c + adrp x10, photon_mgc_page_6aa000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd0d4, 0x304 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd3dc, 0x3c + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd41c, 0x44 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd464, 0x54 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd4bc, 0x2c + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd4ec, 0x2c + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd51c, 0x2c + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd54c, 0x280 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd7d0, 0x38 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd80c, 0x28 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd838, 0x28 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd864, 0x18 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd880, 0x28 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd8ac, 0x20 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd8d0, 0x38 + adrp x8, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd90c, 0x4 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd914, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd938, 0x14 + adrp x11, photon_mgc_page_6af000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54dd950, 0xd0 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x54dda24, 0x118 + adrp x10, photon_mgc_page_6b2000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54ddb40, 0x30 + adrp x14, photon_mgc_page_6b0000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54ddb74, 0x80 + bl photon_mgc_halide_malloc + .incbin "@MGC_GCASTARTUP_SO@", 0x54ddbf8, 0x394 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x54ddf90, 0x3c + bl memset + .incbin "@MGC_GCASTARTUP_SO@", 0x54ddfd0, 0x30 +photon_mgc_page_54de000: + .incbin "@MGC_GCASTARTUP_SO@", 0x54de000, 0x30 + adrp x1, photon_mgc_page_6152000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de034, 0xec + bl photon_mgc_halide_do_par_for + adrp x19, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de128, 0x14 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x54de140, 0x14 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de158, 0x20 + bl photon_mgc_halide_trace + .incbin "@MGC_GCASTARTUP_SO@", 0x54de17c, 0x34 + bl photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de1b4, 0x18 + bl photon_mgc_halide_free + .incbin "@MGC_GCASTARTUP_SO@", 0x54de1d0, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de1dc, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de1e8, 0xc + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de1f8, 0x2c + b photon_mgc_halide_error_5ef6a94 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de228, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de234, 0x4 + adrp x2, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de23c, 0x10 + bl photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x54de250, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de25c, 0x4 + adrp x2, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de264, 0x3c + b photon_mgc_halide_error_5ef61ac + .incbin "@MGC_GCASTARTUP_SO@", 0x54de2a4, 0x4 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de2ac, 0x38 + b photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x54de2e8, 0x4 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de2f0, 0xc + bl photon_mgc_halide_error_5ef64dc + .incbin "@MGC_GCASTARTUP_SO@", 0x54de300, 0x30 + b photon_mgc_halide_error_5ef6a74 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de334, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de340, 0x14 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de358, 0x18 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de374, 0x18 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de390, 0x18 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de3ac, 0x20 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de3d0, 0x20 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de3f4, 0x14 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de40c, 0x14 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de424, 0x34 + b photon_mgc_halide_error_5ef636c + .incbin "@MGC_GCASTARTUP_SO@", 0x54de45c, 0x4 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de464, 0x38 + b photon_mgc_halide_error_5ef6294 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de4a0, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de4ac, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de4c0, 0x24 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de4e8, 0x14 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de500, 0x38 + b photon_mgc_halide_error_5ef63f8 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de53c, 0x4 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de544, 0x34 + b photon_mgc_halide_error_5ef6568 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de57c, 0x4 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de584, 0x4 + adrp x3, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de58c, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de5a0, 0x4 + adrp x3, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de5a8, 0x34 + b photon_mgc_halide_error_5ef6794 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de5e4, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de5f8, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de60c, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de620, 0x30 + b photon_mgc_halide_error_5ef6b6c + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de658, 0xc + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de668, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de67c, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de690, 0x10 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de6a4, 0x38 + b photon_mgc_halide_error_5ef6600 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de6e4, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de6f0, 0x8 + adrp x1, photon_mgc_page_10a9000 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de6fc, 0x30 + b photon_mgc_halide_error_5ef6bd8 + .incbin "@MGC_GCASTARTUP_SO@", 0x54de730, 0x8d0 + +.section .rodata.photon_mgc.page_6a8000,"a",@progbits + .p2align 12 +photon_mgc_page_6a8000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6a8000, 0x1000 + +.section .rodata.photon_mgc.page_6a9000,"a",@progbits + .p2align 12 +photon_mgc_page_6a9000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6a9000, 0x1000 + +.section .rodata.photon_mgc.page_6aa000,"a",@progbits + .p2align 12 +photon_mgc_page_6aa000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6aa000, 0x1000 + +.section .rodata.photon_mgc.page_6ab000,"a",@progbits + .p2align 12 +photon_mgc_page_6ab000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6ab000, 0x1000 + +.section .rodata.photon_mgc.page_6ac000,"a",@progbits + .p2align 12 +photon_mgc_page_6ac000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6ac000, 0x1000 + +.section .rodata.photon_mgc.page_6ad000,"a",@progbits + .p2align 12 +photon_mgc_page_6ad000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6ad000, 0x1000 + +.section .rodata.photon_mgc.page_6ae000,"a",@progbits + .p2align 12 +photon_mgc_page_6ae000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6ae000, 0x1000 + +.section .rodata.photon_mgc.page_6af000,"a",@progbits + .p2align 12 +photon_mgc_page_6af000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6af000, 0x1000 + +.section .rodata.photon_mgc.page_6b0000,"a",@progbits + .p2align 12 +photon_mgc_page_6b0000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b0000, 0x1000 + +.section .rodata.photon_mgc.page_6b1000,"a",@progbits + .p2align 12 +photon_mgc_page_6b1000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b1000, 0x1000 + +.section .rodata.photon_mgc.page_6b2000,"a",@progbits + .p2align 12 +photon_mgc_page_6b2000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b2000, 0x1000 + +.section .rodata.photon_mgc.page_6b4000,"a",@progbits + .p2align 12 +photon_mgc_page_6b4000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b4000, 0x1000 + +.section .rodata.photon_mgc.page_6b5000,"a",@progbits + .p2align 12 +photon_mgc_page_6b5000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b5000, 0x1000 + +.section .rodata.photon_mgc.page_6b6000,"a",@progbits + .p2align 12 +photon_mgc_page_6b6000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b6000, 0x1000 + +.section .rodata.photon_mgc.page_6b7000,"a",@progbits + .p2align 12 +photon_mgc_page_6b7000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b7000, 0x1000 + +.section .rodata.photon_mgc.page_6b9000,"a",@progbits + .p2align 12 +photon_mgc_page_6b9000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6b9000, 0x1000 + +.section .rodata.photon_mgc.page_6ba000,"a",@progbits + .p2align 12 +photon_mgc_page_6ba000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6ba000, 0x1000 + +.section .rodata.photon_mgc.page_6bc000,"a",@progbits + .p2align 12 +photon_mgc_page_6bc000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6bc000, 0x1000 + +.section .rodata.photon_mgc.page_6bd000,"a",@progbits + .p2align 12 +photon_mgc_page_6bd000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6bd000, 0x1000 + +.section .rodata.photon_mgc.page_d4d000,"a",@progbits + .p2align 12 +photon_mgc_page_d4d000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd4d000, 0x1000 + +.section .rodata.photon_mgc.page_d51000,"a",@progbits + .p2align 12 +photon_mgc_page_d51000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd51000, 0x1000 + +.section .rodata.photon_mgc.page_d5f000,"a",@progbits + .p2align 12 +photon_mgc_page_d5f000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd5f000, 0x1000 + +.section .rodata.photon_mgc.page_d60000,"a",@progbits + .p2align 12 +photon_mgc_page_d60000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd60000, 0x1000 + +.section .rodata.photon_mgc.page_d61000,"a",@progbits + .p2align 12 +photon_mgc_page_d61000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd61000, 0x1000 + +.section .rodata.photon_mgc.page_d62000,"a",@progbits + .p2align 12 +photon_mgc_page_d62000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd62000, 0x1000 + +.section .rodata.photon_mgc.page_d65000,"a",@progbits + .p2align 12 +photon_mgc_page_d65000: + .incbin "@MGC_GCASTARTUP_SO@", 0xd65000, 0x1000 + +.section .rodata.photon_mgc.page_f36000,"a",@progbits + .p2align 12 +photon_mgc_page_f36000: + .incbin "@MGC_GCASTARTUP_SO@", 0xf36000, 0x1000 + +.section .rodata.photon_mgc.page_f37000,"a",@progbits + .p2align 12 +photon_mgc_page_f37000: + .incbin "@MGC_GCASTARTUP_SO@", 0xf37000, 0x1000 + +.section .rodata.photon_mgc.page_f38000,"a",@progbits + .p2align 12 +photon_mgc_page_f38000: + .incbin "@MGC_GCASTARTUP_SO@", 0xf38000, 0x1000 + +.section .rodata.photon_mgc.page_f39000,"a",@progbits + .p2align 12 +photon_mgc_page_f39000: + .incbin "@MGC_GCASTARTUP_SO@", 0xf39000, 0x1000 + +.section .rodata.photon_mgc.page_f3a000,"a",@progbits + .p2align 12 +photon_mgc_page_f3a000: + .incbin "@MGC_GCASTARTUP_SO@", 0xf3a000, 0x1000 + +.section .rodata.photon_mgc.page_10a9000,"a",@progbits + .p2align 12 +photon_mgc_page_10a9000: + .incbin "@MGC_GCASTARTUP_SO@", 0x10a9000, 0x1000 + +.section .data.rel.ro.photon_mgc.page_614f000,"aw",@progbits + .p2align 12 +photon_mgc_page_614f000: + .incbin "@MGC_GCASTARTUP_SO@", 0x614f000, 0xd58 + .xword photon_mgc_address_49c3484 + .incbin "@MGC_GCASTARTUP_SO@", 0x614fd60, 0x48 + .xword photon_mgc_address_4a17ea8 + .incbin "@MGC_GCASTARTUP_SO@", 0x614fdb0, 0x200 + .xword photon_mgc_address_4bee520 + .incbin "@MGC_GCASTARTUP_SO@", 0x614ffb8, 0x8 + .xword photon_mgc_address_4bf4cdc + .incbin "@MGC_GCASTARTUP_SO@", 0x614ffc8, 0x38 + +.section .data.rel.ro.photon_mgc.page_6150000,"aw",@progbits + .p2align 12 +photon_mgc_page_6150000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6150000, 0x150 + .xword photon_mgc_address_4ce4f50 + .incbin "@MGC_GCASTARTUP_SO@", 0x6150158, 0x320 + .xword photon_mgc_address_4ef5f3c + .xword photon_mgc_address_4ef7830 + .xword photon_mgc_address_4ef8f8c + .xword photon_mgc_address_4f02464 + .xword photon_mgc_address_4f0b8a0 + .xword photon_mgc_address_4f138cc + .incbin "@MGC_GCASTARTUP_SO@", 0x61504a8, 0xb58 + +.section .data.rel.ro.photon_mgc.page_6152000,"aw",@progbits + .p2align 12 +photon_mgc_page_6152000: + .incbin "@MGC_GCASTARTUP_SO@", 0x6152000, 0xb00 + .xword photon_mgc_address_54dbe04 + .incbin "@MGC_GCASTARTUP_SO@", 0x6152b08, 0x4f8 + +.section .note.GNU-stack,"",@progbits diff --git a/app/src/main/cpp/native-lib.cpp b/app/src/main/cpp/native-lib.cpp index 3241eb74..f4e9ce33 100644 --- a/app/src/main/cpp/native-lib.cpp +++ b/app/src/main/cpp/native-lib.cpp @@ -3913,6 +3913,52 @@ Java_com_hinnka_mycamera_utils_DirectBufferPixelPacker_unpackRgba16TileToRgb16( return JNI_TRUE; } +JNIEXPORT jboolean JNICALL +Java_com_hinnka_mycamera_utils_DirectBufferPixelPacker_packRgba16fToRgb16( + JNIEnv *env, jobject, jobject sourceBuffer, jint width, jint height, + jobject destinationBuffer) { + if (!sourceBuffer || !destinationBuffer || width <= 0 || height <= 0) { + LOGE("packRgba16fToRgb16: invalid geometry %dx%d", width, height); + return JNI_FALSE; + } + + const auto *source = static_cast( + env->GetDirectBufferAddress(sourceBuffer)); + auto *destination = static_cast( + env->GetDirectBufferAddress(destinationBuffer)); + const int64_t pixelCount = static_cast(width) * height; + const int64_t sourceRequiredBytes = + pixelCount * 4 * static_cast(sizeof(uint16_t)); + const int64_t destinationRequiredBytes = + pixelCount * 3 * static_cast(sizeof(uint16_t)); + const jlong sourceCapacity = env->GetDirectBufferCapacity(sourceBuffer); + const jlong destinationCapacity = + env->GetDirectBufferCapacity(destinationBuffer); + if (!source || !destination || sourceCapacity < sourceRequiredBytes || + destinationCapacity < destinationRequiredBytes) { + LOGE("packRgba16fToRgb16: invalid buffers src=%p %lld/%lld dst=%p %lld/%lld", + source, static_cast(sourceCapacity), + static_cast(sourceRequiredBytes), destination, + static_cast(destinationCapacity), + static_cast(destinationRequiredBytes)); + return JNI_FALSE; + } + + for (int64_t pixel = 0; pixel < pixelCount; ++pixel) { + for (int channel = 0; channel < 3; ++channel) { + _Float16 half = {}; + const uint16_t bits = source[pixel * 4 + channel]; + static_assert(sizeof(half) == sizeof(bits)); + std::memcpy(&half, &bits, sizeof(bits)); + const float normalized = + std::clamp(static_cast(half), 0.0f, 1.0f); + destination[pixel * 3 + channel] = static_cast( + std::lround(normalized * 65535.0f)); + } + } + return JNI_TRUE; +} + JNIEXPORT jbyteArray JNICALL Java_com_hinnka_mycamera_utils_SuperResolutionDngWriter_encodeLosslessJpegNative( JNIEnv *env, jobject, jobject rawBuffer, jint width, jint height, diff --git a/app/src/main/java/com/hinnka/mycamera/gallery/GalleryManager.kt b/app/src/main/java/com/hinnka/mycamera/gallery/GalleryManager.kt index b389f417..c01ff331 100644 --- a/app/src/main/java/com/hinnka/mycamera/gallery/GalleryManager.kt +++ b/app/src/main/java/com/hinnka/mycamera/gallery/GalleryManager.kt @@ -2926,6 +2926,7 @@ object GalleryManager { var gpuSourceToRelease: GpuLinearRgbSource? = null var pendingDngWrite: Deferred? = null var releaseStackCpuBuffer: (() -> Unit)? = null + var defaultDenoisedBufferToRelease: ByteBuffer? = null try { val photoDir = getPhotoDir(context, photoId, true) @@ -3030,25 +3031,6 @@ object GalleryManager { val finalStackResult = rawStackResult ?: return@withContext gpuSourceToRelease = finalStackResult.gpuLinearRgbSource - - val outputRawBlackBorderCrop = - metadata.rawBlackBorderCrop.scaledForOutput(rawStackOutputScale) - val stackedMetadataBase = if (finalStackResult.isNormalizedSensorData) { - metadata.withNormalizedRawLevelCorrectionsCleared("RAW stack") - } else { - metadata - } - val stackedMetadata = stackedMetadataBase.copy( - rawBlackBorderCrop = outputRawBlackBorderCrop - ) - if (outputRawBlackBorderCrop != metadata.rawBlackBorderCrop) { - PLog.i( - TAG, - "RAWmax black border crop mapped to output scale: " + - "scale=$rawStackOutputScale native=${metadata.rawBlackBorderCrop} " + - "output=$outputRawBlackBorderCrop" - ) - } fun releaseInitialFusedBuffer() { val buffer = finalStackResult.fusedBayerBuffer ?: return finalStackResult.fusedBayerBuffer = null @@ -3059,15 +3041,85 @@ object GalleryManager { } releaseStackCpuBuffer = ::releaseInitialFusedBuffer + val spatialInputSamples = finalStackResult.inputColStepSamples + ?: if (finalStackResult.bufferLayout == RawStackBufferLayout.LINEAR_RGB) 3 else 1 + val spatialInputRowStepSamples = finalStackResult.inputRowStepSamples + ?: finalStackResult.width * spatialInputSamples + val spatialMergeMetadata = rawMetadata.copy( + width = finalStackResult.width, + height = finalStackResult.height, + blackLevel = if (finalStackResult.isNormalizedSensorData) { + finalStackResult.blackLevel.copyOf() + } else { + stackBlackLevel.copyOf() + }, + whiteLevel = if (finalStackResult.isNormalizedSensorData) { + 65535f + } else { + stackWhiteLevel.toFloat() + }, + frameCount = finalStackResult.mergedFrameCount, + mgcDenoiseCorrelation = finalStackResult.mgcDenoiseCorrelation, + mgcDenoiseNoiseScale = finalStackResult.mgcDenoiseNoiseScale, + ) + val defaultDenoised = processor.materializeMgcSpatialDefaultDenoisedLinearRgb( + context = context, + rawData = finalStackResult.fusedBayerBuffer, + width = finalStackResult.width, + height = finalStackResult.height, + rowStride = spatialInputRowStepSamples * Short.SIZE_BYTES, + samplesPerPixel = spatialInputSamples, + gpuLinearRgbSource = finalStackResult.gpuLinearRgbSource, + metadata = spatialMergeMetadata, + sourcePixelsIncludeLensShadingCorrection = + finalStackResult.lensShadingCorrectionApplied, + applyLensShadingCorrection = applyRawLensShading, + ) + if (defaultDenoised == null) { + PLog.e( + TAG, + "RAW stack aborted: MGC Spatial default denoise did not produce " + + "persistable LinearRaw pixels", + ) + return@withContext + } + defaultDenoisedBufferToRelease = defaultDenoised.linearRgb16 + // Spatial CFA/RGBA storage and its propagated model have both been consumed. + // Every downstream consumer sees only the default-denoised standard LinearRaw image. + releaseInitialFusedBuffer() + processor.releaseGpuLinearRgbSource(finalStackResult.gpuLinearRgbSource) + gpuSourceToRelease = null + val stackedRawMetadata = spatialMergeMetadata.copy( + blackLevel = FloatArray(4), + whiteLevel = 65535f, + frameCount = 1, + mgcDenoiseCorrelation = null, + mgcDenoiseNoiseScale = null, + ) + + val outputRawBlackBorderCrop = + metadata.rawBlackBorderCrop.scaledForOutput(rawStackOutputScale) + val stackedMetadata = metadata + .withNormalizedRawLevelCorrectionsCleared("MGC default-denoised RAW stack") + .copy(rawBlackBorderCrop = outputRawBlackBorderCrop) + if (outputRawBlackBorderCrop != metadata.rawBlackBorderCrop) { + PLog.i( + TAG, + "RAWmax black border crop mapped to output scale: " + + "scale=$rawStackOutputScale native=${metadata.rawBlackBorderCrop} " + + "output=$outputRawBlackBorderCrop" + ) + } + var updatedMetadata: MediaMetadata = stackedMetadata val rawSharpening = updatedMetadata.sharpening ?: RawSharpeningDefaults.forCapture(sharpeningValue) val rawNoiseReduction = resolveNoiseReduction(updatedMetadata, noiseReductionValue) val rawChromaNoiseReduction = updatedMetadata.chromaNoiseReduction ?: ChromaDenoiseDefaults.forRawCapture(chromaNoiseReductionValue) val rawResult = try { - val imageLayout = finalStackResult.bufferLayout.toDngImageLayout() - val inputSamplesPerPixel = finalStackResult.inputColStepSamples - val inputRowStepSamples = finalStackResult.inputRowStepSamples + val imageLayout = SuperResolutionDngWriter.ImageLayout.LINEAR_RAW_RGB + val inputSamplesPerPixel = 3 + val inputRowStepSamples = finalStackResult.width * inputSamplesPerPixel val dngDefaultCrop = RawProcessor.resolveCameraRawDefaultCrop( width = finalStackResult.width, height = finalStackResult.height, @@ -3087,27 +3139,23 @@ object GalleryManager { ) val profileStartMs = System.currentTimeMillis() val dngProfilePreparation = RawProcessor.prepareRawDngProfile( - rawBuffer = finalStackResult.fusedBayerBuffer, - gpuLinearRgbSource = finalStackResult.gpuLinearRgbSource, + rawBuffer = defaultDenoised.linearRgb16, + gpuLinearRgbSource = null, width = finalStackResult.width, height = finalStackResult.height, characteristics = characteristics, captureResult = captureResult, cfaPattern = rawMetadata.cfaPattern, - blackLevel = finalStackResult.blackLevel, - whiteLevel = stackWhiteLevel, - valueDomain = if (finalStackResult.isNormalizedSensorData) { - RawProcessor.RawBufferValueDomain.NORMALIZED_SENSOR_RANGE - } else { - RawProcessor.RawBufferValueDomain.SENSOR - }, + blackLevel = FloatArray(4), + whiteLevel = 65535, + valueDomain = RawProcessor.RawBufferValueDomain.NORMALIZED_SENSOR_RANGE, cfaCorrectionMode = stackedMetadata.rawCfaCorrectionMode, baselineExposureEv = finalStackResult.baselineExposureEv, imageLayout = imageLayout, inputRowStepSamples = inputRowStepSamples, inputColStepSamples = inputSamplesPerPixel, pixelsIncludeLensShadingCorrection = - finalStackResult.lensShadingCorrectionApplied, + defaultDenoised.pixelsIncludeLensShadingCorrection, options = profileOptions, defaultCrop = dngDefaultCrop, ) @@ -3125,10 +3173,10 @@ object GalleryManager { fusedBayerBuffer = fusedBayerBuffer, width = finalStackResult.width, height = finalStackResult.height, - rawMetadata = rawMetadata, - stackBlackLevel = finalStackResult.blackLevel, - stackWhiteLevel = stackWhiteLevel, - isNormalizedSensorData = finalStackResult.isNormalizedSensorData, + rawMetadata = stackedRawMetadata, + stackBlackLevel = FloatArray(4), + stackWhiteLevel = 65535, + isNormalizedSensorData = true, characteristics = characteristics, captureResult = captureResult, rotation = rotation, @@ -3139,37 +3187,18 @@ object GalleryManager { shouldAutoSave = shouldAutoSave, exportDngWithRawExport = exportDngWithRawExport, imageLayout = imageLayout, - compression = finalStackResult.bufferLayout.toDngCompression(), + compression = SuperResolutionDngWriter.Compression.JPEG_LOSSLESS, inputRowStepSamples = inputRowStepSamples, inputColStepSamples = inputSamplesPerPixel, pixelsIncludeLensShadingCorrection = - finalStackResult.lensShadingCorrectionApplied, + defaultDenoised.pixelsIncludeLensShadingCorrection, baselineExposureEv = finalStackResult.baselineExposureEv, preparedDngProfile = dngProfilePreparation, preparedProfileOptions = profileOptions, ) - suspend fun materializeAndPersistDng(): Boolean { - val initialBuffer = finalStackResult.fusedBayerBuffer - val materializedBuffer = initialBuffer - ?: finalStackResult.gpuLinearRgbSource?.let { source -> - processor.materializeGpuLinearRgbSource(source) - } - if (materializedBuffer == null) { - PLog.e(TAG, "No CPU LinearRaw source available for stacked DNG") - return false - } - return try { - persistDng(materializedBuffer) - } finally { - if (materializedBuffer === finalStackResult.fusedBayerBuffer) { - releaseInitialFusedBuffer() - } else if (finalStackResult.fusedBayerUsesNativeAllocator) { - LargeDirectBuffer.free(materializedBuffer) - PLog.d(TAG, "Released deferred stacked RAW CPU buffer") - } - } - } + suspend fun materializeAndPersistDng(): Boolean = + persistDng(defaultDenoised.linearRgb16) suspend fun renderPersistedDng() = processor.processForHdrSources( context, @@ -3200,13 +3229,6 @@ object GalleryManager { rawToneMappingParameters = updatedMetadata.rawToneMappingParameters, rawCfaCorrectionMode = updatedMetadata.rawCfaCorrectionMode, rawBlackBorderCrop = updatedMetadata.rawBlackBorderCrop, - sourceFrameCount = if ( - finalStackResult.bufferLayout == RawStackBufferLayout.CFA - ) { - finalStackResult.mergedFrameCount - } else { - null - }, spectralFilmStock = updatedMetadata.spectralFilmStock, spectralFilmPrint = updatedMetadata.spectralFilmPrint, spectralFilmTuning = SpectralFilmTuning( @@ -3217,10 +3239,7 @@ object GalleryManager { onMetadata = { raw -> updatedMetadata = updatedMetadata.merge(raw) }, ) - val directBufferCompatible = finalStackResult.bufferLayout == RawStackBufferLayout.LINEAR_RGB && - finalStackResult.isNormalizedSensorData && - inputSamplesPerPixel != null && inputSamplesPerPixel in 3..4 && - inputRowStepSamples != null && + val directBufferCompatible = RawProcessor.canRenderLinearDngBufferDirectly( width = finalStackResult.width, height = finalStackResult.height, @@ -3232,7 +3251,7 @@ object GalleryManager { height = finalStackResult.height, characteristics = characteristics, captureResult = captureResult, - baseMetadata = rawMetadata, + baseMetadata = stackedRawMetadata, defaultCrop = dngDefaultCrop, rotation = rotation, profilePreparation = dngProfilePreparation, @@ -3258,12 +3277,12 @@ object GalleryManager { val renderStartMs = System.currentTimeMillis() val inMemoryResult = processor.processLinearDngBufferForHdrSources( context = context, - rawData = finalStackResult.fusedBayerBuffer, + rawData = defaultDenoised.linearRgb16, width = finalStackResult.width, height = finalStackResult.height, - rowStride = checkNotNull(inputRowStepSamples) * Short.SIZE_BYTES, - samplesPerPixel = checkNotNull(inputSamplesPerPixel), - gpuLinearRgbSource = finalStackResult.gpuLinearRgbSource, + rowStride = inputRowStepSamples * Short.SIZE_BYTES, + samplesPerPixel = inputSamplesPerPixel, + gpuLinearRgbSource = null, metadata = checkNotNull(renderMetadata), aspectRatio = aspectRatio, cropRegion = updatedMetadata.cropRegion, @@ -3342,8 +3361,8 @@ object GalleryManager { } else { PLog.w( TAG, - "RAW_LINEAR_DNG_BYPASS unavailable layout=${finalStackResult.bufferLayout} " + - "normalized=${finalStackResult.isNormalizedSensorData} " + + "RAW_LINEAR_DNG_BYPASS unavailable layout=LINEAR_RGB " + + "normalized=true " + "bufferCompatible=$directBufferCompatible embeddedProfile=${embeddedRenderPlan != null}; " + "using persisted DNG" ) @@ -3356,11 +3375,7 @@ object GalleryManager { renderPersistedDng() ?: return@withContext } } finally { - // A deferred DNG owns its materialized buffer. The initial buffer is released - // here only when no DNG task consumed it (for example, an early render failure). - if (pendingDngWrite == null) { - releaseInitialFusedBuffer() - } + releaseInitialFusedBuffer() } var bitmap = rawResult.sdrBitmap @@ -3473,6 +3488,11 @@ object GalleryManager { } } releaseStackCpuBuffer?.invoke() + defaultDenoisedBufferToRelease?.let { buffer -> + LargeDirectBuffer.free(buffer) + defaultDenoisedBufferToRelease = null + PLog.d(TAG, "Released MGC default-denoised LinearRaw buffer") + } stackProcessor?.releaseGpuLinearRgbSource(gpuSourceToRelease) } } diff --git a/app/src/main/java/com/hinnka/mycamera/processor/GlesMgcRawSpatialStacker.kt b/app/src/main/java/com/hinnka/mycamera/processor/GlesMgcRawSpatialStacker.kt index 0aa69411..bfb09cef 100644 --- a/app/src/main/java/com/hinnka/mycamera/processor/GlesMgcRawSpatialStacker.kt +++ b/app/src/main/java/com/hinnka/mycamera/processor/GlesMgcRawSpatialStacker.kt @@ -252,6 +252,11 @@ internal class GlesMgcRawSpatialStacker( } val referenceExposure = validExposureProduct(frames.first().exposureProduct) + val supportsEqualExposureDenoiseModel = frames.all { frame -> + frame.role == RawBurstFrameRole.NORMAL && + validExposureProduct(frame.exposureProduct) == referenceExposure + } + val mergeFactors = ArrayList(frames.size).apply { add(1f) } val referenceCalibration = calibrationForFrame( frame = frames.first(), exposureScale = 1f, @@ -579,6 +584,7 @@ internal class GlesMgcRawSpatialStacker( accumulatorGb = accumulatorGb, useFrameWeight = true, ) + mergeFactors += meanR8Mask(mergeWeight, "Spatial merge weight frame $index") mergedFrames += 1 GlesGpuScheduler.yieldToUiRenderer() } finally { @@ -607,6 +613,14 @@ internal class GlesMgcRawSpatialStacker( cpuOutput = readBayer16(bayer16) checkGlError("MGC Spatial Bayer merge") } + val denoiseModel = if ( + supportsEqualExposureDenoiseModel && + mergeFactors.size == mergedFrames + ) { + MgcSpatialDenoiseModel.fromEqualExposureMergeFactors(mergeFactors) + } else { + null + } returned = true PLog.i( TAG, @@ -617,7 +631,11 @@ internal class GlesMgcRawSpatialStacker( exportedTexture != 0 -> "RGBA16UI_GPU" outputMode == MgcSpatialOutputMode.RGB -> "RGB16_CPU" else -> "BAYER16_CPU" - }}", + }} " + + "denoiseNoiseModel=${denoiseModel?.let { + "average=${it.averageMergeFactor} effective=${it.effectiveMergeFactor} " + + "scale=${it.noiseScale}" + } ?: "unsupported-bracketed"}", ) RawStackResult( fusedBayerBuffer = cpuOutput, @@ -647,6 +665,8 @@ internal class GlesMgcRawSpatialStacker( lensShadingCorrectionApplied = outputMode == MgcSpatialOutputMode.RGB && hasLensShading(), mergedFrameCount = mergedFrames, + mgcDenoiseCorrelation = denoiseModel?.correlation, + mgcDenoiseNoiseScale = denoiseModel?.noiseScale, ) } catch (error: Exception) { PLog.e(TAG, "MGC Spatial Bayer merge failed", error) @@ -1264,6 +1284,13 @@ internal class GlesMgcRawSpatialStacker( return ByteArray(byteCount.toInt()).also { output -> buffer.get(output) } } + private fun meanR8Mask(texture: Int, label: String): Float { + val mask = readR8Mask(texture, label) + var sum = 0L + mask.forEach { value -> sum += value.toInt() and 0xff } + return (sum.toDouble() / 255.0 / mask.size.toDouble()).toFloat() + } + private fun assessBentoMasks( baseHighlightMask: ByteArray, inpaintingMask: ByteArray, diff --git a/app/src/main/java/com/hinnka/mycamera/processor/MgcSpatialDenoiseModel.kt b/app/src/main/java/com/hinnka/mycamera/processor/MgcSpatialDenoiseModel.kt new file mode 100644 index 00000000..4839aa3a --- /dev/null +++ b/app/src/main/java/com/hinnka/mycamera/processor/MgcSpatialDenoiseModel.kt @@ -0,0 +1,133 @@ +package com.hinnka.mycamera.processor + +import kotlin.math.cos +import kotlin.math.exp +import kotlin.math.max + +/** + * Recovered output-noise specialization for an equal-exposure MGC Spatial merge. + * + * Sources in MGC 9.6.080 V24 libgcastartup.so: + * - 0x363769c/0x3638a38: each merge factor is sum(R8 mask)/(255 * pixelCount); + * - 0x3633330: empirical 128-bin correlation curve; + * - 0x3634ef8..0x3635124: reference/merged correlation combination and normalization. + * + * Exposure-bracketed noise-model combination is intentionally not represented here. + */ +internal object MgcSpatialDenoiseModel { + private const val SPECTRUM_SIZE = 128 + private const val TWO_PI = 2.0 * Math.PI + + data class Result( + val correlation: FloatArray, + val noiseScale: Float, + val averageMergeFactor: Float, + val effectiveMergeFactor: Float, + ) + + fun fromEqualExposureMergeFactors(mergeFactors: List): Result? { + if (mergeFactors.isEmpty() || + mergeFactors.first() != 1f || + mergeFactors.any { !it.isFinite() || it < 0f || it > 1f } + ) { + return null + } + var effectiveMergeFactor = 0f + mergeFactors.forEach { effectiveMergeFactor += it } + if (!(effectiveMergeFactor > 0f) || !effectiveMergeFactor.isFinite()) { + return null + } + val averageMergeFactor = effectiveMergeFactor / mergeFactors.size.toFloat() + if (!(averageMergeFactor > 0f) || !averageMergeFactor.isFinite()) { + return null + } + + val spatialCorrelation = makeSpatialCorrelation(averageMergeFactor) + val referenceCorrelation = makeReferenceCorrelation(averageMergeFactor) + val mergedCorrelation = FloatArray(SPECTRUM_SIZE) + var meanEnergy = 0f + for (index in 0 until SPECTRUM_SIZE) { + // Exact structure at 0x36350c0: + // (reference + (effective - 1) * spatial) / effective. + val value = ( + referenceCorrelation[index] + + (effectiveMergeFactor - 1f) * spatialCorrelation[index] + ) / effectiveMergeFactor + if (!value.isFinite()) return null + mergedCorrelation[index] = value + meanEnergy += value + } + meanEnergy /= SPECTRUM_SIZE.toFloat() + if (!(meanEnergy > 0f) || !meanEnergy.isFinite()) return null + val inverseEnergy = 1f / meanEnergy + for (index in mergedCorrelation.indices) { + mergedCorrelation[index] *= inverseEnergy + } + return Result( + correlation = mergedCorrelation, + noiseScale = 1f / effectiveMergeFactor, + averageMergeFactor = averageMergeFactor, + effectiveMergeFactor = effectiveMergeFactor, + ) + } + + private fun makeSpatialCorrelation(averageMergeFactor: Float): FloatArray { + if (averageMergeFactor <= 0.2f) { + return FloatArray(SPECTRUM_SIZE) { 1f } + } + + val baseLogistic = expf( + -13.976620674f * (averageMergeFactor - 0.395f), + ) + val base = baseLogistic * 1.122f / (baseLogistic + 1f) - 0.0467f + + // 0x36333d4..0x363341c: this logistic controls the Gaussian width. + // The previous translation accidentally paired its center/slope with the amplitude + // constants below, which allowed the reconstructed power spectrum to become negative. + val sigmaLogistic = expf( + -8.142000198f * (averageMergeFactor - 0.658f), + ) + val sigma = + sigmaLogistic * 0.576f / (sigmaLogistic + 1f) + 0.872f + + // 0x3633420..0x36334a4: amplitude uses its own logistic for factors <= 0.4, + // then switches to the recovered quadratic. fmaxnm clamps only the amplitude. + val amplitudeLogistic = expf( + -4.495f * (averageMergeFactor - 0.0364f), + ) + var amplitude = 12.841f / (amplitudeLogistic + 1f) - 9.793f + if (averageMergeFactor > 0.4f) { + amplitude = + 20.916f * averageMergeFactor * averageMergeFactor - + 7.568f * averageMergeFactor + + 0.676f + } + amplitude = max(amplitude, 0f) + + val sigmaSquared = sigma * sigma + return FloatArray(SPECTRUM_SIZE) { index -> + val coordinate = centeredFrequency(index) + base + amplitude * expf(-0.5f * coordinate * coordinate / sigmaSquared) + } + } + + private fun makeReferenceCorrelation( + averageMergeFactor: Float, + ): FloatArray { + val variance = averageMergeFactor * averageMergeFactor + val edge = expf(-0.5f / variance) + return FloatArray(SPECTRUM_SIZE) { index -> + val response = + 1f + 2f * edge * cos(centeredFrequency(index).toDouble()).toFloat() + response * response + } + } + + private fun centeredFrequency(index: Int): Float = + ( + (index.toDouble() + 0.5) * TWO_PI / SPECTRUM_SIZE.toDouble() - + Math.PI + ).toFloat() + + private fun expf(value: Float): Float = exp(value.toDouble()).toFloat() +} diff --git a/app/src/main/java/com/hinnka/mycamera/processor/MultiFrameStacker.kt b/app/src/main/java/com/hinnka/mycamera/processor/MultiFrameStacker.kt index 1af0bb17..2a15408a 100644 --- a/app/src/main/java/com/hinnka/mycamera/processor/MultiFrameStacker.kt +++ b/app/src/main/java/com/hinnka/mycamera/processor/MultiFrameStacker.kt @@ -53,6 +53,19 @@ data class RawStackResult( /** True only when lens-shading gain has already been multiplied into the fused pixels. */ val lensShadingCorrectionApplied: Boolean = false, val mergedFrameCount: Int = 1, + /** + * MGC's normalized 128-bin spatial-merge correlation spectrum. + * + * This is produced from the actual quantized R8 merge masks. It is null when the stack + * contains exposure-bracketed inputs whose output noise-model combination has not been + * recovered. + */ + val mgcDenoiseCorrelation: FloatArray? = null, + /** + * Multiplicative scale for the reference shot/read coefficients after an equal-exposure + * Spatial merge. Null has the same unsupported meaning as [mgcDenoiseCorrelation]. + */ + val mgcDenoiseNoiseScale: Float? = null, ) enum class YuvHdrStackFrameRole { diff --git a/app/src/main/java/com/hinnka/mycamera/raw/MgcFullResolutionDenoise.kt b/app/src/main/java/com/hinnka/mycamera/raw/MgcFullResolutionDenoise.kt new file mode 100644 index 00000000..4e0ffa00 --- /dev/null +++ b/app/src/main/java/com/hinnka/mycamera/raw/MgcFullResolutionDenoise.kt @@ -0,0 +1,433 @@ +package com.hinnka.mycamera.raw + +import android.content.Context +import com.hinnka.mycamera.processor.RawNoiseModel +import com.hinnka.mycamera.utils.PLog +import java.nio.ByteBuffer +import kotlin.math.ln + +/** + * Host bridge for the non-AI MGC 9.6.080 V24 full-resolution denoise chain. + * + * RGB→YUV, ChromaDenoisePyramidComplete, Pecan luma, YUV→RGB and + * ComputeDenoiseStrengthMaps execute the mechanically lifted static kernels. + * The recovered MGC boundary keeps chroma as a sibling stage immediately + * before RunFullResolutionDenoise/Pecan. + * + * This class owns luma/chroma protobuf tuning selection and noise preparation. + * Multi-frame correlation and coefficient scaling must come from the Spatial + * merge's actual quantized masks, never from frame count. + */ +internal object MgcFullResolutionDenoise { + private const val TAG = "MgcFullResolutionDenoise" + private const val LUMA_TUNING_ASSET = + "mgc_denoise/luma_denoise_default.binarypb" + private const val CHROMA_TUNING_ASSET = + "mgc_denoise/chroma_denoise.binarypb" + + data class Tuning( + val strength: FloatArray, + val revertFactor: FloatArray, + val outlierDistance: FloatArray, + ) + + /** + * Spatial defaults consume the merge-propagated noise model exactly once before DNG write. + * User adjustment deliberately ignores every Spatial-only input and uses an identity + * correlation spectrum plus the slider-scaled protobuf strength. + */ + enum class Pass { + SPATIAL_DEFAULT, + USER_ADJUSTMENT, + } + + private data class TuningPoint( + val gain: Float, + val tuning: Tuning, + ) + + @Volatile + private var initialized = false + @Volatile + private var initializationFailed = false + private var lumaTuningPoints: List = emptyList() + private var chromaTuningPoints: List = emptyList() + + @Synchronized + fun ensureInitialized(context: Context): Boolean { + if (initialized) return true + if (initializationFailed) return false + return runCatching { + val assets = context.applicationContext.assets + val lumaTuningBytes = + assets.open(LUMA_TUNING_ASSET).use { it.readBytes() } + val chromaTuningBytes = + assets.open(CHROMA_TUNING_ASSET).use { it.readBytes() } + lumaTuningPoints = parseTuning(lumaTuningBytes) + chromaTuningPoints = parseTuning(chromaTuningBytes) + check(lumaTuningPoints.size >= 2) { + "MGC luma tuning contains fewer than two gain points" + } + check(chromaTuningPoints.size >= 2) { + "MGC chroma tuning contains fewer than two gain points" + } + initialized = true + PLog.i( + TAG, + "MGC RunFullResolutionDenoise static kernels ready: " + + "lumaGains=${lumaTuningPoints.map { it.gain }} " + + "chromaGains=${chromaTuningPoints.map { it.gain }}", + ) + true + }.onFailure { error -> + initializationFailed = true + PLog.e(TAG, "Unable to initialize MGC RunFullResolutionDenoise", error) + }.getOrDefault(false) + } + + /** + * Runs MGC RunFullResolutionDenoise in place on camera-domain RGBA16F. + * Camera RGB pixels have already received LSC in the demosaic stage; the + * LSC map is consumed only by MGC's strength-map kernel. + */ + fun denoise( + rgba16f: ByteBuffer, + width: Int, + height: Int, + globalOriginX: Int, + globalOriginY: Int, + fullWidth: Int, + fullHeight: Int, + metadata: RawMetadata, + tuningGain: Float, + pass: Pass, + lumaStrengthScale: Float, + chromaStrengthScale: Float, + ): Boolean { + val finiteLumaScale = lumaStrengthScale + .takeIf { it.isFinite() } + ?.coerceAtLeast(0f) + ?: 0f + val finiteChromaScale = chromaStrengthScale + .takeIf { it.isFinite() } + ?.coerceAtLeast(0f) + ?: 0f + val lumaEnabled = finiteLumaScale > 0f + val chromaEnabled = finiteChromaScale > 0f + if (!initialized || !rgba16f.isDirect || width <= 0 || height <= 0 || + (!lumaEnabled && !chromaEnabled) + ) { + return false + } + val useSpatialModel = pass == Pass.SPATIAL_DEFAULT + val correlation = if (useSpatialModel) { + metadata.mgcDenoiseCorrelation + } else { + null + } + if (useSpatialModel && metadata.frameCount > 1 && + (correlation == null || metadata.mgcDenoiseNoiseScale == null) + ) { + PLog.w( + TAG, + "MGC denoise skipped: fused frameCount=${metadata.frameCount} " + + "has no complete propagated merge noise model", + ) + return false + } + if (correlation != null && + (correlation.size != 128 || + correlation.any { !it.isFinite() }) + ) { + PLog.e(TAG, "MGC denoise rejected malformed correlation spectrum") + return false + } + val noiseScale = if (useSpatialModel) { + metadata.mgcDenoiseNoiseScale ?: 1f + } else { + 1f + } + if (!noiseScale.isFinite() || noiseScale <= 0f) { + PLog.e(TAG, "MGC denoise rejected noise scale=$noiseScale") + return false + } + + val rawNoise = RawNoiseModel.fromCamera2NoiseProfile( + metadata.channelNoiseProfile.takeIf { it.size >= 2 } + ?: metadata.noiseProfile, + ) + val shot = rawNoise.normalizedShotNoiseForShader(metadata.cfaPattern) + val read = rawNoise.normalizedReadNoiseForShader(metadata.cfaPattern) + if (shot.none { it > 0f } && read.none { it > 0f }) { + PLog.w(TAG, "MGC denoise skipped: RAW noise profile is unavailable") + return false + } + val rgbShot = bayerNoiseToRgb(shot, noiseScale) + val rgbRead = bayerNoiseToRgb(read, noiseScale) + val lumaTuning = interpolateTuning(tuningGain, lumaTuningPoints) + .withStrengthScale(finiteLumaScale) + val chromaTuning = interpolateTuning(tuningGain, chromaTuningPoints) + .withStrengthScale(finiteChromaScale) + rgba16f.clear() + val result = nativeDenoiseRgba16f( + rgbaBuffer = rgba16f, + width = width, + height = height, + globalOriginX = globalOriginX, + globalOriginY = globalOriginY, + fullWidth = fullWidth, + fullHeight = fullHeight, + lensShading = metadata.lensShadingMap.takeIf { useSpatialModel }, + lensWidth = if (useSpatialModel) metadata.lensShadingMapWidth else 0, + lensHeight = if (useSpatialModel) metadata.lensShadingMapHeight else 0, + normalizedRgbShot = rgbShot, + normalizedRgbRead = rgbRead, + correlation = correlation, + lumaEnabled = lumaEnabled, + chromaEnabled = chromaEnabled, + lumaStrength = lumaTuning.strength, + lumaOutlierDistance = lumaTuning.outlierDistance, + lumaRevertFactor = lumaTuning.revertFactor, + chromaStrength = chromaTuning.strength, + chromaOutlierThreshold = chromaTuning.outlierDistance, + ) + rgba16f.position(0) + if (result != 0) { + PLog.e( + TAG, + "MGC static denoise kernel failed: " + + "result=0x${result.toString(16)} size=${width}x$height " + + "origin=($globalOriginX,$globalOriginY) " + + "luma=$lumaEnabled chroma=$chromaEnabled", + ) + return false + } + PLog.d( + TAG, + "MGC static denoise complete: size=${width}x$height " + + "origin=($globalOriginX,$globalOriginY) gain=$tuningGain pass=$pass " + + "luma=$lumaEnabled($finiteLumaScale) " + + "chroma=$chromaEnabled($finiteChromaScale) " + + "rgbShot=${rgbShot.contentToString()} " + + "rgbRead=${rgbRead.contentToString()} noiseScale=$noiseScale " + + "lsc=${if (useSpatialModel) { + "${metadata.lensShadingMapWidth}x${metadata.lensShadingMapHeight}" + } else { + "disabled-for-user-adjustment" + }} " + + "correlation=${if (correlation == null) "single-frame-identity" else "propagated"}", + ) + return true + } + + private fun Tuning.withStrengthScale(scale: Float): Tuning = copy( + strength = FloatArray(strength.size) { index -> strength[index] * scale }, + revertFactor = revertFactor.copyOf(), + outlierDistance = outlierDistance.copyOf(), + ) + + private fun bayerNoiseToRgb( + channels: FloatArray, + scale: Float, + ): FloatArray { + val red = channels.getOrElse(0) { 0f } + val green = 0.5f * ( + channels.getOrElse(1) { 0f } + + channels.getOrElse(2) { channels.getOrElse(1) { 0f } } + ) + val blue = channels.getOrElse(3) { 0f } + return floatArrayOf(red * scale, green * scale, blue * scale) + } + + private fun interpolateTuning( + gain: Float, + points: List, + ): Tuning { + val finiteGain = gain.takeIf { it.isFinite() && it > 0f } + ?: points.first().gain + val upperIndex = points.indexOfFirst { it.gain >= finiteGain } + if (upperIndex <= 0) return points.first().tuning.copyArrays() + if (upperIndex < 0) return points.last().tuning.copyArrays() + val lower = points[upperIndex - 1] + val upper = points[upperIndex] + val logLower = ln(lower.gain) + val amount = ( + (ln(finiteGain) - logLower) / + (ln(upper.gain) - logLower) + ).coerceIn(0f, 1f) + fun interpolate( + first: FloatArray, + second: FloatArray, + ): FloatArray = FloatArray(5) { index -> + first[index] + (second[index] - first[index]) * amount + } + return Tuning( + strength = interpolate( + lower.tuning.strength, + upper.tuning.strength, + ), + revertFactor = interpolate( + lower.tuning.revertFactor, + upper.tuning.revertFactor, + ), + outlierDistance = interpolate( + lower.tuning.outlierDistance, + upper.tuning.outlierDistance, + ), + ) + } + + private fun Tuning.copyArrays(): Tuning = Tuning( + strength.copyOf(), + revertFactor.copyOf(), + outlierDistance.copyOf(), + ) + + private class ProtoReader( + private val bytes: ByteArray, + private var position: Int = 0, + private val limit: Int = bytes.size, + ) { + fun hasRemaining(): Boolean = position < limit + + fun readTag(): Pair { + val tag = readVarint().toInt() + return (tag ushr 3) to (tag and 7) + } + + fun readMessage(): ProtoReader { + val length = readVarint().toInt() + require(length >= 0 && position + length <= limit) + val child = ProtoReader(bytes, position, position + length) + position += length + return child + } + + fun readFixed32Float(): Float { + require(position + 4 <= limit) + val bits = + (bytes[position].toInt() and 0xff) or + ((bytes[position + 1].toInt() and 0xff) shl 8) or + ((bytes[position + 2].toInt() and 0xff) shl 16) or + ((bytes[position + 3].toInt() and 0xff) shl 24) + position += 4 + return Float.fromBits(bits) + } + + fun skip(wireType: Int) { + when (wireType) { + 0 -> readVarint() + 1 -> position += 8 + 2 -> position += readVarint().toInt() + 5 -> position += 4 + else -> error("Unsupported protobuf wire type $wireType") + } + require(position <= limit) + } + + private fun readVarint(): Long { + var result = 0L + var shift = 0 + while (shift < 64) { + require(position < limit) + val value = bytes[position++].toInt() and 0xff + result = result or ((value and 0x7f).toLong() shl shift) + if (value and 0x80 == 0) return result + shift += 7 + } + error("Malformed protobuf varint") + } + } + + private fun parseTuning(bytes: ByteArray): List { + val result = ArrayList() + val root = ProtoReader(bytes) + while (root.hasRemaining()) { + val (field, wire) = root.readTag() + if (field != 1 || wire != 2) { + root.skip(wire) + continue + } + val point = root.readMessage() + val strength = ArrayList(5) + val revert = ArrayList(5) + val outlier = ArrayList(5) + var gain: Float? = null + while (point.hasRemaining()) { + val (pointField, pointWire) = point.readTag() + when { + pointField == 1 && pointWire == 2 -> { + val level = point.readMessage() + var levelStrength = 0f + var levelRevert = 0f + var levelOutlier = 0f + while (level.hasRemaining()) { + val (levelField, levelWire) = level.readTag() + if (levelWire != 5) { + level.skip(levelWire) + continue + } + when (levelField) { + 1 -> levelStrength = level.readFixed32Float() + 2 -> levelRevert = level.readFixed32Float() + 3 -> levelOutlier = level.readFixed32Float() + else -> level.skip(levelWire) + } + } + strength += levelStrength + revert += levelRevert + outlier += levelOutlier + } + + pointField == 2 && pointWire == 2 -> { + val gainMessage = point.readMessage() + while (gainMessage.hasRemaining()) { + val (gainField, gainWire) = gainMessage.readTag() + if (gainField == 1 && gainWire == 5) { + gain = gainMessage.readFixed32Float() + } else { + gainMessage.skip(gainWire) + } + } + } + + else -> point.skip(pointWire) + } + } + require(strength.size == 5 && revert.size == 5 && outlier.size == 5) + val pointGain = requireNotNull(gain) + result += TuningPoint( + gain = pointGain, + tuning = Tuning( + strength.toFloatArray(), + revert.toFloatArray(), + outlier.toFloatArray(), + ), + ) + } + return result.sortedBy(TuningPoint::gain) + } + + private external fun nativeDenoiseRgba16f( + rgbaBuffer: ByteBuffer, + width: Int, + height: Int, + globalOriginX: Int, + globalOriginY: Int, + fullWidth: Int, + fullHeight: Int, + lensShading: FloatArray?, + lensWidth: Int, + lensHeight: Int, + normalizedRgbShot: FloatArray, + normalizedRgbRead: FloatArray, + correlation: FloatArray?, + lumaEnabled: Boolean, + chromaEnabled: Boolean, + lumaStrength: FloatArray, + lumaOutlierDistance: FloatArray, + lumaRevertFactor: FloatArray, + chromaStrength: FloatArray, + chromaOutlierThreshold: FloatArray, + ): Int +} diff --git a/app/src/main/java/com/hinnka/mycamera/raw/RawDemosaicProcessor.kt b/app/src/main/java/com/hinnka/mycamera/raw/RawDemosaicProcessor.kt index 1fb970cf..0beefd53 100644 --- a/app/src/main/java/com/hinnka/mycamera/raw/RawDemosaicProcessor.kt +++ b/app/src/main/java/com/hinnka/mycamera/raw/RawDemosaicProcessor.kt @@ -71,6 +71,11 @@ private data class ShadowsHighlightsParams( } } +internal data class MgcSpatialDefaultDenoiseResult( + val linearRgb16: ByteBuffer, + val pixelsIncludeLensShadingCorrection: Boolean, +) + /** * RAW 图像解马赛克处理器 * @@ -196,6 +201,9 @@ class RawDemosaicProcessor { afRegions = baseMetadata?.afRegions, defaultCrop = defaultCrop, frameCount = baseMetadata?.frameCount ?: 1, + mgcDenoiseCorrelation = baseMetadata?.mgcDenoiseCorrelation, + mgcDenoiseNoiseScale = baseMetadata?.mgcDenoiseNoiseScale, + mgcDenoiseTuningGain = baseMetadata?.mgcDenoiseTuningGain, rotation = dngRawData.rotation, profileGainTableMap = baseMetadata?.profileGainTableMap ) @@ -829,6 +837,328 @@ class RawDemosaicProcessor { } } + /** + * Consumes the Spatial merge noise model exactly once and materializes the persisted DNG + * pixels. Bayer input is converted to un-white-balanced camera RGB first; Spatial RGB input + * stays in the same camera domain. The extracted MGC luma/chroma chain then runs at its + * protobuf default strength before the result is quantized as standard LinearRaw RGB16. + */ + internal suspend fun materializeMgcSpatialDefaultDenoisedLinearRgb( + context: Context, + rawData: ByteBuffer?, + width: Int, + height: Int, + rowStride: Int, + samplesPerPixel: Int, + gpuLinearRgbSource: GpuLinearRgbSource?, + metadata: RawMetadata, + sourcePixelsIncludeLensShadingCorrection: Boolean, + applyLensShadingCorrection: Boolean, + ): MgcSpatialDefaultDenoiseResult? = withContext(glDispatcher) { + val rgbaBytes = width.toLong() * height.toLong() * 4L * Short.SIZE_BYTES + val rgbBytes = width.toLong() * height.toLong() * 3L * Short.SIZE_BYTES + val validGeometry = width > 0 && height > 0 && + rgbaBytes in 1..Int.MAX_VALUE.toLong() && + rgbBytes in 1..Int.MAX_VALUE.toLong() + val validLayout = samplesPerPixel == 1 || samplesPerPixel in 3..4 + val validSource = rawData != null || gpuLinearRgbSource != null + val validSpatialModel = metadata.frameCount > 1 && + metadata.mgcDenoiseCorrelation?.size == 128 && + metadata.mgcDenoiseNoiseScale?.let { it.isFinite() && it > 0f } == true + if (!validGeometry || !validLayout || !validSource || rowStride <= 0 || + !validSpatialModel + ) { + PLog.e( + TAG, + "MGC Spatial default denoise rejected input: size=${width}x$height " + + "rowStride=$rowStride samples=$samplesPerPixel source=${when { + gpuLinearRgbSource != null -> "GPU" + rawData != null -> "CPU" + else -> "none" + }} frames=${metadata.frameCount} " + + "correlation=${metadata.mgcDenoiseCorrelation?.size ?: 0} " + + "noiseScale=${metadata.mgcDenoiseNoiseScale}", + ) + return@withContext null + } + if (gpuLinearRgbSource != null) { + val validGpuSource = gpuLinearRgbSource.textureId != 0 && + gpuLinearRgbSource.width == width && + gpuLinearRgbSource.height == height && + gpuLinearRgbSource.samplesPerPixel == samplesPerPixel && + exportedStackTextureIds.contains(gpuLinearRgbSource.textureId) + if (!validGpuSource) { + PLog.e( + TAG, + "MGC Spatial default denoise rejected GPU source " + + "texture=${gpuLinearRgbSource.textureId} " + + "source=${gpuLinearRgbSource.width}x${gpuLinearRgbSource.height}" + + "x${gpuLinearRgbSource.samplesPerPixel} " + + "expected=${width}x${height}x$samplesPerPixel", + ) + return@withContext null + } + } + if (!isInitialized && !initializeOnGlThread()) { + PLog.e(TAG, "Unable to initialize RAW context for MGC Spatial default denoise") + return@withContext null + } + if (width > maxTextureSize || height > maxTextureSize) { + PLog.e( + TAG, + "MGC Spatial default denoise input ${width}x$height exceeds " + + "GL_MAX_TEXTURE_SIZE=$maxTextureSize", + ) + return@withContext null + } + if (!MgcFullResolutionDenoise.ensureInitialized(context)) { + PLog.e(TAG, "MGC Spatial default denoise kernels are unavailable") + return@withContext null + } + + val hasLensShading = hasValidLensShadingMap(metadata) + val isBayerInput = samplesPerPixel == 1 + val applyLensShadingToBayer = + isBayerInput && applyLensShadingCorrection && hasLensShading + if (!isBayerInput && applyLensShadingCorrection && hasLensShading && + !sourcePixelsIncludeLensShadingCorrection + ) { + PLog.e( + TAG, + "Spatial RGB requested LSC but its pixels do not contain LSC; " + + "refusing to invent a second RGB correction path", + ) + return@withContext null + } + val outputIncludesLensShading = + sourcePixelsIncludeLensShadingCorrection || applyLensShadingToBayer + val pixelPreparationMetadata = if (applyLensShadingToBayer) { + metadata + } else { + metadata.copy( + lensShadingMap = null, + lensShadingMapWidth = 0, + lensShadingMapHeight = 0, + lensShadingMapGrid = null, + ) + } + val denoiseMetadata = if (outputIncludesLensShading && hasLensShading) { + metadata + } else { + metadata.copy( + lensShadingMap = null, + lensShadingMapWidth = 0, + lensShadingMapHeight = 0, + lensShadingMapGrid = null, + ) + } + + val rgbaReadback = LargeDirectBuffer.allocate( + rgbaBytes, + "MGC Spatial default denoise RGBA16F", + )?.order(ByteOrder.nativeOrder()) ?: return@withContext null + var packedOutput: ByteBuffer? = null + var completed = false + var borrowedTexture = false + val totalStartNs = System.nanoTime() + try { + setupFullResFramebuffer(width, height) + val preparationStartNs = System.nanoTime() + val sourceLabel = when { + gpuLinearRgbSource != null -> { + GLES31.glMemoryBarrier( + GLES31.GL_SHADER_IMAGE_ACCESS_BARRIER_BIT or + GLES31.GL_FRAMEBUFFER_BARRIER_BIT or + GLES31.GL_TEXTURE_FETCH_BARRIER_BIT, + ) + gpuLinearRgbSource.stackCompletionTimeline?.awaitPending( + syncPoint = "SPATIAL_DEFAULT_DENOISE", + checkGlError = ::checkGlError, + ) + GlesGpuCompletion.awaitSubmittedWork( + label = "Spatial RGB before default denoise", + checkGlError = ::checkGlError, + ) + if (rawTextureId != 0 && + rawTextureId != gpuLinearRgbSource.textureId + ) { + GLES30.glDeleteTextures(1, intArrayOf(rawTextureId), 0) + } + rawTextureId = gpuLinearRgbSource.textureId + borrowedTexture = true + renderLinearRawRgbToTexture( + sourceTextureId = rawTextureId, + sourceSamplesPerPixel = samplesPerPixel, + targetTextureId = demosaicTextureId, + width = width, + height = height, + ) + "SPATIAL_RGB_GPU" + } + + samplesPerPixel in 3..4 -> { + uploadLinearRawRgbTextureFromBuffer( + buffer = requireNotNull(rawData).duplicate() + .order(ByteOrder.nativeOrder()), + width = width, + height = height, + rowStride = rowStride, + samplesPerPixel = samplesPerPixel, + ) + renderLinearRawRgbToTexture( + sourceTextureId = rawTextureId, + sourceSamplesPerPixel = samplesPerPixel, + targetTextureId = demosaicTextureId, + width = width, + height = height, + ) + "SPATIAL_RGB_CPU" + } + + RawMetadata.isQuadBayer(metadata.cfaPattern) -> { + uploadRawTextureFromBuffer( + buffer = requireNotNull(rawData).duplicate() + .order(ByteOrder.nativeOrder()), + width = width, + height = height, + rowStride = rowStride, + ) + check(ensureQuadBayerPrograms()) { + "Unable to initialize Quad Bayer programs for Spatial default denoise" + } + runQuadBayerDemosaic( + metadata = pixelPreparationMetadata, + width = width, + height = height, + highlightReconstructionEnabled = true, + ) + "SPATIAL_QUAD_BAYER" + } + + else -> { + check(metadata.cfaPattern in RawMetadata.CFA_RGGB..RawMetadata.CFA_BGGR) { + "Unsupported Spatial Bayer CFA=${metadata.cfaPattern}" + } + uploadRawTextureFromBuffer( + buffer = requireNotNull(rawData).duplicate() + .order(ByteOrder.nativeOrder()), + width = width, + height = height, + rowStride = rowStride, + ) + check(ensureStandardBayerRcdPrograms()) { + "Unable to initialize Standard Bayer RCD programs for Spatial default denoise" + } + runStandardBayerRcdDemosaic( + metadata = pixelPreparationMetadata, + width = width, + height = height, + ) + "SPATIAL_BAYER_RCD" + } + } + val preparationMs = (System.nanoTime() - preparationStartNs) / 1_000_000L + + GLES30.glBindBuffer(GLES30.GL_PIXEL_PACK_BUFFER, 0) + GLES30.glBindFramebuffer(GLES30.GL_FRAMEBUFFER, demosaicFramebufferId) + check( + GLES30.glCheckFramebufferStatus(GLES30.GL_FRAMEBUFFER) == + GLES30.GL_FRAMEBUFFER_COMPLETE + ) { "MGC Spatial default denoise readback framebuffer is incomplete" } + GLES30.glPixelStorei(GLES30.GL_PACK_ALIGNMENT, 8) + rgbaReadback.clear() + rgbaReadback.limit(rgbaBytes.toInt()) + val readbackStartNs = System.nanoTime() + GLES30.glReadPixels( + 0, + 0, + width, + height, + GLES30.GL_RGBA, + GLES30.GL_HALF_FLOAT, + rgbaReadback, + ) + checkGlError("MGC Spatial default denoise camera RGB readback") + rgbaReadback.position(0) + val readbackMs = (System.nanoTime() - readbackStartNs) / 1_000_000L + + val tuningGain = metadata.mgcDenoiseTuningGain + ?: ( + metadata.iso.toFloat() / 100f * + metadata.postRawSensitivityBoost + ).coerceAtLeast(0.001f) + val nativeStartNs = System.nanoTime() + check( + MgcFullResolutionDenoise.denoise( + rgba16f = rgbaReadback, + width = width, + height = height, + globalOriginX = 0, + globalOriginY = 0, + fullWidth = width, + fullHeight = height, + metadata = denoiseMetadata, + tuningGain = tuningGain, + pass = MgcFullResolutionDenoise.Pass.SPATIAL_DEFAULT, + lumaStrengthScale = 1f, + chromaStrengthScale = 1f, + ) + ) { "MGC Spatial default luma/chroma denoise failed" } + val nativeMs = (System.nanoTime() - nativeStartNs) / 1_000_000L + + val output = LargeDirectBuffer.allocate( + rgbBytes, + "MGC Spatial default denoised LinearRaw RGB16", + )?.order(ByteOrder.nativeOrder()) + ?: error("Unable to allocate MGC default-denoised LinearRaw buffer") + packedOutput = output + rgbaReadback.position(0) + output.clear() + val packStartNs = System.nanoTime() + check( + DirectBufferPixelPacker.packRgba16fToRgb16( + source = rgbaReadback, + width = width, + height = height, + destination = output, + ) + ) { "Unable to quantize MGC default-denoised LinearRaw pixels" } + output.rewind() + val packMs = (System.nanoTime() - packStartNs) / 1_000_000L + completed = true + PLog.i( + TAG, + "MGC Spatial default denoise materialized: source=$sourceLabel " + + "size=${width}x$height pass=SPATIAL_DEFAULT luma=1.0 chroma=1.0 " + + "frames=${metadata.frameCount} noiseScale=${metadata.mgcDenoiseNoiseScale} " + + "lscIn=$sourcePixelsIncludeLensShadingCorrection " + + "lscAppliedToBayer=$applyLensShadingToBayer " + + "lscOut=$outputIncludesLensShading " + + "prepareMs=$preparationMs readbackMs=$readbackMs " + + "nativeMs=$nativeMs packMs=$packMs " + + "totalMs=${(System.nanoTime() - totalStartNs) / 1_000_000L}", + ) + MgcSpatialDefaultDenoiseResult( + linearRgb16 = output, + pixelsIncludeLensShadingCorrection = outputIncludesLensShading, + ) + } catch (error: Exception) { + PLog.e(TAG, "Failed to materialize MGC Spatial default denoise", error) + null + } finally { + GLES30.glPixelStorei(GLES30.GL_PACK_ALIGNMENT, 1) + GLES30.glBindFramebuffer(GLES30.GL_FRAMEBUFFER, 0) + GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, 0) + if (borrowedTexture) { + rawTextureId = 0 + } + LargeDirectBuffer.free(rgbaReadback) + if (!completed) { + LargeDirectBuffer.free(packedOutput) + } + } + } + // EGL 资源 private var eglDisplay: EGLDisplay = EGL14.EGL_NO_DISPLAY private var eglContext: EGLContext = EGL14.EGL_NO_CONTEXT @@ -1022,6 +1352,7 @@ class RawDemosaicProcessor { ) private data class RawTileRenderConfig( + val context: Context, val rowStride: Int, val fullWidth: Int, val fullHeight: Int, @@ -1439,7 +1770,6 @@ class RawDemosaicProcessor { rawToneMappingParameters: RawToneMappingParameters = RawToneMappingParameters.DEFAULT, rawCfaCorrectionMode: String? = null, rawBlackBorderCrop: RawBlackBorderCrop = RawBlackBorderCrop(), - sourceFrameCount: Int? = null, onMetadata: ((RawMetadata) -> Unit)? = null ): RawHdrRenderResult? = withContext(glDispatcher) { val dngFile = File(dngFilePath) @@ -1482,7 +1812,6 @@ class RawDemosaicProcessor { rawCfaCorrectionMode = rawCfaCorrectionMode, rawBlackBorderCrop = rawBlackBorderCrop, dngFile = dngFile, - sourceFrameCountOverride = sourceFrameCount, onMetadata = onMetadata, includeHdrReference = true ) @@ -1685,7 +2014,6 @@ class RawDemosaicProcessor { onCaptureProfilePrepared: ((RawDngCaptureProfileResult?) -> Unit)? = null, sourceDngRenderPlan: DcpRenderPlan? = null, defaultCropIsAuthoritative: Boolean = false, - sourceFrameCountOverride: Int? = null, ): RawHdrRenderResult? = withContext(glDispatcher) { var actualRawData = rawData var actualWidth = width @@ -1781,10 +2109,11 @@ class RawDemosaicProcessor { rawCfaCorrectionMode = rawCfaCorrectionMode ).copy( profileGainTableMap = profileGainTableMap ?: actualMetadata?.profileGainTableMap, - frameCount = maxOf( - actualMetadata?.frameCount ?: 1, - sourceFrameCountOverride?.coerceAtLeast(1) ?: 1, - ), + // A persisted DNG is a new editing source. Spatial merge state is consumed only + // by the pre-write default pass and must never leak into later slider edits. + frameCount = 1, + mgcDenoiseCorrelation = null, + mgcDenoiseNoiseScale = null, ) profileGainTableMap?.let { PLog.d( @@ -2530,6 +2859,7 @@ class RawDemosaicProcessor { val tiledResult = renderRawTiles( rawData = requireNotNull(tiledRawData), config = RawTileRenderConfig( + context = context.applicationContext, rowStride = actualRowStride, fullWidth = actualWidth, fullHeight = actualHeight, @@ -2616,26 +2946,35 @@ class RawDemosaicProcessor { null } - // Chroma denoise runs first in the un-white-balanced camera RGB domain, - // where the DNG/Camera2 R/B noise model is valid. It writes to the spare - // full-resolution texture and preserves green while filtering R-G/B-G. - val chromaDenoiseTextureId = renderDefaultChromaDenoise( + val mgcDenoiseComplete = renderMgcUserAdjustmentDenoise( + context = context.applicationContext, sourceTextureId = demosaicTextureId, width = actualWidth, height = actualHeight, metadata = actualMetadata, - chromaDenoiseValue = chromaDenoiseValue, - ) - - // darktable denoiseprofile follows chroma denoise and still runs before - // input color conversion. Its VST returns un-white-balanced camera RGB. - renderDenoiseProfilePass( - sourceTextureId = chromaDenoiseTextureId, - width = actualWidth, - height = actualHeight, - metadata = actualMetadata, denoiseValue = denoiseValue, + chromaDenoiseValue = chromaDenoiseValue, + globalOriginX = 0, + globalOriginY = 0, + fullImageWidth = actualWidth, + fullImageHeight = actualHeight, ) + if (!mgcDenoiseComplete) { + val fallbackChromaTextureId = renderDefaultChromaDenoise( + sourceTextureId = demosaicTextureId, + width = actualWidth, + height = actualHeight, + metadata = actualMetadata, + chromaDenoiseValue = chromaDenoiseValue, + ) + renderDenoiseProfilePass( + sourceTextureId = fallbackChromaTextureId, + width = actualWidth, + height = actualHeight, + metadata = actualMetadata, + denoiseValue = denoiseValue, + ) + } val denoiseProfileTextureId = gfTexId[1] // AdobeCurve keeps BaselineExposure for the DNG SDK exposure ramp. HNCS consumes // it through ColorCorrectAll's camera-domain inputEV; other linear engines retain @@ -3039,20 +3378,35 @@ class RawDemosaicProcessor { } } - val chromaDenoiseTextureId = renderDefaultChromaDenoise( + val mgcDenoiseComplete = renderMgcUserAdjustmentDenoise( + context = config.context, sourceTextureId = demosaicTextureId, width = workWidth, height = workHeight, metadata = config.metadata, - chromaDenoiseValue = config.chromaDenoiseValue, - ) - renderDenoiseProfilePass( - sourceTextureId = chromaDenoiseTextureId, - width = workWidth, - height = workHeight, - metadata = config.metadata, denoiseValue = config.denoiseValue, + chromaDenoiseValue = config.chromaDenoiseValue, + globalOriginX = working.left, + globalOriginY = working.top, + fullImageWidth = config.fullWidth, + fullImageHeight = config.fullHeight, ) + if (!mgcDenoiseComplete) { + val fallbackChromaTextureId = renderDefaultChromaDenoise( + sourceTextureId = demosaicTextureId, + width = workWidth, + height = workHeight, + metadata = config.metadata, + chromaDenoiseValue = config.chromaDenoiseValue, + ) + renderDenoiseProfilePass( + sourceTextureId = fallbackChromaTextureId, + width = workWidth, + height = workHeight, + metadata = config.metadata, + denoiseValue = config.denoiseValue, + ) + } renderLinearRcdPass( metadata = config.metadata, sourceTextureId = gfTexId[1], @@ -4742,9 +5096,6 @@ class RawDemosaicProcessor { GLES30.glDeleteShader(fShaderSharpen) } - // 2.7 NLM Programs - initNLMPrograms(vShader) - // 2.75 RAW 默认色度降噪 Programs val fShaderChromaDenoiseGuide = compileShader( @@ -5531,7 +5882,8 @@ class RawDemosaicProcessor { /** * 初始化 darktable denoiseprofile compute 着色器。 */ - private fun initNLMPrograms(vShader: Int) { + private fun ensureLegacyDenoiseProfilePrograms(): Boolean { + if (isDenoiseProfileReady()) return true denoisePreconditionV2Program = compileComputeProgram( DenoiseProfileShaders.PRECONDITION_V2, "DenoiseProfile_Precondition_V2" @@ -5545,15 +5897,22 @@ class RawDemosaicProcessor { PLog.d( TAG, - "DenoiseProfile NLM programs: preRgb=$denoisePreconditionV2Program " + + "Legacy DenoiseProfile fallback programs: preRgb=$denoisePreconditionV2Program " + "init=$denoiseNlmInitProgram fusedAccu=$denoiseNlmFusedAccuProgram " + "finish=$denoiseNlmFinishProgram" ) + return isDenoiseProfileReady() } - private fun setupNLMFramebuffers(width: Int, height: Int) { + private fun setupNLMFramebuffers( + width: Int, + height: Int, + setupLegacyAccumulator: Boolean = true, + ) { if (gfWidth == width && gfHeight == height && gfTexId[0] != 0) { - setupDenoiseProfileResources(width, height) + if (setupLegacyAccumulator) { + setupDenoiseProfileResources(width, height) + } return } gfWidth = width @@ -5608,8 +5967,10 @@ class RawDemosaicProcessor { gfTexId[i] = t[0]; gfFboId[i] = f[0] } checkGlError("setup DenoiseProfile textures") - setupDenoiseProfileResources(width, height) - checkGlError("setup DenoiseProfile resources") + if (setupLegacyAccumulator) { + setupDenoiseProfileResources(width, height) + checkGlError("setup DenoiseProfile resources") + } } private fun setupDenoiseProfileResources(width: Int, height: Int) { @@ -5747,7 +6108,11 @@ class RawDemosaicProcessor { val h = ChromaDenoiseDefaults.noiseBandwidth(strength) val edgeGuidanceRelaxation = ChromaDenoiseDefaults.edgeGuidanceRelaxation(strength) - setupNLMFramebuffers(width, height) + setupNLMFramebuffers( + width, + height, + setupLegacyAccumulator = false, + ) renderChromaDenoiseLuminanceGuide(sourceTextureId, width, height) val guideTextureId = gfTexId[0] val identityMatrix = FloatArray(16) @@ -5854,6 +6219,158 @@ class RawDemosaicProcessor { checkGlError("RAW chroma denoise luminance guide") } + /** + * Executes the extracted non-AI MGC chroma pyramid and/or Pecan luma stage. + * + * Camera RGB is already lens-shading corrected by demosaic. The LSC grid is + * consumed only by ComputeDenoiseStrengthMaps and is never multiplied into + * pixels again. Chroma and luma retain independent user switches. + */ + private fun renderMgcUserAdjustmentDenoise( + context: Context, + sourceTextureId: Int, + width: Int, + height: Int, + metadata: RawMetadata, + denoiseValue: Float?, + chromaDenoiseValue: Float?, + globalOriginX: Int, + globalOriginY: Int, + fullImageWidth: Int, + fullImageHeight: Int, + ): Boolean { + val lumaEnabled = (denoiseValue ?: 0f) > 0f + val chromaEnabled = (chromaDenoiseValue ?: 0f) > 0f + val enabled = lumaEnabled || chromaEnabled + setupNLMFramebuffers( + width, + height, + setupLegacyAccumulator = false, + ) + if (width * height < 2) { + renderPassthroughToTexture( + sourceTextureId, + width, + height, + gfFboId[1], + ) + return true + } + if (!enabled) { + return false + } + if (!MgcFullResolutionDenoise.ensureInitialized(context)) { + PLog.w(TAG, "MGC RunFullResolutionDenoise is not initialized") + return false + } + + renderPassthroughToTexture( + sourceTextureId, + width, + height, + gfFboId[0], + ) + GLES30.glBindFramebuffer(GLES30.GL_FRAMEBUFFER, gfFboId[0]) + checkGlError("MGC denoise prepare camera RGB") + + val byteCountLong = + width.toLong() * height.toLong() * 4L * Short.SIZE_BYTES + if (byteCountLong <= 0L || byteCountLong > Int.MAX_VALUE) { + PLog.e(TAG, "MGC denoise readback size is invalid: $byteCountLong") + return false + } + val byteCount = byteCountLong.toInt() + val readback = try { + obtainReadbackBuffer(byteCount) + } catch (error: OutOfMemoryError) { + PLog.e( + TAG, + "Unable to allocate MGC denoise readback ${width}x$height", + error, + ) + return false + } + GLES30.glBindBuffer(GLES30.GL_PIXEL_PACK_BUFFER, 0) + GLES30.glPixelStorei(GLES30.GL_PACK_ALIGNMENT, 8) + readback.clear() + readback.limit(byteCount) + val readbackStartNs = System.nanoTime() + GLES30.glReadPixels( + 0, + 0, + width, + height, + GLES30.GL_RGBA, + GLES30.GL_HALF_FLOAT, + readback, + ) + checkGlError("MGC denoise camera RGB readback") + readback.position(0) + + val nativeStartNs = System.nanoTime() + val tuningGain = metadata.mgcDenoiseTuningGain + ?: ( + metadata.iso.toFloat() / 100.0f * + metadata.postRawSensitivityBoost + ).coerceAtLeast(0.001f) + if (!MgcFullResolutionDenoise.denoise( + rgba16f = readback, + width = width, + height = height, + globalOriginX = globalOriginX, + globalOriginY = globalOriginY, + fullWidth = fullImageWidth, + fullHeight = fullImageHeight, + metadata = metadata, + tuningGain = tuningGain, + pass = MgcFullResolutionDenoise.Pass.USER_ADJUSTMENT, + lumaStrengthScale = denoiseValue?.coerceIn(0f, 1f) ?: 0f, + chromaStrengthScale = + chromaDenoiseValue?.coerceIn(0f, 1f) ?: 0f, + ) + ) { + return false + } + + GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, gfTexId[0]) + GLES30.glPixelStorei(GLES30.GL_UNPACK_ALIGNMENT, 8) + readback.position(0) + readback.limit(byteCount) + GLES30.glTexSubImage2D( + GLES30.GL_TEXTURE_2D, + 0, + 0, + 0, + width, + height, + GLES30.GL_RGBA, + GLES30.GL_HALF_FLOAT, + readback, + ) + checkGlError("MGC denoise camera RGB upload") + + renderPassthroughToTexture( + gfTexId[0], + width, + height, + gfFboId[1], + ) + GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, 0) + GLES30.glBindFramebuffer(GLES30.GL_FRAMEBUFFER, 0) + checkGlError("MGC denoise output RGB") + PLog.d( + TAG, + "MGC static denoise timing size=${width}x$height " + + "pass=USER_ADJUSTMENT " + + "luma=$lumaEnabled(${denoiseValue?.coerceIn(0f, 1f) ?: 0f}) " + + "chroma=$chromaEnabled(" + + "${chromaDenoiseValue?.coerceIn(0f, 1f) ?: 0f}) " + + "readbackMs=${(nativeStartNs - readbackStartNs) / 1_000_000L} " + + "nativeMs=${(System.nanoTime() - nativeStartNs) / 1_000_000L}", + ) + return true + } + /** * 渲染 darktable denoiseprofile NLM 降噪。 * @@ -5869,7 +6386,7 @@ class RawDemosaicProcessor { ) { setupNLMFramebuffers(width, height) - if (!isDenoiseProfileReady()) { + if (!ensureLegacyDenoiseProfilePrograms()) { PLog.w(TAG, "DenoiseProfile programs not initialized, falling back to passthrough") renderPassthroughToTexture(sourceTextureId, width, height, gfFboId[1]) return @@ -6754,13 +7271,7 @@ class RawDemosaicProcessor { checkGlError(label) if (!waitForCpuReuse) return val startNs = System.nanoTime() - PLog.d(TAG, "RAW GPU checkpoint waiting label=$label") GlesGpuScheduler.waitForGpuCheckpoint(TAG, label) - PLog.d( - TAG, - "RAW GPU checkpoint complete label=$label " + - "elapsedMs=${(System.nanoTime() - startNs) / 1_000_000L}", - ) } internal fun createFramebufferForTexture(textureId: Int, label: String): Int { diff --git a/app/src/main/java/com/hinnka/mycamera/raw/RawMetadata.kt b/app/src/main/java/com/hinnka/mycamera/raw/RawMetadata.kt index 67a031c9..2eaac9d4 100644 --- a/app/src/main/java/com/hinnka/mycamera/raw/RawMetadata.kt +++ b/app/src/main/java/com/hinnka/mycamera/raw/RawMetadata.kt @@ -109,6 +109,15 @@ data class RawMetadata( val shutterSpeed: Long = 0L, val aperture: Float = 0f, val frameCount: Int = 1, + /** + * MGC's normalized 128-bin power-correlation spectrum after spatial merge. + * Null means either a single uncorrelated source or an unsupported propagated model. + */ + val mgcDenoiseCorrelation: FloatArray? = null, + /** Scale applied to shot/read coefficients by an equal-exposure MGC Spatial merge. */ + val mgcDenoiseNoiseScale: Float? = null, + /** Gain coordinate used by luma_denoise_default.binarypb. */ + val mgcDenoiseTuningGain: Float? = null, val rotation: Int? = null, val profileGainTableMap: DngProfileGainTableMap? = null ) { @@ -987,6 +996,12 @@ data class RawMetadata( if (iso != other.iso) return false if (shutterSpeed != other.shutterSpeed) return false if (frameCount != other.frameCount) return false + if (mgcDenoiseCorrelation != null) { + if (other.mgcDenoiseCorrelation == null) return false + if (!mgcDenoiseCorrelation.contentEquals(other.mgcDenoiseCorrelation)) return false + } else if (other.mgcDenoiseCorrelation != null) return false + if (mgcDenoiseNoiseScale != other.mgcDenoiseNoiseScale) return false + if (mgcDenoiseTuningGain != other.mgcDenoiseTuningGain) return false if (rotation != other.rotation) return false return true @@ -1011,6 +1026,9 @@ data class RawMetadata( result = 31 * result + iso result = 31 * result + shutterSpeed.hashCode() result = 31 * result + frameCount + result = 31 * result + (mgcDenoiseCorrelation?.contentHashCode() ?: 0) + result = 31 * result + (mgcDenoiseNoiseScale?.hashCode() ?: 0) + result = 31 * result + (mgcDenoiseTuningGain?.hashCode() ?: 0) result = 31 * result + (rotation ?: 0) return result } diff --git a/app/src/main/java/com/hinnka/mycamera/utils/DirectBufferPixelPacker.kt b/app/src/main/java/com/hinnka/mycamera/utils/DirectBufferPixelPacker.kt index 1f5bfe28..319c47ae 100644 --- a/app/src/main/java/com/hinnka/mycamera/utils/DirectBufferPixelPacker.kt +++ b/app/src/main/java/com/hinnka/mycamera/utils/DirectBufferPixelPacker.kt @@ -23,4 +23,18 @@ object DirectBufferPixelPacker { destinationLeft: Int, destinationTop: Int, ): Boolean + + /** + * Converts normalized RGBA16F camera RGB into packed unsigned RGB16. + * + * MGC's full-resolution denoise boundary is RGBA16F while a standard LinearRaw DNG stores + * unsigned RGB16 samples. Keeping this bulk conversion native avoids millions of direct-buffer + * accesses from Kotlin. + */ + external fun packRgba16fToRgb16( + source: ByteBuffer, + width: Int, + height: Int, + destination: ByteBuffer, + ): Boolean } diff --git a/app/src/test/java/com/hinnka/mycamera/processor/MgcSpatialDenoiseModelTest.kt b/app/src/test/java/com/hinnka/mycamera/processor/MgcSpatialDenoiseModelTest.kt new file mode 100644 index 00000000..2a430966 --- /dev/null +++ b/app/src/test/java/com/hinnka/mycamera/processor/MgcSpatialDenoiseModelTest.kt @@ -0,0 +1,155 @@ +package com.hinnka.mycamera.processor + +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNotNull +import org.junit.Assert.assertTrue +import org.junit.Test + +class MgcSpatialDenoiseModelTest { + @Test + fun equalExposureModelUsesActualEffectiveMergeFactor() { + val nullableResult = + MgcSpatialDenoiseModel.fromEqualExposureMergeFactors( + listOf(1f, 0.75f, 0.25f), + ) + assertNotNull(nullableResult) + val result = checkNotNull(nullableResult) + + assertEquals(2f, result.effectiveMergeFactor, 0f) + assertEquals(2f / 3f, result.averageMergeFactor, 1e-7f) + assertEquals(0.5f, result.noiseScale, 0f) + assertEquals(1.0, result.correlation.average(), 1e-5) + assertTrue(result.correlation.all { it.isFinite() && it >= 0f }) + for (index in 0 until 64) { + assertEquals( + result.correlation[index], + result.correlation[127 - index], + 2e-5f, + ) + } + } + + @Test + fun rejectsFactorsThatCannotComeFromEqualExposureR8MergeMasks() { + assertEquals( + null, + MgcSpatialDenoiseModel.fromEqualExposureMergeFactors( + listOf(0.9f, 0.5f), + ), + ) + assertEquals( + null, + MgcSpatialDenoiseModel.fromEqualExposureMergeFactors( + listOf(1f, 1.01f), + ), + ) + } + + @Test + fun highAcceptanceMergeKeepsEveryPyramidLevelAtPositiveEnergy() { + // Regression for the 20-frame device trace: + // average=0.8161901, effective=16.323803. The incorrectly paired logistic constants + // produced negative level-zero energy and made MGC BuildChromaNoiseBuffers fail. + val average = 0.8161901f + val effective = average * 20f + val remainingFactor = (effective - 1f) / 19f + val result = checkNotNull( + MgcSpatialDenoiseModel.fromEqualExposureMergeFactors( + listOf(1f) + List(19) { remainingFactor }, + ), + ) + + assertTrue(result.correlation.all { it.isFinite() && it >= 0f }) + var spectrum = result.correlation + val expectedDownsampledEnergy = floatArrayOf( + 1.7234538f, + 1.3296090f, + 1.1721125f, + 1.0857906f, + ) + val expectedNativeEnergy = floatArrayOf( + 0.7600923f, + 0.4364758f, + 0.3620128f, + 0.3255170f, + ) + val expectedPyramidEnergy = floatArrayOf( + 0.8330758f, + 0.9613993f, + 0.9919459f, + 1.0061622f, + ) + repeat(4) { + assertEquals( + expectedDownsampledEnergy[it], + downsamplingEnergy(spectrum, xFactor = 2, yFactor = 0), + 2e-4f, + ) + assertEquals( + expectedNativeEnergy[it], + downsamplingEnergy(spectrum, xFactor = 1, yFactor = 0), + 2e-4f, + ) + val advanced = advancePyramidCorrelation(spectrum) + assertEquals(expectedPyramidEnergy[it], advanced.second, 2e-4f) + spectrum = advanced.first + } + } + + private fun downsamplingEnergy( + spectrum: FloatArray, + xFactor: Int, + yFactor: Int, + ): Float { + var total = 0.0 + for (outer in 0 until 128) { + var innerSum = 0.0 + for (inner in 0 until 128) { + val wrapped = (outer * yFactor + inner * xFactor) and 127 + val angle = + wrapped.toDouble() * Math.PI / 64.0 - + (xFactor + yFactor).toDouble() * Math.PI + val cosine = kotlin.math.cos(angle) + val response = + (1.0 - cosine * cosine) + + (cosine - 1.0) * (cosine - 1.0) + innerSum += spectrum[inner] * response + } + total += innerSum * spectrum[outer] + } + return (total / 16384.0).toFloat() + } + + private fun advancePyramidCorrelation( + spectrum: FloatArray, + ): Pair { + val filter = floatArrayOf( + -3f / 128f, + -7f / 128f, + 17f / 128f, + 57f / 128f, + 57f / 128f, + 17f / 128f, + -7f / 128f, + -3f / 128f, + ) + val filtered = FloatArray(128) + var energy = 0.0 + for (frequency in 0 until 128) { + var real = 0.0 + var imaginary = 0.0 + val omega = + (frequency.toDouble() + 0.5) * 2.0 * Math.PI / 128.0 - + Math.PI + for (tap in filter.indices) { + real += filter[tap] * kotlin.math.cos(omega * tap) + imaginary -= filter[tap] * kotlin.math.sin(omega * tap) + } + filtered[frequency] = + spectrum[frequency] * (real * real + imaginary * imaginary).toFloat() + energy += filtered[frequency] + } + val meanEnergy = (energy / 128.0).toFloat() + return FloatArray(128) { filtered[it] / meanEnergy } to meanEnergy + } +} diff --git a/scripts/research/analyze_mgc_full_resolution_denoise.py b/scripts/research/analyze_mgc_full_resolution_denoise.py new file mode 100644 index 00000000..469d0ae8 --- /dev/null +++ b/scripts/research/analyze_mgc_full_resolution_denoise.py @@ -0,0 +1,373 @@ +#!/usr/bin/env python3 +"""Analyze the verified MGC full-resolution denoise static closure. + +This is intentionally a mechanical analyzer, not a reimplementation. It +records the exact arm64 Halide code ranges, every constant page referenced by +ADRP, link-time task relocations, host callbacks and recovered ABI from the +pinned MGC 9.6.080 V24 libgcastartup.so. The output is research metadata only; +it contains no executable payload and is never packaged by the Android app. +""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import struct +from dataclasses import dataclass +from pathlib import Path + + +SOURCE_SHA256 = "2103c54ebba1627733b79e3646105595ed1ccefa2b1629f63fb7e1785a48d6a0" +PAGE_SIZE = 4096 +MANIFEST_FORMAT = "mgc-full-resolution-denoise-static-lift-v1" +SHT_RELA = 4 +R_AARCH64_RELATIVE = 0x403 +HALIDE_DO_PAR_FOR = 0x05A7FEF0 +RGB_TO_YUV_NOISE_MATRIX_VADDR = 0x0D64C24 +RUN_FULL_RESOLUTION_DENOISE_ENTRY = 0x04670524 +RUN_FULL_RESOLUTION_DENOISE_CALLER = 0x0466A3A0 +PECAN_LUMA_WRAPPER_ENTRY = 0x04EDE4E0 + + +@dataclass(frozen=True) +class CodeRange: + name: str + start: int + entry: int + end: int + + +CODE_RANGES = ( + CodeRange("BayerRawToYuv1xS16", 0x049C3484, 0x049C7B64, 0x049CAA54), + CodeRange("RgbRawToYuv1xS16", 0x04A17EA8, 0x04A198B8, 0x04A1C3E8), + CodeRange( + "ChromaDenoisePyramidCompleteS16", + 0x04BE28CC, + 0x04BE28CC, + 0x04BE8764, + ), + CodeRange( + "ChromaDenoisePyramidLevelS16", + 0x04BEE520, + 0x04BF1874, + 0x04BF1878, + ), + CodeRange( + "ChromaDenoisePyramidDownsampleS16", + 0x04BF4CDC, + 0x04C394A0, + 0x04C394BC, + ), + CodeRange("YuvToRgbS16", 0x04CE4F50, 0x04CE554C, 0x04CE61B4), + CodeRange("PecanLumaDenoiseS16", 0x04EF0000, 0x04EF1760, 0x04F1BB2C), + CodeRange( + "ComputeDenoiseStrengthMapsU16", + 0x054DBE04, + 0x054DCD34, + 0x054DE730, + ), +) + +# Successful oracle runs reached only malloc/free/trace/par-for. memset is +# retained as a known Halide runtime target for callers whose dimensions select +# a different generated schedule. +HOST_TARGETS = { + 0x05EF2634: "halide_malloc", + 0x05EF2650: "halide_free", + 0x05EF54BC: "halide_trace", + 0x05A7FEF0: "halide_do_par_for", + 0x05FB8540: "memset", +} + + +def page_floor(value: int) -> int: + return value & ~(PAGE_SIZE - 1) + + +def page_ceil(value: int) -> int: + return (value + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1) + + +def sign_extend(value: int, bits: int) -> int: + sign = 1 << (bits - 1) + return (value ^ sign) - sign + + +def adrp_target(pc: int, instruction: int) -> int: + immediate = (((instruction >> 5) & 0x7FFFF) << 2) | ( + (instruction >> 29) & 0x3 + ) + return page_floor(pc) + (sign_extend(immediate, 21) << 12) + + +def branch_target(pc: int, instruction: int) -> int: + return pc + (sign_extend(instruction & 0x03FFFFFF, 26) << 2) + + +def is_adrp(instruction: int) -> bool: + return instruction & 0x9F000000 == 0x90000000 + + +def is_direct_branch(instruction: int) -> bool: + return instruction & 0xFC000000 in (0x14000000, 0x94000000) + + +def source_slice(source: bytes, start: int, size: int) -> bytes: + # All selected pages belong to the first two PT_LOAD segments, whose file + # offset equals virtual address in this pinned ELF. + end = start + size + if start < 0 or end > len(source): + raise ValueError(f"source range 0x{start:x}..0x{end:x} is unavailable") + return source[start:end] + + +def do_par_for_task_slot( + source: bytes, + code_range: CodeRange, + call_pc: int, +) -> int: + """Recover the task-table slot loaded into x1 for one do_par_for call.""" + load_pc = None + load_instruction = 0 + for pc in range(call_pc - 4, max(code_range.start, call_pc - 32), -4): + instruction = struct.unpack_from("> 10) & 0xFFF) * 8 + return target_page + byte_offset + raise ValueError( + f"task load at 0x{load_pc:x} has no preceding ADRP x1" + ) + + +def iter_elf64_rela(source: bytes): + """Yield (offset, type, addend) from every ELF64 SHT_RELA section.""" + if ( + source[:4] != b"\x7fELF" + or source[4] != 2 + or source[5] != 1 + ): + raise ValueError("source is not a little-endian ELF64 image") + section_offset = struct.unpack_from(" None: + source = source_path.read_bytes() + source_digest = hashlib.sha256(source).hexdigest() + if source_digest != SOURCE_SHA256: + raise ValueError( + "refusing a different libgcastartup.so: " + f"expected {SOURCE_SHA256}, got {source_digest}" + ) + + pages: set[int] = set() + direct_targets: dict[str, set[int]] = {} + do_par_for_calls: list[tuple[CodeRange, int]] = [] + for code_range in CODE_RANGES: + for page in range( + page_floor(code_range.start), + page_ceil(code_range.end), + PAGE_SIZE, + ): + pages.add(page) + + targets: set[int] = set() + code = source_slice( + source, + code_range.start, + code_range.end - code_range.start, + ) + for offset in range(0, len(code) - 3, 4): + instruction = struct.unpack_from(" None: + parser = argparse.ArgumentParser() + parser.add_argument("source", type=Path) + parser.add_argument("manifest", type=Path) + args = parser.parse_args() + analyze(args.source, args.manifest) + + +if __name__ == "__main__": + main() diff --git a/scripts/research/generate_mgc_denoise_static_asm.py b/scripts/research/generate_mgc_denoise_static_asm.py new file mode 100644 index 00000000..d24ebd87 --- /dev/null +++ b/scripts/research/generate_mgc_denoise_static_asm.py @@ -0,0 +1,388 @@ +#!/usr/bin/env python3 +"""Lift the pinned MGC Halide closure into normal link-time assembly. + +The generated source contains no executable bytes of its own. It uses +``.incbin`` to select the verified code/constant pages from libgcastartup.so +and replaces every page-relative or cross-range reference with a standard ELF +relocation. Android's normal linker therefore owns code placement and +relocation; no runtime page container, mmap, mprotect, or branch patching is +required. + +This is a mechanical binary lift. It intentionally does not translate the +Halide schedule into a hand-written approximation. +""" + +from __future__ import annotations + +import argparse +import hashlib +import json +import struct +from dataclasses import dataclass +from pathlib import Path + + +SOURCE_SHA256 = "2103c54ebba1627733b79e3646105595ed1ccefa2b1629f63fb7e1785a48d6a0" +PAGE_SIZE = 4096 + + +@dataclass(frozen=True) +class CodeRange: + name: str + start: int + entry: int + end: int + symbol: str | None = None + + +CODE_RANGES = ( + CodeRange("BayerRawToYuv1xS16", 0x049C3484, 0x049C7B64, 0x049CAA54), + CodeRange( + "RgbRawToYuv1xS16", + 0x04A17EA8, + 0x04A198B8, + 0x04A1C3E8, + "photon_mgc_rgb_raw_to_yuv_s16", + ), + CodeRange( + "ChromaDenoisePyramidCompleteS16", + 0x04BE28CC, + 0x04BE28CC, + 0x04BE8764, + "photon_mgc_chroma_denoise_pyramid_complete_s16", + ), + CodeRange( + "ChromaDenoisePyramidLevelS16", + 0x04BEE520, + 0x04BF1874, + 0x04BF1878, + ), + CodeRange( + "ChromaDenoisePyramidDownsampleS16", + 0x04BF4CDC, + 0x04C394A0, + 0x04C394BC, + ), + CodeRange( + "YuvToRgbS16", + 0x04CE4F50, + 0x04CE554C, + 0x04CE61B4, + "photon_mgc_yuv_to_rgb_s16", + ), + CodeRange( + "PecanLumaDenoiseS16", + 0x04EF0000, + 0x04EF1760, + 0x04F1BB2C, + "photon_mgc_pecan_luma_denoise_s16", + ), + CodeRange( + "ComputeDenoiseStrengthMapsU16", + 0x054DBE04, + 0x054DCD34, + 0x054DE730, + "photon_mgc_compute_denoise_strength_maps_u16", + ), +) + +HOST_TARGETS = { + 0x05EF2634: "photon_mgc_halide_malloc", + 0x05EF2650: "photon_mgc_halide_free", + 0x05EF54BC: "photon_mgc_halide_trace", + 0x05A7FEF0: "photon_mgc_halide_do_par_for", + 0x05FB8540: "memset", +} + + +def page_floor(value: int) -> int: + return value & ~(PAGE_SIZE - 1) + + +def page_ceil(value: int) -> int: + return (value + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1) + + +def sign_extend(value: int, bits: int) -> int: + sign = 1 << (bits - 1) + return (value ^ sign) - sign + + +def adrp_target(pc: int, instruction: int) -> int: + immediate = (((instruction >> 5) & 0x7FFFF) << 2) | ( + (instruction >> 29) & 0x3 + ) + return page_floor(pc) + (sign_extend(immediate, 21) << 12) + + +def adr_target(pc: int, instruction: int) -> int: + immediate = (((instruction >> 5) & 0x7FFFF) << 2) | ( + (instruction >> 29) & 0x3 + ) + return pc + sign_extend(immediate, 21) + + +def branch_target(pc: int, instruction: int) -> int: + return pc + (sign_extend(instruction & 0x03FFFFFF, 26) << 2) + + +def relative_imm19_target(pc: int, instruction: int) -> int: + return pc + (sign_extend((instruction >> 5) & 0x7FFFF, 19) << 2) + + +def relative_imm14_target(pc: int, instruction: int) -> int: + return pc + (sign_extend((instruction >> 5) & 0x3FFF, 14) << 2) + + +def range_for(address: int) -> CodeRange | None: + return next( + (item for item in CODE_RANGES if item.start <= address < item.end), + None, + ) + + +def address_symbol(address: int) -> str: + return f"photon_mgc_address_{address:x}" + + +def page_symbol(address: int) -> str: + return f"photon_mgc_page_{address:x}" + + +def error_symbol(address: int) -> str: + return f"photon_mgc_halide_error_{address:x}" + + +def emit_incbin(lines: list[str], start: int, end: int) -> None: + if end <= start: + return + lines.append( + f' .incbin "@MGC_GCASTARTUP_SO@", 0x{start:x}, 0x{end - start:x}' + ) + + +def validate_local_pc_relative( + code_range: CodeRange, + pc: int, + instruction: int, +) -> None: + target: int | None = None + kind = "" + if instruction & 0x9F000000 == 0x10000000: + target = adr_target(pc, instruction) + kind = "ADR" + elif instruction & 0x3B000000 == 0x18000000: + target = relative_imm19_target(pc, instruction) + kind = "literal load" + elif instruction & 0xFF000010 == 0x54000000: + target = relative_imm19_target(pc, instruction) + kind = "conditional branch" + elif instruction & 0x7E000000 == 0x34000000: + target = relative_imm19_target(pc, instruction) + kind = "compare branch" + elif instruction & 0x7E000000 == 0x36000000: + target = relative_imm14_target(pc, instruction) + kind = "test branch" + if target is not None and not ( + page_floor(code_range.start) + <= target + < page_ceil(code_range.end) + ): + raise ValueError( + f"{kind} at 0x{pc:x} escapes {code_range.name}: 0x{target:x}" + ) + + +def generate(source_path: Path, manifest_path: Path, output_path: Path) -> None: + source = source_path.read_bytes() + digest = hashlib.sha256(source).hexdigest() + if digest != SOURCE_SHA256: + raise ValueError( + f"expected libgcastartup.so {SOURCE_SHA256}, got {digest}" + ) + manifest = json.loads(manifest_path.read_text(encoding="utf-8")) + pages = {int(value, 16) for value in manifest["pages"]} + task_relocations = { + int(location, 16): int(target, 16) + for location, target in manifest["task_relocations"].items() + } + expected_task_count = manifest["do_par_for_call_count"] + if len(task_relocations) != expected_task_count: + raise ValueError( + f"manifest records {expected_task_count} do_par_for calls but " + f"{len(task_relocations)} task relocations" + ) + + code_pages: set[int] = set() + labels: dict[int, list[str]] = {} + patches: dict[int, str] = {} + external_error_targets: set[int] = set() + + for code_range in CODE_RANGES: + section_start = page_floor(code_range.start) + section_end = page_ceil(code_range.end) + code_pages.update(range(section_start, section_end, PAGE_SIZE)) + if code_range.symbol is not None: + labels.setdefault(code_range.entry, []).append(code_range.symbol) + labels.setdefault(code_range.entry, []).append( + address_symbol(code_range.entry) + ) + + for pc in range(code_range.start, code_range.end, 4): + instruction = struct.unpack_from(" None: + parser = argparse.ArgumentParser() + parser.add_argument("source", type=Path) + parser.add_argument("manifest", type=Path) + parser.add_argument("output", type=Path) + args = parser.parse_args() + generate(args.source, args.manifest, args.output) + + +if __name__ == "__main__": + main() diff --git a/scripts/research/mgc_denoise/mgc_full_resolution_denoise.json b/scripts/research/mgc_denoise/mgc_full_resolution_denoise.json new file mode 100644 index 00000000..fd80897c --- /dev/null +++ b/scripts/research/mgc_denoise/mgc_full_resolution_denoise.json @@ -0,0 +1,887 @@ +{ + "code_ranges": [ + { + "end": "0x49caa54", + "entry": "0x49c7b64", + "name": "BayerRawToYuv1xS16", + "start": "0x49c3484" + }, + { + "end": "0x4a1c3e8", + "entry": "0x4a198b8", + "name": "RgbRawToYuv1xS16", + "start": "0x4a17ea8" + }, + { + "end": "0x4be8764", + "entry": "0x4be28cc", + "name": "ChromaDenoisePyramidCompleteS16", + "start": "0x4be28cc" + }, + { + "end": "0x4bf1878", + "entry": "0x4bf1874", + "name": "ChromaDenoisePyramidLevelS16", + "start": "0x4bee520" + }, + { + "end": "0x4c394bc", + "entry": "0x4c394a0", + "name": "ChromaDenoisePyramidDownsampleS16", + "start": "0x4bf4cdc" + }, + { + "end": "0x4ce61b4", + "entry": "0x4ce554c", + "name": "YuvToRgbS16", + "start": "0x4ce4f50" + }, + { + "end": "0x4f1bb2c", + "entry": "0x4ef1760", + "name": "PecanLumaDenoiseS16", + "start": "0x4ef0000" + }, + { + "end": "0x54de730", + "entry": "0x54dcd34", + "name": "ComputeDenoiseStrengthMapsU16", + "start": "0x54dbe04" + } + ], + "direct_external_targets": { + "BayerRawToYuv1xS16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + }, + { + "host": "halide_error_path", + "target": "0x5ef6c38" + } + ], + "ChromaDenoisePyramidCompleteS16": [ + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef604c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6140" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef668c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + } + ], + "ChromaDenoisePyramidDownsampleS16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef668c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + } + ], + "ChromaDenoisePyramidLevelS16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef668c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + } + ], + "ComputeDenoiseStrengthMapsU16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + }, + { + "host": "memset", + "target": "0x5fb8540" + } + ], + "PecanLumaDenoiseS16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef604c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6140" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef668c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + }, + { + "host": "halide_error_path", + "target": "0x5ef6c38" + }, + { + "host": "halide_error_path", + "target": "0x5ef6cd0" + }, + { + "host": "halide_error_path", + "target": "0x5ef7030" + } + ], + "RgbRawToYuv1xS16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_malloc", + "target": "0x5ef2634" + }, + { + "host": "halide_free", + "target": "0x5ef2650" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a74" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + } + ], + "YuvToRgbS16": [ + { + "host": "halide_do_par_for", + "target": "0x5a7fef0" + }, + { + "host": "halide_trace", + "target": "0x5ef54bc" + }, + { + "host": "halide_error_path", + "target": "0x5ef61ac" + }, + { + "host": "halide_error_path", + "target": "0x5ef6294" + }, + { + "host": "halide_error_path", + "target": "0x5ef636c" + }, + { + "host": "halide_error_path", + "target": "0x5ef63f8" + }, + { + "host": "halide_error_path", + "target": "0x5ef64dc" + }, + { + "host": "halide_error_path", + "target": "0x5ef6568" + }, + { + "host": "halide_error_path", + "target": "0x5ef6600" + }, + { + "host": "halide_error_path", + "target": "0x5ef6794" + }, + { + "host": "halide_error_path", + "target": "0x5ef6a94" + }, + { + "host": "halide_error_path", + "target": "0x5ef6b6c" + }, + { + "host": "halide_error_path", + "target": "0x5ef6bd8" + } + ] + }, + "do_par_for_call_count": 12, + "format": "mgc-full-resolution-denoise-static-lift-v1", + "page_count": 181, + "page_size": 4096, + "pages": [ + "0x6a8000", + "0x6a9000", + "0x6aa000", + "0x6ab000", + "0x6ac000", + "0x6ad000", + "0x6ae000", + "0x6af000", + "0x6b0000", + "0x6b1000", + "0x6b2000", + "0x6b4000", + "0x6b5000", + "0x6b6000", + "0x6b7000", + "0x6b9000", + "0x6ba000", + "0x6bc000", + "0x6bd000", + "0xd4d000", + "0xd51000", + "0xd5f000", + "0xd60000", + "0xd61000", + "0xd62000", + "0xd65000", + "0xf36000", + "0xf37000", + "0xf38000", + "0xf39000", + "0xf3a000", + "0x10a9000", + "0x49c3000", + "0x49c4000", + "0x49c5000", + "0x49c6000", + "0x49c7000", + "0x49c8000", + "0x49c9000", + "0x49ca000", + "0x4a17000", + "0x4a18000", + "0x4a19000", + "0x4a1a000", + "0x4a1b000", + "0x4a1c000", + "0x4be2000", + "0x4be3000", + "0x4be4000", + "0x4be5000", + "0x4be6000", + "0x4be7000", + "0x4be8000", + "0x4bee000", + "0x4bef000", + "0x4bf0000", + "0x4bf1000", + "0x4bf4000", + "0x4bf5000", + "0x4bf6000", + "0x4bf7000", + "0x4bf8000", + "0x4bf9000", + "0x4bfa000", + "0x4bfb000", + "0x4bfc000", + "0x4bfd000", + "0x4bfe000", + "0x4bff000", + "0x4c00000", + "0x4c01000", + "0x4c02000", + "0x4c03000", + "0x4c04000", + "0x4c05000", + "0x4c06000", + "0x4c07000", + "0x4c08000", + "0x4c09000", + "0x4c0a000", + "0x4c0b000", + "0x4c0c000", + "0x4c0d000", + "0x4c0e000", + "0x4c0f000", + "0x4c10000", + "0x4c11000", + "0x4c12000", + "0x4c13000", + "0x4c14000", + "0x4c15000", + "0x4c16000", + "0x4c17000", + "0x4c18000", + "0x4c19000", + "0x4c1a000", + "0x4c1b000", + "0x4c1c000", + "0x4c1d000", + "0x4c1e000", + "0x4c1f000", + "0x4c20000", + "0x4c21000", + "0x4c22000", + "0x4c23000", + "0x4c24000", + "0x4c25000", + "0x4c26000", + "0x4c27000", + "0x4c28000", + "0x4c29000", + "0x4c2a000", + "0x4c2b000", + "0x4c2c000", + "0x4c2d000", + "0x4c2e000", + "0x4c2f000", + "0x4c30000", + "0x4c31000", + "0x4c32000", + "0x4c33000", + "0x4c34000", + "0x4c35000", + "0x4c36000", + "0x4c37000", + "0x4c38000", + "0x4c39000", + "0x4ce4000", + "0x4ce5000", + "0x4ce6000", + "0x4ef0000", + "0x4ef1000", + "0x4ef2000", + "0x4ef3000", + "0x4ef4000", + "0x4ef5000", + "0x4ef6000", + "0x4ef7000", + "0x4ef8000", + "0x4ef9000", + "0x4efa000", + "0x4efb000", + "0x4efc000", + "0x4efd000", + "0x4efe000", + "0x4eff000", + "0x4f00000", + "0x4f01000", + "0x4f02000", + "0x4f03000", + "0x4f04000", + "0x4f05000", + "0x4f06000", + "0x4f07000", + "0x4f08000", + "0x4f09000", + "0x4f0a000", + "0x4f0b000", + "0x4f0c000", + "0x4f0d000", + "0x4f0e000", + "0x4f0f000", + "0x4f10000", + "0x4f11000", + "0x4f12000", + "0x4f13000", + "0x4f14000", + "0x4f15000", + "0x4f16000", + "0x4f17000", + "0x4f18000", + "0x4f19000", + "0x4f1a000", + "0x4f1b000", + "0x54db000", + "0x54dc000", + "0x54dd000", + "0x54de000", + "0x614f000", + "0x6150000", + "0x6152000" + ], + "recovered_abi": { + "ChromaDenoisePyramidCompleteS16": { + "input": "s16[x,y,yuv]", + "log2_downsample_factor": 0, + "log2_strength_decimation": 2, + "outlier": "u8[level=4,branch=2], strides=[1,4]", + "output": "s16[x,y,yuv]", + "quadratic": "f32[level=4,branch=2], strides=[1,12]", + "read": "f32[level=4,channel=3,branch=2], strides=[1,4,12]", + "shot": "f32[level=4,branch=2], strides=[1,12]", + "strength": "u16[x/4,y/4,3]" + }, + "PecanLumaDenoiseS16": { + "input": "s16[x,y]", + "outlier_distance": "f32[level=5]", + "output": "s16[x,y]", + "quadratic": "f32[level=4,branch=2], strides=[1,4]", + "read": "f32[level=4,branch=2], strides=[1,4]", + "revert_factor": "f32[level=5]", + "shot": "f32[level=4,branch=2], strides=[1,4]", + "strength": "u16[x/4,y/4,3]" + }, + "RgbRawToYuv1xS16": { + "input": "u16[x,y,rgb]", + "neutral_wrapper_arguments": { + "black_levels": [ + 0.0, + 0.0, + 0.0 + ], + "channel_gains": [ + 1.0, + 1.0, + 1.0 + ], + "gain_map": "f32[x,y,4]=1", + "input_white_level": 16383, + "output_white_level": 16383, + "sample_rate": [ + 1.0, + 1.0 + ], + "zoom_ratio": 1.0 + }, + "output": "s16[x,y,yuv]" + }, + "YuvToRgbS16": { + "input": "s16[x,y,yuv]", + "output": "s16[x,y,rgb]" + } + }, + "rgb_to_yuv_noise_matrix": { + "layout": "row-major Y,Cb,Cr by R,G,B", + "vaddr": "0xd64c24", + "values": [ + 0.2125999927520752, + 0.7152000069618225, + 0.07219959795475006, + -0.16245023906230927, + -0.5464943051338196, + 0.7089447379112244, + 0.9999967217445374, + -0.9083024859428406, + -0.09169333428144455 + ] + }, + "run_full_resolution_denoise_contract": { + "chroma_boundary": "ChromaDenoisePyramidComplete is a separate sibling stage; it is not part of RunFullResolutionDenoise", + "entry": "0x4670524", + "input": "planar s16 YUV; non-AI Pecan consumes channel-0 luma", + "non_ai_pecan_wrapper": "0x4ede4e0", + "output": "planar s16 full-resolution luma", + "unique_direct_caller": "0x466a3a0" + }, + "source": "MGC/MGC_9.6.080_V24_MGC/lib/arm64-v8a/libgcastartup.so", + "source_sha256": "2103c54ebba1627733b79e3646105595ed1ccefa2b1629f63fb7e1785a48d6a0", + "task_relocations": { + "0x614fd58": "0x49c3484", + "0x614fda8": "0x4a17ea8", + "0x614ffb0": "0x4bee520", + "0x614ffc0": "0x4bf4cdc", + "0x6150150": "0x4ce4f50", + "0x6150478": "0x4ef5f3c", + "0x6150480": "0x4ef7830", + "0x6150488": "0x4ef8f8c", + "0x6150490": "0x4f02464", + "0x6150498": "0x4f0b8a0", + "0x61504a0": "0x4f138cc", + "0x6152b00": "0x54dbe04" + } +}