{"type": "func", "start": 5370382192, "end": 5370382336, "name": "GameObject::setAreaOpacity", "pseudocode": "// \n// GameObject::setAreaOpacity from 0x140198770 to 0x140198800 (144 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processAreaEffects @ 0x140228cf2\n// > GJBaseGameLayer::processAreaEffects @ 0x140228d85\n// > <???> @ 0x140678f04\n// > <???> @ 0x140678f14\n// > <???> @ 0x1406cbc40\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 GameObject::setAreaOpacity(GameObject *a1, float a2, float a3, int a4)\n{\n  float m_areaOpacityRelated; // xmm6_4\n\n  if ( a1->m_areaOpacityIndex != a4 || a1->m_areaOpacityValue > a3 )\n  {\n    m_areaOpacityRelated = (float)a1->m_areaOpacityRelated;\n    a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, (int)(float)(m_areaOpacityRelated * a2));\n    a1->m_areaOpacityIndex = a4;\n    a1->m_areaOpacityRelated = (int)m_areaOpacityRelated;\n    a1->m_areaOpacityValue = a3;\n  }\n}", "assembly": "; \n; GameObject::setAreaOpacity from 0x140198770 to 0x140198800 (144 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processAreaEffects @ 0x140228cf2\n; > GJBaseGameLayer::processAreaEffects @ 0x140228d85\n; > <???> @ 0x140678f04\n; > <???> @ 0x140678f14\n; > <???> @ 0x1406cbc40\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140198770\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140198775\npush    rdi                                                            ; +0xa, 0x14019877a\nsub     rsp, 40h                                                       ; +0xb, 0x14019877b\nmov     esi, r9d                                                       ; +0xf, 0x14019877f\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x12, 0x140198782\nmovaps  xmm7, xmm2                                                     ; +0x17, 0x140198787\nmov     rdi, rcx                                                       ; +0x1a, 0x14019878a\ncmp     [rcx+540h], r9d                                                ; +0x1d, 0x14019878d\njnz     short loc_1401987A3                                            ; +0x24, 0x140198794\nmovss   xmm0, dword ptr [rcx+53Ch]                                     ; +0x26, 0x140198796\ncomiss  xmm0, xmm7                                                     ; +0x2e, 0x14019879e\njbe     short loc_1401987EB                                            ; +0x31, 0x1401987a1\nmovzx   eax, byte ptr [rcx+538h]                                       ; +0x33, 0x1401987a3\nadd     rcx, 140h                                                      ; +0x3a, 0x1401987aa\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x41, 0x1401987b1\nmovd    xmm6, eax                                                      ; +0x46, 0x1401987b6\nmov     rax, [rcx]                                                     ; +0x4a, 0x1401987ba\ncvtdq2ps xmm6, xmm6                                                    ; +0x4d, 0x1401987bd\nmovaps  xmm0, xmm6                                                     ; +0x50, 0x1401987c0\nmulss   xmm0, xmm1                                                     ; +0x53, 0x1401987c3\ncvttss2si edx, xmm0                                                    ; +0x57, 0x1401987c7\ncall    qword ptr [rax+28h]                                            ; +0x5b, 0x1401987cb\ncvttss2si eax, xmm6                                                    ; +0x5e, 0x1401987ce\nmov     [rdi+540h], esi                                                ; +0x62, 0x1401987d2\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x68, 0x1401987d8\nmov     [rdi+538h], al                                                 ; +0x6d, 0x1401987dd\nmovss   dword ptr [rdi+53Ch], xmm7                                     ; +0x73, 0x1401987e3\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x7b, 0x1401987eb\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x80, 0x1401987f0\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x85, 0x1401987f5\nadd     rsp, 40h                                                       ; +0x8a, 0x1401987fa\npop     rdi                                                            ; +0x8e, 0x1401987fe\nretn                                                                   ; +0x8f, 0x1401987ff", "xrefs": ["GJBaseGameLayer::processAreaEffects @ 0x140228cf2", "GJBaseGameLayer::processAreaEffects @ 0x140228d85", "<???> @ 0x140678f04", "<???> @ 0x140678f14", "<???> @ 0x1406cbc40"], "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"}