{"type": "func", "start": 5371418672, "end": 5371418816, "name": "GameObject::setAreaOpacity", "pseudocode": "// \n// GameObject::setAreaOpacity from 0x140295830 to 0x1402958c0 (144 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processAreaEffects @ 0x140331932\n// > GJBaseGameLayer::processAreaEffects @ 0x1403319c5\n// > <???> @ 0x1408af278\n// > <???> @ 0x1408af288\n// > <???> @ 0x14091d5ac\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:10 +0000\n// \n\nvoid __fastcall GameObject::setAreaOpacity(__int64 a1, float a2, float a3, int a4)\n{\n  float v6; // xmm6_4\n\n  if ( *(_DWORD *)(a1 + 1344) != a4 || *(float *)(a1 + 1340) > a3 )\n  {\n    v6 = (float)*(unsigned __int8 *)(a1 + 1336);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 320) + 40LL))(\n      a1 + 320,\n      (unsigned int)(int)(float)(v6 * a2));\n    *(_DWORD *)(a1 + 1344) = a4;\n    *(_BYTE *)(a1 + 1336) = (int)v6;\n    *(float *)(a1 + 1340) = a3;\n  }\n}", "assembly": "; \n; GameObject::setAreaOpacity from 0x140295830 to 0x1402958c0 (144 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processAreaEffects @ 0x140331932\n; > GJBaseGameLayer::processAreaEffects @ 0x1403319c5\n; > <???> @ 0x1408af278\n; > <???> @ 0x1408af288\n; > <???> @ 0x14091d5ac\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:10 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140295830\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140295835\npush    rdi                                                            ; +0xa, 0x14029583a\nsub     rsp, 40h                                                       ; +0xb, 0x14029583b\nmov     esi, r9d                                                       ; +0xf, 0x14029583f\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x12, 0x140295842\nmovaps  xmm7, xmm2                                                     ; +0x17, 0x140295847\nmov     rdi, rcx                                                       ; +0x1a, 0x14029584a\ncmp     [rcx+540h], r9d                                                ; +0x1d, 0x14029584d\njnz     short loc_140295863                                            ; +0x24, 0x140295854\nmovss   xmm0, dword ptr [rcx+53Ch]                                     ; +0x26, 0x140295856\ncomiss  xmm0, xmm7                                                     ; +0x2e, 0x14029585e\njbe     short loc_1402958AB                                            ; +0x31, 0x140295861\nmovzx   eax, byte ptr [rcx+538h]                                       ; +0x33, 0x140295863\nadd     rcx, 140h                                                      ; +0x3a, 0x14029586a\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x41, 0x140295871\nmovd    xmm6, eax                                                      ; +0x46, 0x140295876\nmov     rax, [rcx]                                                     ; +0x4a, 0x14029587a\ncvtdq2ps xmm6, xmm6                                                    ; +0x4d, 0x14029587d\nmovaps  xmm0, xmm6                                                     ; +0x50, 0x140295880\nmulss   xmm0, xmm1                                                     ; +0x53, 0x140295883\ncvttss2si edx, xmm0                                                    ; +0x57, 0x140295887\ncall    qword ptr [rax+28h]                                            ; +0x5b, 0x14029588b\ncvttss2si eax, xmm6                                                    ; +0x5e, 0x14029588e\nmov     [rdi+540h], esi                                                ; +0x62, 0x140295892\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x68, 0x140295898\nmov     [rdi+538h], al                                                 ; +0x6d, 0x14029589d\nmovss   dword ptr [rdi+53Ch], xmm7                                     ; +0x73, 0x1402958a3\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x7b, 0x1402958ab\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x80, 0x1402958b0\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x85, 0x1402958b5\nadd     rsp, 40h                                                       ; +0x8a, 0x1402958ba\npop     rdi                                                            ; +0x8e, 0x1402958be\nretn                                                                   ; +0x8f, 0x1402958bf", "xrefs": ["GJBaseGameLayer::processAreaEffects @ 0x140331932", "GJBaseGameLayer::processAreaEffects @ 0x1403319c5", "<???> @ 0x1408af278", "<???> @ 0x1408af288", "<???> @ 0x14091d5ac"], "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"}