// Metro module 1635 (f1636). import * as _Module116 from "./Module116"; import { ReanimatedError } from "./Module1617"; let findHostInstance_DEPRECATED; export function findHostInstance(a0) { let r11; const _componentRef = a0._componentRef; let r3 = void 0; if (_componentRef) { L8: { L7: { if (_componentRef.__internalInstanceHandle && _componentRef.__nativeTag) { if (_componentRef.__viewConfig) { break L7; } if (_componentRef._viewConfig) { break L7; } } const _nativeTag = _componentRef._nativeTag; r11 = void 0; if (!_nativeTag) { break L8; } const viewConfig = _componentRef.viewConfig; r11 = void 0; if (!viewConfig) { break L8; } } r11 = _componentRef; } r3 = r11; } if (r3 === void 0) { (function resolveFindHostInstance_DEPRECATED() { if (findHostInstance_DEPRECATED === void 0) { try { let r13 = _Module116 == null ? void 0 : _Module116.default?.findHostInstance_DEPRECATED; if (r13 == null) { r13 = _Module116?.findHostInstance_DEPRECATED; } findHostInstance_DEPRECATED = r13; } catch ($e) { throw new ReanimatedError("Failed to resolve findHostInstance_DEPRECATED"); } } })(); let _componentRef2 = a0._componentRef; if (_componentRef2 == null) { _componentRef2 = a0; } r3 = findHostInstance_DEPRECATED(_componentRef2); } return r3; }