{"type": "func", "start": 4295049752, "end": 4295049824, "name": "GJEffectManager::opacityModForGroup", "pseudocode": "// \n// GJEffectManager::opacityModForGroup from 0x100014218 to 0x100014260 (72 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::opacityForObject @ 0x1001fe43c\n// > GameObject::groupOpacityMod @ 0x10025da08\n// > LevelEditorLayer::updateVisibility @ 0x10035eea0\n// > LevelEditorLayer::updateVisibility @ 0x10035f0d0\n// > LevelEditorLayer::updateObjectColors @ 0x10035f480\n// > LevelEditorLayer::updateObjectColors @ 0x10035f678\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::opacityModForGroup(GJEffectManager *a1, int a2)\n{\n  int v2; // w8\n  __int64 v3; // x0\n  int v5; // [xsp+Ch] [xbp-4h] BYREF\n\n  v2 = a2 & ~(a2 >> 31);\n  if ( v2 >= 9999 )\n    v2 = 9999;\n  v5 = v2;\n  v3 = sub_100018814(&a1->m_opacityEffectMap, &v5);\n  if ( v3 )\n    return *(float *)(v3 + 44);\n  else\n    return 1.0;\n}", "assembly": "; \n; GJEffectManager::opacityModForGroup from 0x100014218 to 0x100014260 (72 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::opacityForObject @ 0x1001fe43c\n; > GameObject::groupOpacityMod @ 0x10025da08\n; > LevelEditorLayer::updateVisibility @ 0x10035eea0\n; > LevelEditorLayer::updateVisibility @ 0x10035f0d0\n; > LevelEditorLayer::updateObjectColors @ 0x10035f480\n; > LevelEditorLayer::updateObjectColors @ 0x10035f678\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\nSUB             SP, SP, #0x20                                          ; +0x0, 0x100014218\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10001421c\nADD             X29, SP, #0x10                                         ; +0x8, 0x100014220\nBIC             W8, W1, W1,ASR#31                                      ; +0xc, 0x100014224\nMOV             W9, #0x270F                                            ; +0x10, 0x100014228\nCMP             W8, W9                                                 ; +0x14, 0x10001422c\nCSEL            W8, W8, W9, LT                                         ; +0x18, 0x100014230\nSTUR            W8, [X29,#var_4]                                       ; +0x1c, 0x100014234\nADD             X0, X0, #0x198                                         ; +0x20, 0x100014238\nSUB             X1, X29, #-var_4                                       ; +0x24, 0x10001423c\nBL              sub_100018814                                          ; +0x28, 0x100014240\nCBZ             X0, loc_100014250                                      ; +0x2c, 0x100014244\nLDR             S0, [X0,#0x2C]                                         ; +0x30, 0x100014248\nB               loc_100014254                                          ; +0x34, 0x10001424c\nFMOV            S0, #1.0                                               ; +0x38, 0x100014250\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x3c, 0x100014254\nADD             SP, SP, #0x20 ; ' '                                    ; +0x40, 0x100014258\nRET                                                                    ; +0x44, 0x10001425c", "xrefs": ["GJBaseGameLayer::opacityForObject @ 0x1001fe43c", "GameObject::groupOpacityMod @ 0x10025da08", "LevelEditorLayer::updateVisibility @ 0x10035eea0", "LevelEditorLayer::updateVisibility @ 0x10035f0d0", "LevelEditorLayer::updateObjectColors @ 0x10035f480", "LevelEditorLayer::updateObjectColors @ 0x10035f678"], "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"}