{"type": "func", "start": 4301898016, "end": 4301898219, "name": "GameObject::updateMainOpacity", "pseudocode": "// \n// GameObject::updateMainOpacity from 0x10069c120 to 0x10069c1eb (203 bytes)\n// \n// 0 xrefs:\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\n__int64 __fastcall GameObject::updateMainOpacity(__int64 a1)\n{\n  int v1; // eax\n  float v2; // xmm0_4\n  float v3; // xmm0_4\n  __int64 v4; // r14\n  float v5; // xmm1_4\n  __int64 result; // rax\n  float v7; // [rsp+Ch] [rbp-14h]\n\n  if ( *(int *)(a1 + 656) > 0 && (v1 = (int)*(float *)(*(_QWORD *)(a1 + 1264) + 316LL), (unsigned __int8)v1 < 0xFAu) )\n  {\n    v2 = (float)(unsigned __int8)v1 * 0.0040000002;\n    if ( *(__int16 *)(a1 + 1200) <= 0 )\n      goto LABEL_10;\n  }\n  else\n  {\n    v2 = 1.0;\n    if ( *(__int16 *)(a1 + 1200) <= 0 )\n      goto LABEL_10;\n  }\n  v7 = v2;\n  v3 = 1.0;\n  v4 = 0;\n  do\n  {\n    v3 = GJEffectManager::opacityModForGroup(*(_QWORD *)(a1 + 1280), *(__int16 *)(*(_QWORD *)(a1 + 1192) + 2 * v4)) * v3;\n    v5 = 0.0;\n    if ( v3 <= 0.0 )\n      break;\n    ++v4;\n    v5 = v3;\n  }\n  while ( v4 < *(__int16 *)(a1 + 1200) );\n  v2 = v7 * v5;\nLABEL_10:\n  result = *(_QWORD *)(a1 + 1096);\n  *(float *)(result + 8) = v2;\n  return result;\n}", "assembly": "; \n; GameObject::updateMainOpacity from 0x10069c120 to 0x10069c1eb (203 bytes)\n; \n; 0 xrefs:\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, 0x10069c120\nmov     rbp, rsp                                                       ; +0x1, 0x10069c121\npush    r14                                                            ; +0x4, 0x10069c124\npush    rbx                                                            ; +0x6, 0x10069c126\nsub     rsp, 10h                                                       ; +0x7, 0x10069c127\nmov     rbx, rdi                                                       ; +0xb, 0x10069c12b\ncmp     dword ptr [rdi+290h], 0                                        ; +0xe, 0x10069c12e\njle     short loc_10069C14A                                            ; +0x15, 0x10069c135\nmov     rax, [rbx+4F0h]                                                ; +0x17, 0x10069c137\ncvttss2si eax, dword ptr [rax+13Ch]                                    ; +0x1e, 0x10069c13e\ncmp     al, 0FAh                                                       ; +0x26, 0x10069c146\njb      short loc_10069C15E                                            ; +0x28, 0x10069c148\nmovss   xmm0, cs:alpha                                                 ; +0x2a, 0x10069c14a\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x32, 0x10069c152\njg      short loc_10069C177                                            ; +0x3a, 0x10069c15a\njmp     short loc_10069C1D6                                            ; +0x3c, 0x10069c15c\nmovzx   eax, al                                                        ; +0x3e, 0x10069c15e\ncvtsi2ss xmm0, eax                                                     ; +0x41, 0x10069c161\nmulss   xmm0, cs:dword_100A05CE0                                       ; +0x45, 0x10069c165\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x4d, 0x10069c16d\njle     short loc_10069C1D6                                            ; +0x55, 0x10069c175\nmovss   [rbp+var_14], xmm0                                             ; +0x57, 0x10069c177\nmovss   xmm0, cs:alpha                                                 ; +0x5c, 0x10069c17c\nxor     r14d, r14d                                                     ; +0x64, 0x10069c184\nnop     word ptr [rax+rax+00000000h]                                   ; +0x67, 0x10069c187\nmovss   [rbp+var_18], xmm0                                             ; +0x70, 0x10069c190\nmov     rax, [rbx+4A8h]                                                ; +0x75, 0x10069c195\nmov     rdi, [rbx+500h]                                                ; +0x7c, 0x10069c19c\nmovsx   esi, word ptr [rax+r14*2]                                      ; +0x83, 0x10069c1a3\ncall    GJEffectManager__opacityModForGroup                            ; +0x88, 0x10069c1a8\nmulss   xmm0, [rbp+var_18]                                             ; +0x8d, 0x10069c1ad\nxorps   xmm1, xmm1                                                     ; +0x92, 0x10069c1b2\nucomiss xmm1, xmm0                                                     ; +0x95, 0x10069c1b5\njnb     short loc_10069C1CD                                            ; +0x98, 0x10069c1b8\ninc     r14                                                            ; +0x9a, 0x10069c1ba\nmovsx   rax, word ptr [rbx+4B0h]                                       ; +0x9d, 0x10069c1bd\nmovaps  xmm1, xmm0                                                     ; +0xa5, 0x10069c1c5\ncmp     r14, rax                                                       ; +0xa8, 0x10069c1c8\njl      short loc_10069C190                                            ; +0xab, 0x10069c1cb\nmovss   xmm0, [rbp+var_14]                                             ; +0xad, 0x10069c1cd\nmulss   xmm0, xmm1                                                     ; +0xb2, 0x10069c1d2\nmov     rax, [rbx+448h]                                                ; +0xb6, 0x10069c1d6\nmovss   dword ptr [rax+8], xmm0                                        ; +0xbd, 0x10069c1dd\nadd     rsp, 10h                                                       ; +0xc2, 0x10069c1e2\npop     rbx                                                            ; +0xc6, 0x10069c1e6\npop     r14                                                            ; +0xc7, 0x10069c1e7\npop     rbp                                                            ; +0xc9, 0x10069c1e9\nretn                                                                   ; +0xca, 0x10069c1ea", "xrefs": [], "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"}