{"type": "func", "start": 5371436336, "end": 5371436461, "name": "GameObject::groupOpacityMod", "pseudocode": "// \n// GameObject::groupOpacityMod from 0x140299d30 to 0x140299dad (125 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::updateVisibility @ 0x14050e3b5\n// > PlayLayer::updateVisibility @ 0x14050e506\n// > PlayLayer::updateVisibility @ 0x14050e69a\n// > PlayLayer::updateVisibility @ 0x14050e729\n// > PlayLayer::opacityForObject @ 0x14050ede3\n// > <???> @ 0x14091d7c8\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:29:12 +0000\n// \n\ndouble __fastcall GameObject::groupOpacityMod(__int64 a1)\n{\n  __int64 v1; // rbx\n  double v2; // xmm1_8\n  __int64 v3; // rbp\n  __int64 v4; // rsi\n  __int16 *i; // rdi\n\n  v1 = 0;\n  *(_QWORD *)&v2 = 1065353216;\n  if ( *(__int16 *)(a1 + 1208) <= 0 )\n    return v2;\n  v3 = *(_QWORD *)(a1 + 1288);\n  v4 = *(__int16 *)(a1 + 1208);\n  for ( i = *(__int16 **)(a1 + 1200); ; ++i )\n  {\n    *(float *)&v2 = *(float *)&v2 * GJEffectManager::opacityModForGroup(v3, (unsigned int)*i);\n    if ( *(float *)&v2 <= 0.0 )\n      break;\n    if ( ++v1 >= v4 )\n      return v2;\n  }\n  return 0.0;\n}", "assembly": "; \n; GameObject::groupOpacityMod from 0x140299d30 to 0x140299dad (125 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::updateVisibility @ 0x14050e3b5\n; > PlayLayer::updateVisibility @ 0x14050e506\n; > PlayLayer::updateVisibility @ 0x14050e69a\n; > PlayLayer::updateVisibility @ 0x14050e729\n; > PlayLayer::opacityForObject @ 0x14050ede3\n; > <???> @ 0x14091d7c8\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:29:12 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140299d30\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140299d35\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140299d3a\npush    rdi                                                            ; +0xf, 0x140299d3f\nsub     rsp, 20h                                                       ; +0x10, 0x140299d40\nmovsx   rax, word ptr [rcx+4B8h]                                       ; +0x14, 0x140299d44\nxor     ebx, ebx                                                       ; +0x1c, 0x140299d4c\nmovss   xmm1, cs:flt_140835080                                         ; +0x1e, 0x140299d4e\ncmp     bx, ax                                                         ; +0x26, 0x140299d56\njge     short loc_140299D90                                            ; +0x29, 0x140299d59\nmov     rbp, [rcx+508h]                                                ; +0x2b, 0x140299d5b\nmov     rsi, rax                                                       ; +0x32, 0x140299d62\nmov     rdi, [rcx+4B0h]                                                ; +0x35, 0x140299d65\nxorps   xmm2, xmm2                                                     ; +0x3c, 0x140299d6c\nnop                                                                    ; +0x3f, 0x140299d6f\nmovsx   edx, word ptr [rdi]                                            ; +0x40, 0x140299d70\nmov     rcx, rbp                                                       ; +0x43, 0x140299d73\ncall    GJEffectManager__opacityModForGroup                            ; +0x46, 0x140299d76\nmulss   xmm1, xmm0                                                     ; +0x4b, 0x140299d7b\ncomiss  xmm2, xmm1                                                     ; +0x4f, 0x140299d7f\njnb     short loc_140299DA8                                            ; +0x52, 0x140299d82\ninc     rbx                                                            ; +0x54, 0x140299d84\nadd     rdi, 2                                                         ; +0x57, 0x140299d87\ncmp     rbx, rsi                                                       ; +0x5b, 0x140299d8b\njl      short loc_140299D70                                            ; +0x5e, 0x140299d8e\nmovaps  xmm0, xmm1                                                     ; +0x60, 0x140299d90\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x63, 0x140299d93\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x68, 0x140299d98\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6d, 0x140299d9d\nadd     rsp, 20h                                                       ; +0x72, 0x140299da2\npop     rdi                                                            ; +0x76, 0x140299da6\nretn                                                                   ; +0x77, 0x140299da7\nmovaps  xmm0, xmm2                                                     ; +0x78, 0x140299da8\njmp     short loc_140299D93                                            ; +0x7b, 0x140299dab", "xrefs": ["PlayLayer::updateVisibility @ 0x14050e3b5", "PlayLayer::updateVisibility @ 0x14050e506", "PlayLayer::updateVisibility @ 0x14050e69a", "PlayLayer::updateVisibility @ 0x14050e729", "PlayLayer::opacityForObject @ 0x14050ede3", "<???> @ 0x14091d7c8"], "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"}