{"type": "func", "start": 4297439532, "end": 4297439652, "name": "GameObject::setAreaOpacity", "pseudocode": "// \n// GameObject::setAreaOpacity from 0x10025b92c to 0x10025b9a4 (120 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c74\n// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c98\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  unsigned int m_areaOpacityRelated; // w21\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 int)(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 0x10025b92c to 0x10025b9a4 (120 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c74\n; > GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c98\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\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x10025b92c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10025b930\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10025b934\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10025b938\nADD             X29, SP, #0x30                                         ; +0x10, 0x10025b93c\nMOV             X19, X1                                                ; +0x14, 0x10025b940\nFMOV            S8, S1                                                 ; +0x18, 0x10025b944\nMOV             X20, X0                                                ; +0x1c, 0x10025b948\nLDR             W8, [X0,#0x538]                                        ; +0x20, 0x10025b94c\nCMP             W8, W1                                                 ; +0x24, 0x10025b950\nB.NE            loc_10025B964                                          ; +0x28, 0x10025b954\nLDR             S1, [X20,#0x534]                                       ; +0x2c, 0x10025b958\nFCMP            S1, S8                                                 ; +0x30, 0x10025b95c\nB.LE            loc_10025B990                                          ; +0x34, 0x10025b960\nLDRB            W21, [X20,#0x530]                                      ; +0x38, 0x10025b964\nUCVTF           S1, W21                                                ; +0x3c, 0x10025b968\nFMUL            S0, S1, S0                                             ; +0x40, 0x10025b96c\nFCVTZS          W1, S0                                                 ; +0x44, 0x10025b970\nLDR             X8, [X20]                                              ; +0x48, 0x10025b974\nLDR             X8, [X8,#0x380]                                        ; +0x4c, 0x10025b978\nMOV             X0, X20                                                ; +0x50, 0x10025b97c\nBLR             X8                                                     ; +0x54, 0x10025b980\nSTRB            W21, [X20,#0x530]                                      ; +0x58, 0x10025b984\nSTR             W19, [X20,#0x538]                                      ; +0x5c, 0x10025b988\nSTR             S8, [X20,#0x534]                                       ; +0x60, 0x10025b98c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x64, 0x10025b990\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x68, 0x10025b994\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x6c, 0x10025b998\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x70, 0x10025b99c\nRET                                                                    ; +0x74, 0x10025b9a0", "xrefs": ["GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c74", "GJBaseGameLayer::processAreaFadeGroupAction @ 0x1001f5c98"], "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"}