{"type": "func", "start": 4297975168, "end": 4297975210, "name": "GJEffectManager::activeOpacityForIndex", "pseudocode": "// \n// GJEffectManager::activeOpacityForIndex from 0x1002de580 to 0x1002de5aa (42 bytes)\n// \n// 13 xrefs:\n// > LevelEditorLayer::updateVisibility @ 0x1000eb1f4\n// > LevelEditorLayer::updateVisibility @ 0x1000eb230\n// > LevelEditorLayer::updateVisibility @ 0x1000eb397\n// > LevelEditorLayer::updateVisibility @ 0x1000eb5eb\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb8b9\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb8f5\n// > LevelEditorLayer::updateObjectColors @ 0x1000eba48\n// > LevelEditorLayer::updateObjectColors @ 0x1000ebc58\n// > GJBaseGameLayer::updateLevelColors @ 0x1001146d7\n// > GJBaseGameLayer::updateLevelColors @ 0x10011480b\n// > GJBaseGameLayer::updateLevelColors @ 0x10011483f\n// > GJBaseGameLayer::updateGradientLayers @ 0x100139aa6\n// > GJBaseGameLayer::updateGradientLayers @ 0x100139ad6\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nfloat __fastcall GJEffectManager::activeOpacityForIndex(GJEffectManager *a1, int a2)\n{\n  ColorActionSprite *ColorSprite; // rax\n\n  ColorSprite = GJEffectManager::getColorSprite(a1, a2);\n  if ( ColorSprite )\n    return ColorSprite->m_opacity / 255.0;\n  else\n    return 1.0;\n}", "assembly": "; \n; GJEffectManager::activeOpacityForIndex from 0x1002de580 to 0x1002de5aa (42 bytes)\n; \n; 13 xrefs:\n; > LevelEditorLayer::updateVisibility @ 0x1000eb1f4\n; > LevelEditorLayer::updateVisibility @ 0x1000eb230\n; > LevelEditorLayer::updateVisibility @ 0x1000eb397\n; > LevelEditorLayer::updateVisibility @ 0x1000eb5eb\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb8b9\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb8f5\n; > LevelEditorLayer::updateObjectColors @ 0x1000eba48\n; > LevelEditorLayer::updateObjectColors @ 0x1000ebc58\n; > GJBaseGameLayer::updateLevelColors @ 0x1001146d7\n; > GJBaseGameLayer::updateLevelColors @ 0x10011480b\n; > GJBaseGameLayer::updateLevelColors @ 0x10011483f\n; > GJBaseGameLayer::updateGradientLayers @ 0x100139aa6\n; > GJBaseGameLayer::updateGradientLayers @ 0x100139ad6\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1002de580\nmov     rbp, rsp                                                       ; +0x1, 0x1002de581\ncall    GJEffectManager__getColorSprite                                ; +0x4, 0x1002de584\ntest    rax, rax                                                       ; +0x9, 0x1002de589\njz      short loc_1002DE5A0                                            ; +0xc, 0x1002de58c\nmovss   xmm0, dword ptr [rax+13Ch]                                     ; +0xe, 0x1002de58e\ndivss   xmm0, cs:dword_100815C10                                       ; +0x16, 0x1002de596\npop     rbp                                                            ; +0x1e, 0x1002de59e\nretn                                                                   ; +0x1f, 0x1002de59f\nmovss   xmm0, cs:alpha                                                 ; +0x20, 0x1002de5a0\npop     rbp                                                            ; +0x28, 0x1002de5a8\nretn                                                                   ; +0x29, 0x1002de5a9", "xrefs": ["LevelEditorLayer::updateVisibility @ 0x1000eb1f4", "LevelEditorLayer::updateVisibility @ 0x1000eb230", "LevelEditorLayer::updateVisibility @ 0x1000eb397", "LevelEditorLayer::updateVisibility @ 0x1000eb5eb", "LevelEditorLayer::updateObjectColors @ 0x1000eb8b9", "LevelEditorLayer::updateObjectColors @ 0x1000eb8f5", "LevelEditorLayer::updateObjectColors @ 0x1000eba48", "LevelEditorLayer::updateObjectColors @ 0x1000ebc58", "GJBaseGameLayer::updateLevelColors @ 0x1001146d7", "GJBaseGameLayer::updateLevelColors @ 0x10011480b", "GJBaseGameLayer::updateLevelColors @ 0x10011483f", "GJBaseGameLayer::updateGradientLayers @ 0x100139aa6", "GJBaseGameLayer::updateGradientLayers @ 0x100139ad6"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}