{"type": "func", "start": 4298490468, "end": 4298490648, "name": "GameObjectCopy::resetObject", "pseudocode": "// \n// GameObjectCopy::resetObject from 0x10035c264 to 0x10035c318 (180 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::handleAction @ 0x10035c03c\n// > LevelEditorLayer::handleAction @ 0x10035c08c\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 GameObjectCopy::resetObject(GameObjectCopy *a1)\n{\n  __n128 v2; // q0\n  GameObject_vtbl *v3; // x8\n  __n128 v4; // q0\n\n  ((void (__fastcall *)(GameObject *, cocos2d::CCPoint *))a1->m_object->setPosition)(a1->m_object, &a1->m_position);\n  v2.n128_u32[0] = LODWORD(a1->m_rotationX);\n  v3 = a1->m_object->__vftable;\n  if ( v2.n128_f32[0] == a1->m_rotationY )\n  {\n    ((void (__fastcall *)(__n128))v3->setRotation)(v2);\n  }\n  else\n  {\n    ((void (*)(void))v3->setRotationX)();\n    v4.n128_u32[0] = LODWORD(a1->m_rotationY);\n    ((void (__fastcall *)(__n128))a1->m_object->setRotationY)(v4);\n  }\n  ((void (__fastcall *)(GameObject *, bool))a1->m_object->setFlipX)(a1->m_object, a1->m_isFlipX);\n  ((void (__fastcall *)(GameObject *, bool))a1->m_object->setFlipY)(a1->m_object, a1->m_isFlipY);\n  GameObject::updateCustomScaleX(a1->m_object, a1->m_customScaleX);\n  GameObject::updateCustomScaleY(a1->m_object, a1->m_customScaleY);\n  ((void (__fastcall *)(GameObject *))a1->m_object->updateStartValues)(a1->m_object);\n}", "assembly": "; \n; GameObjectCopy::resetObject from 0x10035c264 to 0x10035c318 (180 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::handleAction @ 0x10035c03c\n; > LevelEditorLayer::handleAction @ 0x10035c08c\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10035c264\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10035c268\nADD             X29, SP, #0x10                                         ; +0x8, 0x10035c26c\nMOV             X19, X0                                                ; +0xc, 0x10035c270\nLDR             X0, [X0,#0x38]                                         ; +0x10, 0x10035c274\nLDR             X8, [X0]                                               ; +0x14, 0x10035c278\nLDR             X8, [X8,#0xB8]                                         ; +0x18, 0x10035c27c\nADD             X1, X19, #0x40 ; '@'                                   ; +0x1c, 0x10035c280\nBLR             X8                                                     ; +0x20, 0x10035c284\nLDP             S0, S1, [X19,#0x48]                                    ; +0x24, 0x10035c288\nLDR             X0, [X19,#0x38]                                        ; +0x28, 0x10035c28c\nLDR             X8, [X0]                                               ; +0x2c, 0x10035c290\nFCMP            S0, S1                                                 ; +0x30, 0x10035c294\nB.NE            loc_10035C2A4                                          ; +0x34, 0x10035c298\nLDR             X8, [X8,#0x158]                                        ; +0x38, 0x10035c29c\nB               loc_10035C2BC                                          ; +0x3c, 0x10035c2a0\nLDR             X8, [X8,#0x168]                                        ; +0x40, 0x10035c2a4\nBLR             X8                                                     ; +0x44, 0x10035c2a8\nLDR             X0, [X19,#0x38]                                        ; +0x48, 0x10035c2ac\nLDR             S0, [X19,#0x4C]                                        ; +0x4c, 0x10035c2b0\nLDR             X8, [X0]                                               ; +0x50, 0x10035c2b4\nLDR             X8, [X8,#0x178]                                        ; +0x54, 0x10035c2b8\nBLR             X8                                                     ; +0x58, 0x10035c2bc\nLDR             X0, [X19,#0x38]                                        ; +0x5c, 0x10035c2c0\nLDRB            W1, [X19,#0x50]                                        ; +0x60, 0x10035c2c4\nLDR             X8, [X0]                                               ; +0x64, 0x10035c2c8\nLDR             X8, [X8,#0x4C8]                                        ; +0x68, 0x10035c2cc\nBLR             X8                                                     ; +0x6c, 0x10035c2d0\nLDR             X0, [X19,#0x38]                                        ; +0x70, 0x10035c2d4\nLDRB            W1, [X19,#0x51]                                        ; +0x74, 0x10035c2d8\nLDR             X8, [X0]                                               ; +0x78, 0x10035c2dc\nLDR             X8, [X8,#0x4D0]                                        ; +0x7c, 0x10035c2e0\nBLR             X8                                                     ; +0x80, 0x10035c2e4\nLDR             X0, [X19,#0x38]                                        ; +0x84, 0x10035c2e8\nLDR             S0, [X19,#0x54]                                        ; +0x88, 0x10035c2ec\nBL              GameObject__updateCustomScaleX                         ; +0x8c, 0x10035c2f0\nLDR             X0, [X19,#0x38]                                        ; +0x90, 0x10035c2f4\nLDR             S0, [X19,#0x58]                                        ; +0x94, 0x10035c2f8\nBL              GameObject__updateCustomScaleY                         ; +0x98, 0x10035c2fc\nLDR             X0, [X19,#0x38]                                        ; +0x9c, 0x10035c300\nLDR             X8, [X0]                                               ; +0xa0, 0x10035c304\nLDR             X1, [X8,#0x550]                                        ; +0xa4, 0x10035c308\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa8, 0x10035c30c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xac, 0x10035c310\nBR              X1                                                     ; +0xb0, 0x10035c314", "xrefs": ["LevelEditorLayer::handleAction @ 0x10035c03c", "LevelEditorLayer::handleAction @ 0x10035c08c"], "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"}