{"type": "func", "start": 5371032624, "end": 5371032748, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x140237430 to 0x1402374ac (124 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x140566fd8\n// > <???> @ 0x140586330\n// > <???> @ 0x1406814b4\n// > <???> @ 0x1406814c4\n// > <???> @ 0x1406ce0f4\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 GJBaseGameLayer::opacityForObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  __int64 m_groupCount; // rsi\n  float v4; // xmm1_4\n  unsigned __int64 v5; // rbx\n  GJEffectManager *m_effectManager; // rbp\n  std::array<short, 10> *m_groups; // rax\n  int v8; // edx\n\n  m_groupCount = a2->m_groupCount;\n  v4 = 1.0;\n  if ( m_groupCount >= 1 )\n  {\n    v5 = 0;\n    m_effectManager = a1->m_effectManager;\n    do\n    {\n      if ( v5 <= 9 && (m_groups = a2->m_groups) != nullptr )\n        v8 = m_groups->_Elems[v5];\n      else\n        v8 = 0;\n      ++v5;\n      v4 = v4 * GJEffectManager::opacityModForGroup(m_effectManager, v8);\n    }\n    while ( (__int64)v5 < m_groupCount );\n  }\n  return v4;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x140237430 to 0x1402374ac (124 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x140566fd8\n; > <???> @ 0x140586330\n; > <???> @ 0x1406814b4\n; > <???> @ 0x1406814c4\n; > <???> @ 0x1406ce0f4\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     [rsp+arg_10], rsi                                              ; +0x0, 0x140237430\npush    rdi                                                            ; +0x5, 0x140237435\nsub     rsp, 20h                                                       ; +0x6, 0x140237436\nmovsx   rsi, word ptr [rdx+498h]                                       ; +0xa, 0x14023743a\nmov     rdi, rdx                                                       ; +0x12, 0x140237442\nmovss   xmm1, cs:flt_140622C24                                         ; +0x15, 0x140237445\ncmp     rsi, 1                                                         ; +0x1d, 0x14023744d\njl      short loc_14023749E                                            ; +0x21, 0x140237451\nmov     [rsp+28h+arg_0], rbx                                           ; +0x23, 0x140237453\nxor     ebx, ebx                                                       ; +0x28, 0x140237458\nmov     [rsp+28h+arg_8], rbp                                           ; +0x2a, 0x14023745a\nmov     rbp, [rcx+950h]                                                ; +0x2f, 0x14023745f\ncmp     rbx, 9                                                         ; +0x36, 0x140237466\nja      short loc_14023747E                                            ; +0x3a, 0x14023746a\nmov     rax, [rdi+490h]                                                ; +0x3c, 0x14023746c\ntest    rax, rax                                                       ; +0x43, 0x140237473\njz      short loc_14023747E                                            ; +0x46, 0x140237476\nmovsx   edx, word ptr [rax+rbx*2]                                      ; +0x48, 0x140237478\njmp     short loc_140237480                                            ; +0x4c, 0x14023747c\nxor     edx, edx                                                       ; +0x4e, 0x14023747e\nmov     rcx, rbp                                                       ; +0x50, 0x140237480\ncall    GJEffectManager__opacityModForGroup                            ; +0x53, 0x140237483\ninc     rbx                                                            ; +0x58, 0x140237488\nmulss   xmm1, xmm0                                                     ; +0x5b, 0x14023748b\ncmp     rbx, rsi                                                       ; +0x5f, 0x14023748f\njl      short loc_140237466                                            ; +0x62, 0x140237492\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x64, 0x140237494\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x69, 0x140237499\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6e, 0x14023749e\nmovaps  xmm0, xmm1                                                     ; +0x73, 0x1402374a3\nadd     rsp, 20h                                                       ; +0x76, 0x1402374a6\npop     rdi                                                            ; +0x7a, 0x1402374aa\nretn                                                                   ; +0x7b, 0x1402374ab", "xrefs": ["<???> @ 0x140566fd8", "<???> @ 0x140586330", "<???> @ 0x1406814b4", "<???> @ 0x1406814c4", "<???> @ 0x1406ce0f4"], "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"}