/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleCpp.js
 */

#include "RNReactNativeStockfishSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeReactNativeStockfishCxxSpecJSI_stockfishLoop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeReactNativeStockfishCxxSpecJSI *>(&turboModule)->stockfishLoop(
    rt
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeReactNativeStockfishCxxSpecJSI_sendCommandToStockfish(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeReactNativeStockfishCxxSpecJSI *>(&turboModule)->sendCommandToStockfish(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeReactNativeStockfishCxxSpecJSI_stopStockfish(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeReactNativeStockfishCxxSpecJSI *>(&turboModule)->stopStockfish(
    rt
  );
  return jsi::Value::undefined();
}

NativeReactNativeStockfishCxxSpecJSI::NativeReactNativeStockfishCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("ReactNativeStockfish", jsInvoker) {
  methodMap_["stockfishLoop"] = MethodMetadata {0, __hostFunction_NativeReactNativeStockfishCxxSpecJSI_stockfishLoop};
  methodMap_["sendCommandToStockfish"] = MethodMetadata {1, __hostFunction_NativeReactNativeStockfishCxxSpecJSI_sendCommandToStockfish};
  methodMap_["stopStockfish"] = MethodMetadata {0, __hostFunction_NativeReactNativeStockfishCxxSpecJSI_stopStockfish};
}


} // namespace facebook::react
