{"type": "func", "start": 5372293824, "end": 5372294013, "name": "GJEffectManager::opacityModForGroup", "pseudocode": "// \n// GJEffectManager::opacityModForGroup from 0x14036b2c0 to 0x14036b37d (189 bytes)\n// \n// 8 xrefs:\n// > GameObject::groupOpacityMod @ 0x140299d76\n// > GJBaseGameLayer::opacityForObject @ 0x1403402ef\n// > GJEffectManager::runOpacityActionOnGroup @ 0x14036b1e9\n// > LevelEditorLayer::updateVisibility @ 0x1403f6d1e\n// > LevelEditorLayer::updateVisibility @ 0x1403f7182\n// > LevelEditorLayer::updateObjectColors @ 0x1403f77de\n// > LevelEditorLayer::updateObjectColors @ 0x1403f7c12\n// > <???> @ 0x1409218c0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:57 +0000\n// \n\nfloat __fastcall GJEffectManager::opacityModForGroup(_QWORD *a1, int a2)\n{\n  __int64 v3; // r9\n  __int64 v4; // rcx\n  __int64 v5; // r11\n  __int64 v6; // rax\n  __int64 v7; // rcx\n\n  v3 = 0;\n  if ( a2 < 0 )\n    a2 = 0;\n  if ( a2 > 9999 )\n    a2 = 9999;\n  v4 = a1[57];\n  v5 = a1[55];\n  v6 = *(_QWORD *)(v4\n                 + 16\n                 * (a1[60]\n                  & (0x100000001B3LL\n                   * (((unsigned __int64)(unsigned int)a2 >> 24)\n                    ^ (0x100000001B3LL\n                     * (BYTE2(a2)\n                      ^ (0x100000001B3LL\n                       * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2))))))))\n                 + 8);\n  if ( v6 != v5 )\n  {\n    v7 = *(_QWORD *)(v4\n                   + 16\n                   * (a1[60]\n                    & (0x100000001B3LL\n                     * (((unsigned __int64)(unsigned int)a2 >> 24)\n                      ^ (0x100000001B3LL\n                       * (BYTE2(a2)\n                        ^ (0x100000001B3LL\n                         * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2)))))))));\n    if ( a2 == *(_DWORD *)(v6 + 16) )\n    {\nLABEL_9:\n      v3 = v6;\n    }\n    else\n    {\n      while ( v6 != v7 )\n      {\n        v6 = *(_QWORD *)(v6 + 8);\n        if ( a2 == *(_DWORD *)(v6 + 16) )\n          goto LABEL_9;\n      }\n    }\n  }\n  if ( !v3 )\n    v3 = a1[55];\n  if ( v3 == v5 )\n    return 1.0;\n  else\n    return *(float *)(v3 + 44);\n}", "assembly": "; \n; GJEffectManager::opacityModForGroup from 0x14036b2c0 to 0x14036b37d (189 bytes)\n; \n; 8 xrefs:\n; > GameObject::groupOpacityMod @ 0x140299d76\n; > GJBaseGameLayer::opacityForObject @ 0x1403402ef\n; > GJEffectManager::runOpacityActionOnGroup @ 0x14036b1e9\n; > LevelEditorLayer::updateVisibility @ 0x1403f6d1e\n; > LevelEditorLayer::updateVisibility @ 0x1403f7182\n; > LevelEditorLayer::updateObjectColors @ 0x1403f77de\n; > LevelEditorLayer::updateObjectColors @ 0x1403f7c12\n; > <???> @ 0x1409218c0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:57 +0000\n; \nmov     r8, rcx                                                        ; +0x0, 0x14036b2c0\nmov     r11, 100000001B3h                                              ; +0x3, 0x14036b2c3\nxor     r9d, r9d                                                       ; +0xd, 0x14036b2cd\nmov     eax, 270Fh                                                     ; +0x10, 0x14036b2d0\ntest    edx, edx                                                       ; +0x15, 0x14036b2d5\nmov     rcx, 0CBF29CE484222325h                                        ; +0x17, 0x14036b2d7\ncmovs   edx, r9d                                                       ; +0x21, 0x14036b2e1\ncmp     edx, eax                                                       ; +0x25, 0x14036b2e5\ncmovg   edx, eax                                                       ; +0x27, 0x14036b2e7\nmov     eax, edx                                                       ; +0x2a, 0x14036b2ea\nshr     eax, 8                                                         ; +0x2c, 0x14036b2ec\nmovzx   r10d, al                                                       ; +0x2f, 0x14036b2ef\nmovzx   eax, dl                                                        ; +0x33, 0x14036b2f3\nxor     rax, rcx                                                       ; +0x36, 0x14036b2f6\nimul    rax, r11                                                       ; +0x39, 0x14036b2f9\nxor     r10, rax                                                       ; +0x3d, 0x14036b2fd\nmov     eax, edx                                                       ; +0x40, 0x14036b300\nimul    r10, r11                                                       ; +0x42, 0x14036b302\nshr     eax, 10h                                                       ; +0x46, 0x14036b306\nmovzx   ecx, al                                                        ; +0x49, 0x14036b309\nxor     r10, rcx                                                       ; +0x4c, 0x14036b30c\nmov     eax, edx                                                       ; +0x4f, 0x14036b30f\nmov     rcx, [r8+1C8h]                                                 ; +0x51, 0x14036b311\nimul    r10, r11                                                       ; +0x58, 0x14036b318\nshr     rax, 18h                                                       ; +0x5c, 0x14036b31c\nxor     r10, rax                                                       ; +0x60, 0x14036b320\nimul    r10, r11                                                       ; +0x63, 0x14036b323\nmov     r11, [r8+1B8h]                                                 ; +0x67, 0x14036b327\nand     r10, [r8+1E0h]                                                 ; +0x6e, 0x14036b32e\nadd     r10, r10                                                       ; +0x75, 0x14036b335\nmov     rax, [rcx+r10*8+8]                                             ; +0x78, 0x14036b338\ncmp     rax, r11                                                       ; +0x7d, 0x14036b33d\njz      short loc_14036B361                                            ; +0x80, 0x14036b340\nmov     rcx, [rcx+r10*8]                                               ; +0x82, 0x14036b342\ncmp     edx, [rax+10h]                                                 ; +0x86, 0x14036b346\njz      short loc_14036B35E                                            ; +0x89, 0x14036b349\nnop     dword ptr [rax+rax+00h]                                        ; +0x8b, 0x14036b34b\ncmp     rax, rcx                                                       ; +0x90, 0x14036b350\njz      short loc_14036B361                                            ; +0x93, 0x14036b353\nmov     rax, [rax+8]                                                   ; +0x95, 0x14036b355\ncmp     edx, [rax+10h]                                                 ; +0x99, 0x14036b359\njnz     short loc_14036B350                                            ; +0x9c, 0x14036b35c\nmov     r9, rax                                                        ; +0x9e, 0x14036b35e\ntest    r9, r9                                                         ; +0xa1, 0x14036b361\ncmovz   r9, r11                                                        ; +0xa4, 0x14036b364\ncmp     r9, r11                                                        ; +0xa8, 0x14036b368\njz      short loc_14036B374                                            ; +0xab, 0x14036b36b\nmovss   xmm0, dword ptr [r9+2Ch]                                       ; +0xad, 0x14036b36d\nretn                                                                   ; +0xb3, 0x14036b373\nmovss   xmm0, cs:flt_140835080                                         ; +0xb4, 0x14036b374\nretn                                                                   ; +0xbc, 0x14036b37c", "xrefs": ["GameObject::groupOpacityMod @ 0x140299d76", "GJBaseGameLayer::opacityForObject @ 0x1403402ef", "GJEffectManager::runOpacityActionOnGroup @ 0x14036b1e9", "LevelEditorLayer::updateVisibility @ 0x1403f6d1e", "LevelEditorLayer::updateVisibility @ 0x1403f7182", "LevelEditorLayer::updateObjectColors @ 0x1403f77de", "LevelEditorLayer::updateObjectColors @ 0x1403f7c12", "<???> @ 0x1409218c0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}