{"type": "func", "start": 5371202432, "end": 5371202622, "name": "GJEffectManager::opacityModForGroup", "pseudocode": "// \n// GJEffectManager::opacityModForGroup from 0x140260b80 to 0x140260c3e (190 bytes)\n// \n// 8 xrefs:\n// > GameObject::groupOpacityMod @ 0x14019ccf6\n// > GJBaseGameLayer::opacityForObject @ 0x140237483\n// > GJEffectManager::runOpacityActionOnGroup @ 0x140260aa9\n// > LevelEditorLayer::updateVisibility @ 0x1402d976e\n// > LevelEditorLayer::updateVisibility @ 0x1402d9bc2\n// > LevelEditorLayer::updateObjectColors @ 0x1402da27e\n// > LevelEditorLayer::updateObjectColors @ 0x1402da6a5\n// > <???> @ 0x1406cff90\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 GJEffectManager::opacityModForGroup(GJEffectManager *a1, int a2)\n{\n  int v2; // r9d\n  std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>::_Nodeptr v4; // rax\n  std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>::_Nodeptr Myhead; // r10\n  std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>>>>::pointer Myfirst; // rdx\n  unsigned __int64 v7; // r11\n  __int64 v8; // rcx\n  __int64 v9; // rdx\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( a2 < 0 )\n    v2 = 0;\n  if ( v2 > 9999 )\n    v2 = 9999;\n  Myhead = a1->m_opacityEffectMap._List._Mypair._Myval2._Myhead;\n  Myfirst = a1->m_opacityEffectMap._Vec._Mypair._Myval2._Myfirst;\n  v7 = 2\n     * ((0x100000001B3LL\n       * (HIBYTE(v2)\n        ^ (0x100000001B3LL\n         * (BYTE2(v2)\n          ^ (0x100000001B3LL * (BYTE1(v2) ^ (0x100000001B3LL * ((unsigned __int8)v2 ^ 0xCBF29CE484222325uLL))))))))\n      & a1->m_opacityEffectMap._Mask);\n  v8 = *((_QWORD *)Myfirst\n       + 2\n       * ((0x100000001B3LL\n         * (HIBYTE(v2)\n          ^ (0x100000001B3LL\n           * (BYTE2(v2)\n            ^ (0x100000001B3LL * (BYTE1(v2) ^ (0x100000001B3LL * ((unsigned __int8)v2 ^ 0xCBF29CE484222325uLL))))))))\n        & a1->m_opacityEffectMap._Mask)\n       + 1);\n  if ( (std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>::_Nodeptr)v8 != Myhead )\n  {\n    v9 = *((_QWORD *)Myfirst + v7);\n    if ( v2 == *(_DWORD *)(v8 + 16) )\n    {\nLABEL_9:\n      v4 = (std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>::_Nodeptr)v8;\n    }\n    else\n    {\n      while ( v8 != v9 )\n      {\n        v8 = *(_QWORD *)(v8 + 8);\n        if ( v2 == *(_DWORD *)(v8 + 16) )\n          goto LABEL_9;\n      }\n    }\n  }\n  if ( !v4 )\n    v4 = a1->m_opacityEffectMap._List._Mypair._Myval2._Myhead;\n  if ( v4 == Myhead )\n    return 1.0;\n  else\n    return *((float *)v4 + 11);\n}", "assembly": "; \n; GJEffectManager::opacityModForGroup from 0x140260b80 to 0x140260c3e (190 bytes)\n; \n; 8 xrefs:\n; > GameObject::groupOpacityMod @ 0x14019ccf6\n; > GJBaseGameLayer::opacityForObject @ 0x140237483\n; > GJEffectManager::runOpacityActionOnGroup @ 0x140260aa9\n; > LevelEditorLayer::updateVisibility @ 0x1402d976e\n; > LevelEditorLayer::updateVisibility @ 0x1402d9bc2\n; > LevelEditorLayer::updateObjectColors @ 0x1402da27e\n; > LevelEditorLayer::updateObjectColors @ 0x1402da6a5\n; > <???> @ 0x1406cff90\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\nmov     r9d, edx                                                       ; +0x0, 0x140260b80\nmov     r8, rcx                                                        ; +0x3, 0x140260b83\nmov     r10, 100000001B3h                                              ; +0x6, 0x140260b86\nxor     eax, eax                                                       ; +0x10, 0x140260b90\ntest    edx, edx                                                       ; +0x12, 0x140260b92\nmov     ecx, 270Fh                                                     ; +0x14, 0x140260b94\nmov     r11, [r8+1E0h]                                                 ; +0x19, 0x140260b99\ncmovs   r9d, eax                                                       ; +0x20, 0x140260ba0\ncmp     r9d, ecx                                                       ; +0x24, 0x140260ba4\ncmovg   r9d, ecx                                                       ; +0x27, 0x140260ba7\nmov     rcx, 0CBF29CE484222325h                                        ; +0x2b, 0x140260bab\nmov     [rsp+arg_8], r9d                                               ; +0x35, 0x140260bb5\nmovzx   edx, r9b                                                       ; +0x3a, 0x140260bba\nxor     rdx, rcx                                                       ; +0x3e, 0x140260bbe\nmovzx   ecx, byte ptr [rsp+arg_8+1]                                    ; +0x41, 0x140260bc1\nimul    rdx, r10                                                       ; +0x46, 0x140260bc6\nxor     rdx, rcx                                                       ; +0x4a, 0x140260bca\nmovzx   ecx, byte ptr [rsp+arg_8+2]                                    ; +0x4d, 0x140260bcd\nimul    rdx, r10                                                       ; +0x52, 0x140260bd2\nxor     rdx, rcx                                                       ; +0x56, 0x140260bd6\nmovzx   ecx, byte ptr [rsp+arg_8+3]                                    ; +0x59, 0x140260bd9\nimul    rdx, r10                                                       ; +0x5e, 0x140260bde\nxor     rdx, rcx                                                       ; +0x62, 0x140260be2\nimul    rdx, r10                                                       ; +0x65, 0x140260be5\nmov     r10, [r8+1B8h]                                                 ; +0x69, 0x140260be9\nand     r11, rdx                                                       ; +0x70, 0x140260bf0\nmov     rdx, [r8+1C8h]                                                 ; +0x73, 0x140260bf3\nadd     r11, r11                                                       ; +0x7a, 0x140260bfa\nmov     rcx, [rdx+r11*8+8]                                             ; +0x7d, 0x140260bfd\ncmp     rcx, r10                                                       ; +0x82, 0x140260c02\njz      short loc_140260C23                                            ; +0x85, 0x140260c05\nmov     rdx, [rdx+r11*8]                                               ; +0x87, 0x140260c07\ncmp     r9d, [rcx+10h]                                                 ; +0x8b, 0x140260c0b\njz      short loc_140260C20                                            ; +0x8f, 0x140260c0f\ncmp     rcx, rdx                                                       ; +0x91, 0x140260c11\njz      short loc_140260C23                                            ; +0x94, 0x140260c14\nmov     rcx, [rcx+8]                                                   ; +0x96, 0x140260c16\ncmp     r9d, [rcx+10h]                                                 ; +0x9a, 0x140260c1a\njnz     short loc_140260C11                                            ; +0x9e, 0x140260c1e\nmov     rax, rcx                                                       ; +0xa0, 0x140260c20\ntest    rax, rax                                                       ; +0xa3, 0x140260c23\ncmovz   rax, r10                                                       ; +0xa6, 0x140260c26\ncmp     rax, r10                                                       ; +0xaa, 0x140260c2a\njz      short loc_140260C35                                            ; +0xad, 0x140260c2d\nmovss   xmm0, dword ptr [rax+2Ch]                                      ; +0xaf, 0x140260c2f\nretn                                                                   ; +0xb4, 0x140260c34\nmovss   xmm0, cs:flt_140622C24                                         ; +0xb5, 0x140260c35\nretn                                                                   ; +0xbd, 0x140260c3d", "xrefs": ["GameObject::groupOpacityMod @ 0x14019ccf6", "GJBaseGameLayer::opacityForObject @ 0x140237483", "GJEffectManager::runOpacityActionOnGroup @ 0x140260aa9", "LevelEditorLayer::updateVisibility @ 0x1402d976e", "LevelEditorLayer::updateVisibility @ 0x1402d9bc2", "LevelEditorLayer::updateObjectColors @ 0x1402da27e", "LevelEditorLayer::updateObjectColors @ 0x1402da6a5", "<???> @ 0x1406cff90"], "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"}