{"type": "func", "start": 4300981728, "end": 4300981848, "name": "GameObject::setAreaOpacity", "pseudocode": "// \n// GameObject::setAreaOpacity from 0x1005bc5e0 to 0x1005bc658 (120 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001429dd\n// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100142a82\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\nvoid __fastcall GameObject::setAreaOpacity(GameObject *a1, float a2, float a3, int a4)\n{\n  int m_areaOpacityRelated; // r15d\n\n  if ( a1->m_areaOpacityIndex != a4 || a1->m_areaOpacityValue > a3 )\n  {\n    m_areaOpacityRelated = a1->m_areaOpacityRelated;\n    ((void (__fastcall *)(GameObject *, _QWORD))a1->setOpacity)(\n      a1,\n      (unsigned __int8)(int)(float)((float)m_areaOpacityRelated * a2));\n    a1->m_areaOpacityRelated = m_areaOpacityRelated;\n    a1->m_areaOpacityIndex = a4;\n    a1->m_areaOpacityValue = a3;\n  }\n}", "assembly": "; \n; GameObject::setAreaOpacity from 0x1005bc5e0 to 0x1005bc658 (120 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001429dd\n; > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100142a82\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, 0x1005bc5e0\nmov     rbp, rsp                                                       ; +0x1, 0x1005bc5e1\npush    r15                                                            ; +0x4, 0x1005bc5e4\npush    r14                                                            ; +0x6, 0x1005bc5e6\npush    rbx                                                            ; +0x8, 0x1005bc5e8\npush    rax                                                            ; +0x9, 0x1005bc5e9\nmov     ebx, esi                                                       ; +0xa, 0x1005bc5ea\nmov     r14, rdi                                                       ; +0xc, 0x1005bc5ec\ncmp     [rdi+538h], esi                                                ; +0xf, 0x1005bc5ef\njnz     short loc_1005BC605                                            ; +0x15, 0x1005bc5f5\nmovss   xmm2, dword ptr [r14+534h]                                     ; +0x17, 0x1005bc5f7\nucomiss xmm2, xmm1                                                     ; +0x20, 0x1005bc600\njbe     short loc_1005BC64D                                            ; +0x23, 0x1005bc603\nmovzx   r15d, byte ptr [r14+530h]                                      ; +0x25, 0x1005bc605\nxorps   xmm2, xmm2                                                     ; +0x2d, 0x1005bc60d\ncvtsi2ss xmm2, r15d                                                    ; +0x30, 0x1005bc610\nmulss   xmm2, xmm0                                                     ; +0x35, 0x1005bc615\ncvttss2si eax, xmm2                                                    ; +0x39, 0x1005bc619\nmov     rcx, [r14]                                                     ; +0x3d, 0x1005bc61d\nmovzx   esi, al                                                        ; +0x40, 0x1005bc620\nmov     rdi, r14                                                       ; +0x43, 0x1005bc623\nmovss   [rbp+var_1C], xmm1                                             ; +0x46, 0x1005bc626\ncall    qword ptr [rcx+380h]                                           ; +0x4b, 0x1005bc62b\nmov     [r14+530h], r15b                                               ; +0x51, 0x1005bc631\nmov     [r14+538h], ebx                                                ; +0x58, 0x1005bc638\nmovss   xmm0, [rbp+var_1C]                                             ; +0x5f, 0x1005bc63f\nmovss   dword ptr [r14+534h], xmm0                                     ; +0x64, 0x1005bc644\nadd     rsp, 8                                                         ; +0x6d, 0x1005bc64d\npop     rbx                                                            ; +0x71, 0x1005bc651\npop     r14                                                            ; +0x72, 0x1005bc652\npop     r15                                                            ; +0x74, 0x1005bc654\npop     rbp                                                            ; +0x76, 0x1005bc656\nretn                                                                   ; +0x77, 0x1005bc657", "xrefs": ["GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001429dd", "GJBaseGameLayer::processAreaFadeGroupAction @ 0x100142a82"], "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"}