{"type": "func", "start": 4296347840, "end": 4296347978, "name": "GJBaseGameLayer::opacityForObject", "pseudocode": "// \n// GJBaseGameLayer::opacityForObject from 0x1001510c0 to 0x10015114a (138 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1008c0648\n// > <???> @ 0x1008c1878\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 GJBaseGameLayer::opacityForObject(GJBaseGameLayer *a1, GameObject *a2)\n{\n  float result; // xmm0_4\n  int v3; // r15d\n  GJEffectManager *m_effectManager; // r12\n  int GroupID; // eax\n\n  if ( a2->m_groupCount <= 0 )\n    return 1.0;\n  result = 1.0;\n  v3 = 0;\n  do\n  {\n    m_effectManager = a1->m_effectManager;\n    GroupID = GameObject::getGroupID(a2, v3);\n    result = result * GJEffectManager::opacityModForGroup(m_effectManager, GroupID);\n    ++v3;\n  }\n  while ( v3 < a2->m_groupCount );\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::opacityForObject from 0x1001510c0 to 0x10015114a (138 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1008c0648\n; > <???> @ 0x1008c1878\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, 0x1001510c0\nmov     rbp, rsp                                                       ; +0x1, 0x1001510c1\npush    r15                                                            ; +0x4, 0x1001510c4\npush    r14                                                            ; +0x6, 0x1001510c6\npush    r12                                                            ; +0x8, 0x1001510c8\npush    rbx                                                            ; +0xa, 0x1001510ca\nsub     rsp, 10h                                                       ; +0xb, 0x1001510cb\ncmp     word ptr [rsi+490h], 0                                         ; +0xf, 0x1001510cf\njle     short loc_100151135                                            ; +0x17, 0x1001510d7\nmov     rbx, rsi                                                       ; +0x19, 0x1001510d9\nmov     r14, rdi                                                       ; +0x1c, 0x1001510dc\nmovss   xmm0, cs:alpha                                                 ; +0x1f, 0x1001510df\nxor     r15d, r15d                                                     ; +0x27, 0x1001510e7\nnop     word ptr [rax+rax+00h]                                         ; +0x2a, 0x1001510ea\nmovss   [rbp+var_24], xmm0                                             ; +0x30, 0x1001510f0\nmov     r12, [r14+850h]                                                ; +0x35, 0x1001510f5\nmov     rdi, rbx                                                       ; +0x3c, 0x1001510fc\nmov     esi, r15d                                                      ; +0x3f, 0x1001510ff\ncall    GameObject__getGroupID                                         ; +0x42, 0x100151102\nmov     rdi, r12                                                       ; +0x47, 0x100151107\nmov     esi, eax                                                       ; +0x4a, 0x10015110a\ncall    GJEffectManager__opacityModForGroup                            ; +0x4c, 0x10015110c\nmovss   xmm1, [rbp+var_24]                                             ; +0x51, 0x100151111\nmulss   xmm1, xmm0                                                     ; +0x56, 0x100151116\nmovss   [rbp+var_24], xmm1                                             ; +0x5a, 0x10015111a\nmovss   xmm0, [rbp+var_24]                                             ; +0x5f, 0x10015111f\ninc     r15d                                                           ; +0x64, 0x100151124\nmovsx   eax, word ptr [rbx+490h]                                       ; +0x67, 0x100151127\ncmp     r15d, eax                                                      ; +0x6e, 0x10015112e\njl      short loc_1001510F0                                            ; +0x71, 0x100151131\njmp     short loc_10015113D                                            ; +0x73, 0x100151133\nmovss   xmm0, cs:alpha                                                 ; +0x75, 0x100151135\nadd     rsp, 10h                                                       ; +0x7d, 0x10015113d\npop     rbx                                                            ; +0x81, 0x100151141\npop     r12                                                            ; +0x82, 0x100151142\npop     r14                                                            ; +0x84, 0x100151144\npop     r15                                                            ; +0x86, 0x100151146\npop     rbp                                                            ; +0x88, 0x100151148\nretn                                                                   ; +0x89, 0x100151149", "xrefs": ["<???> @ 0x1008c0648", "<???> @ 0x1008c1878"], "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"}