{"type": "func", "start": 4668860, "end": 4668970, "name": "GJBaseGameLayer::updateAreaObjectLastValues", "pseudocode": "// \n// GJBaseGameLayer::updateAreaObjectLastValues from 0x473dbc to 0x473e2a (110 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::resetAreaObjectValues @ 0x47cd9a\n// > GJBaseGameLayer::resetAreaObjectValues @ 0x47cef6\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 GJBaseGameLayer::updateAreaObjectLastValues(GJBaseGameLayer *a1, GameObject *a2)\n{\n  unsigned int m_commandIndex; // r3\n  float m_positionX; // s14\n  float m_positionY; // s14\n  unsigned int v7; // r3\n  float m_scaleX; // r2\n\n  if ( !a2->m_isDecoration2 )\n  {\n    m_commandIndex = a1->m_gameState.m_commandIndex;\n    if ( a2->m_unk4C4 != m_commandIndex )\n    {\n      m_positionX = a2->m_positionX;\n      a2->m_lastPosition.x = m_positionX;\n      m_positionY = a2->m_positionY;\n      a2->m_lastPosition.y = m_positionY;\n      a2->m_unk4C4 = m_commandIndex;\n      GameObject::dirtifyObjectRect(a2);\n    }\n    v7 = a1->m_gameState.m_commandIndex;\n    if ( a2->m_unk4CC != v7 )\n    {\n      m_scaleX = a2->m_scaleX;\n      a2->m_unk4CC = v7;\n      a2->m_customScaleX = m_scaleX;\n      a2->m_customScaleY = a2->m_scaleY;\n      GameObject::dirtifyObjectRect(a2);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateAreaObjectLastValues from 0x473dbc to 0x473e2a (110 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::resetAreaObjectValues @ 0x47cd9a\n; > GJBaseGameLayer::resetAreaObjectValues @ 0x47cef6\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            {R3-R5,LR}                                             ; +0x0, 0x473dbc\nMOV             R5, R0                                                 ; +0x2, 0x473dbe\nLDRB.W          R3, [R1,#0x44E]                                        ; +0x4, 0x473dc0\nMOV             R4, R1                                                 ; +0x8, 0x473dc4\nCBNZ            R3, locret_473E28                                      ; +0xa, 0x473dc6\nLDR.W           R3, [R0,#0x338]                                        ; +0xc, 0x473dc8\nLDR.W           R2, [R1,#0x428]                                        ; +0x10, 0x473dcc\nCMP             R2, R3                                                 ; +0x14, 0x473dd0\nBEQ             loc_473DFE                                             ; +0x16, 0x473dd2\nVLDR            D7, [R1,#0x320]                                        ; +0x18, 0x473dd4\nADDW            R2, R1, #0x41C                                         ; +0x1c, 0x473dd8\nMOV             R0, R1; this                                           ; +0x20, 0x473ddc\nVCVT.F32.F64    S14, D7                                                ; +0x22, 0x473dde\nVSTR            S14, [R2]                                              ; +0x26, 0x473de2\nADD.W           R2, R1, #0x420                                         ; +0x2a, 0x473de6\nVLDR            D7, [R1,#0x328]                                        ; +0x2e, 0x473dea\nVCVT.F32.F64    S14, D7                                                ; +0x32, 0x473dee\nVSTR            S14, [R2]                                              ; +0x36, 0x473df2\nSTR.W           R3, [R1,#0x428]                                        ; +0x3a, 0x473df6\nBL              _ZN10GameObject17dirtifyObjectRectEv; GameObject::dirtifyObjectRect(void) ; +0x3e, 0x473dfa\nLDR.W           R3, [R5,#0x338]                                        ; +0x42, 0x473dfe\nLDR.W           R2, [R4,#0x430]                                        ; +0x46, 0x473e02\nCMP             R2, R3                                                 ; +0x4a, 0x473e06\nBEQ             locret_473E28                                          ; +0x4c, 0x473e08\nLDR.W           R2, [R4,#0x3E8]                                        ; +0x4e, 0x473e0a\nMOV             R0, R4; this                                           ; +0x52, 0x473e0e\nSTR.W           R3, [R4,#0x430]                                        ; +0x54, 0x473e10\nSTR.W           R2, [R4,#0x34C]                                        ; +0x58, 0x473e14\nLDR.W           R2, [R4,#0x3EC]                                        ; +0x5c, 0x473e18\nSTR.W           R2, [R4,#0x350]                                        ; +0x60, 0x473e1c\nPOP.W           {R3-R5,LR}                                             ; +0x64, 0x473e20\nB.W             _ZN10GameObject17dirtifyObjectRectEv; GameObject::dirtifyObjectRect(void) ; +0x68, 0x473e24\nPOP             {R3-R5,PC}                                             ; +0x6c, 0x473e28", "xrefs": ["GJBaseGameLayer::resetAreaObjectValues @ 0x47cd9a", "GJBaseGameLayer::resetAreaObjectValues @ 0x47cef6"], "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"}