{"type": "func", "start": 4301898304, "end": 4301898495, "name": "GameObject::opacityModForMode", "pseudocode": "// \n// GameObject::opacityModForMode from 0x10069c240 to 0x10069c2ff (191 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::updateVisibility @ 0x100084d18\n// > PlayLayer::updateVisibility @ 0x100084df1\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 12:35:16 +0000\n// \n\nfloat __fastcall GameObject::opacityModForMode(__int64 a1, int a2, unsigned __int8 a3)\n{\n  int v3; // eax\n  float result; // xmm0_4\n  float v5; // xmm0_4\n  __int64 v6; // r14\n  float v7; // xmm1_4\n  float v8; // [rsp+Ch] [rbp-14h]\n\n  if ( a2 > 0 && (v3 = (int)*(float *)(*(_QWORD *)(a1 + 8LL * (a3 ^ 1u) + 1264) + 316LL), (unsigned __int8)v3 < 0xFAu) )\n  {\n    result = (float)(unsigned __int8)v3 * 0.0040000002;\n    if ( *(__int16 *)(a1 + 1200) <= 0 )\n      return result;\n  }\n  else\n  {\n    result = 1.0;\n    if ( *(__int16 *)(a1 + 1200) <= 0 )\n      return result;\n  }\n  v8 = result;\n  v5 = 1.0;\n  v6 = 0;\n  do\n  {\n    v5 = GJEffectManager::opacityModForGroup(*(_QWORD *)(a1 + 1280), *(__int16 *)(*(_QWORD *)(a1 + 1192) + 2 * v6)) * v5;\n    v7 = 0.0;\n    if ( v5 <= 0.0 )\n      break;\n    ++v6;\n    v7 = v5;\n  }\n  while ( v6 < *(__int16 *)(a1 + 1200) );\n  return v8 * v7;\n}", "assembly": "; \n; GameObject::opacityModForMode from 0x10069c240 to 0x10069c2ff (191 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::updateVisibility @ 0x100084d18\n; > PlayLayer::updateVisibility @ 0x100084df1\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 12:35:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x10069c240\nmov     rbp, rsp                                                       ; +0x1, 0x10069c241\npush    r14                                                            ; +0x4, 0x10069c244\npush    rbx                                                            ; +0x6, 0x10069c246\nsub     rsp, 10h                                                       ; +0x7, 0x10069c247\nmov     rbx, rdi                                                       ; +0xb, 0x10069c24b\ntest    esi, esi                                                       ; +0xe, 0x10069c24e\njle     short loc_10069C26C                                            ; +0x10, 0x10069c250\nxor     dl, 1                                                          ; +0x12, 0x10069c252\nmovzx   eax, dl                                                        ; +0x15, 0x10069c255\nmov     rax, [rbx+rax*8+4F0h]                                          ; +0x18, 0x10069c258\ncvttss2si eax, dword ptr [rax+13Ch]                                    ; +0x20, 0x10069c260\ncmp     al, 0FAh                                                       ; +0x28, 0x10069c268\njb      short loc_10069C280                                            ; +0x2a, 0x10069c26a\nmovss   xmm0, cs:alpha                                                 ; +0x2c, 0x10069c26c\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x34, 0x10069c274\njg      short loc_10069C299                                            ; +0x3c, 0x10069c27c\njmp     short loc_10069C2F6                                            ; +0x3e, 0x10069c27e\nmovzx   eax, al                                                        ; +0x40, 0x10069c280\ncvtsi2ss xmm0, eax                                                     ; +0x43, 0x10069c283\nmulss   xmm0, cs:dword_100A05CE0                                       ; +0x47, 0x10069c287\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x4f, 0x10069c28f\njle     short loc_10069C2F6                                            ; +0x57, 0x10069c297\nmovss   [rbp+var_14], xmm0                                             ; +0x59, 0x10069c299\nmovss   xmm0, cs:alpha                                                 ; +0x5e, 0x10069c29e\nxor     r14d, r14d                                                     ; +0x66, 0x10069c2a6\nnop     dword ptr [rax+00000000h]                                      ; +0x69, 0x10069c2a9\nmovss   [rbp+var_18], xmm0                                             ; +0x70, 0x10069c2b0\nmov     rax, [rbx+4A8h]                                                ; +0x75, 0x10069c2b5\nmov     rdi, [rbx+500h]                                                ; +0x7c, 0x10069c2bc\nmovsx   esi, word ptr [rax+r14*2]                                      ; +0x83, 0x10069c2c3\ncall    GJEffectManager__opacityModForGroup                            ; +0x88, 0x10069c2c8\nmulss   xmm0, [rbp+var_18]                                             ; +0x8d, 0x10069c2cd\nxorps   xmm1, xmm1                                                     ; +0x92, 0x10069c2d2\nucomiss xmm1, xmm0                                                     ; +0x95, 0x10069c2d5\njnb     short loc_10069C2ED                                            ; +0x98, 0x10069c2d8\ninc     r14                                                            ; +0x9a, 0x10069c2da\nmovsx   rax, word ptr [rbx+4B0h]                                       ; +0x9d, 0x10069c2dd\nmovaps  xmm1, xmm0                                                     ; +0xa5, 0x10069c2e5\ncmp     r14, rax                                                       ; +0xa8, 0x10069c2e8\njl      short loc_10069C2B0                                            ; +0xab, 0x10069c2eb\nmovss   xmm0, [rbp+var_14]                                             ; +0xad, 0x10069c2ed\nmulss   xmm0, xmm1                                                     ; +0xb2, 0x10069c2f2\nadd     rsp, 10h                                                       ; +0xb6, 0x10069c2f6\npop     rbx                                                            ; +0xba, 0x10069c2fa\npop     r14                                                            ; +0xbb, 0x10069c2fb\npop     rbp                                                            ; +0xbd, 0x10069c2fd\nretn                                                                   ; +0xbe, 0x10069c2fe", "xrefs": ["PlayLayer::updateVisibility @ 0x100084d18", "PlayLayer::updateVisibility @ 0x100084df1"], "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"}