{"type": "func", "start": 5370349040, "end": 5370349264, "name": "GameObject::updateStartPos", "pseudocode": "// \n// GameObject::updateStartPos from 0x1401905f0 to 0x1401906d0 (224 bytes)\n// \n// 12 xrefs:\n// > EditorUI::updateTransformControl @ 0x140115572\n// > EditorUI::updateTransformControl @ 0x140115791\n// > EditorUI::flipObjectsX @ 0x140120cf1\n// > EditorUI::flipObjectsY @ 0x140120ed1\n// > EditorUI::getGroupCenter @ 0x140122d7f\n// > EditorUI::getGroupCenter @ 0x140122e41\n// > EditorUI::findSnapObject_1 @ 0x1401233f2\n// > GameObject::updateStartValues @ 0x140190933\n// > LevelEditorLayer::rotationForSlopeNearObject @ 0x1402d4ede\n// > LevelEditorLayer::updateVisibility @ 0x1402d914a\n// > RotateGameplayGameObject::updateStartValues @ 0x1404c4823\n// > <???> @ 0x1406cb904\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::updateStartPos(GameObject *a1)\n{\n  float x; // xmm2_4\n  float y; // xmm6_4\n  double v4; // xmm4_8\n  double v5; // xmm5_8\n  float v6; // xmm7_4\n  float v7; // xmm3_4\n  cocos2d::CCPoint v8; // [rsp+50h] [rbp+8h] BYREF\n\n  a1->getPosition_0(a1);\n  cocos2d::CCPoint::CCPoint(&v8);\n  x = a1->m_startPosition.x;\n  y = a1->m_startPosition.y;\n  v4 = a1->m_positionX - x;\n  v5 = a1->m_positionY - y;\n  v6 = v8.x - v4;\n  v8.x = v6;\n  v7 = v8.y - v5;\n  v8.y = v7;\n  if ( x != v6 || y != v7 )\n  {\n    *(_WORD *)&a1->m_isObjectRectDirty = 257;\n    a1->m_isDirty = 1;\n    a1->m_positionX = v6 + v4;\n    a1->m_positionY = v7 + v5;\n    cocos2d::CCPoint::operator=(&a1->m_startPosition, &v8);\n  }\n}", "assembly": "; \n; GameObject::updateStartPos from 0x1401905f0 to 0x1401906d0 (224 bytes)\n; \n; 12 xrefs:\n; > EditorUI::updateTransformControl @ 0x140115572\n; > EditorUI::updateTransformControl @ 0x140115791\n; > EditorUI::flipObjectsX @ 0x140120cf1\n; > EditorUI::flipObjectsY @ 0x140120ed1\n; > EditorUI::getGroupCenter @ 0x140122d7f\n; > EditorUI::getGroupCenter @ 0x140122e41\n; > EditorUI::findSnapObject_1 @ 0x1401233f2\n; > GameObject::updateStartValues @ 0x140190933\n; > LevelEditorLayer::rotationForSlopeNearObject @ 0x1402d4ede\n; > LevelEditorLayer::updateVisibility @ 0x1402d914a\n; > RotateGameplayGameObject::updateStartValues @ 0x1404c4823\n; > <???> @ 0x1406cb904\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    rbx                                                            ; +0x0, 0x1401905f0\nsub     rsp, 40h                                                       ; +0x2, 0x1401905f2\nmov     rax, [rcx]                                                     ; +0x6, 0x1401905f6\nmov     rbx, rcx                                                       ; +0x9, 0x1401905f9\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xc, 0x1401905fc\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x11, 0x140190601\ncall    qword ptr [rax+0C8h]                                           ; +0x16, 0x140190606\nmov     rdx, rax                                                       ; +0x1c, 0x14019060c\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x1f, 0x14019060f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x24, 0x140190614\nmovss   xmm1, [rsp+48h+arg_0]                                          ; +0x2a, 0x14019061a\nlea     rcx, [rbx+3C8h]                                                ; +0x30, 0x140190620\nmovss   xmm2, dword ptr [rcx]                                          ; +0x37, 0x140190627\nmovsd   xmm4, qword ptr [rbx+3B8h]                                     ; +0x3b, 0x14019062b\nmovss   xmm6, dword ptr [rbx+3CCh]                                     ; +0x43, 0x140190633\nmovsd   xmm5, qword ptr [rbx+3C0h]                                     ; +0x4b, 0x14019063b\ncvtps2pd xmm1, xmm1                                                    ; +0x53, 0x140190643\ncvtps2pd xmm0, xmm2                                                    ; +0x56, 0x140190646\nsubsd   xmm4, xmm0                                                     ; +0x59, 0x140190649\ncvtps2pd xmm0, xmm6                                                    ; +0x5d, 0x14019064d\nsubsd   xmm1, xmm4                                                     ; +0x60, 0x140190650\nsubsd   xmm5, xmm0                                                     ; +0x64, 0x140190654\ncvtpd2ps xmm7, xmm1                                                    ; +0x68, 0x140190658\nmovss   xmm1, [rsp+48h+arg_4]                                          ; +0x6c, 0x14019065c\nucomiss xmm2, xmm7                                                     ; +0x72, 0x140190662\ncvtps2pd xmm1, xmm1                                                    ; +0x75, 0x140190665\nmovss   [rsp+48h+arg_0], xmm7                                          ; +0x78, 0x140190668\nsubsd   xmm1, xmm5                                                     ; +0x7e, 0x14019066e\ncvtpd2ps xmm3, xmm1                                                    ; +0x82, 0x140190672\nmovss   [rsp+48h+arg_4], xmm3                                          ; +0x86, 0x140190676\njp      short loc_140190687                                            ; +0x8c, 0x14019067c\njnz     short loc_140190687                                            ; +0x8e, 0x14019067e\nucomiss xmm6, xmm3                                                     ; +0x90, 0x140190680\njp      short loc_140190687                                            ; +0x93, 0x140190683\njz      short loc_1401906C0                                            ; +0x95, 0x140190685\ncvtps2pd xmm0, xmm7                                                    ; +0x97, 0x140190687\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x9a, 0x14019068a\nmov     word ptr [rbx+368h], 101h                                      ; +0x9f, 0x14019068f\nmov     byte ptr [rbx+350h], 1                                         ; +0xa8, 0x140190698\ncvtps2pd xmm1, xmm3                                                    ; +0xaf, 0x14019069f\naddsd   xmm0, xmm4                                                     ; +0xb2, 0x1401906a2\naddsd   xmm1, xmm5                                                     ; +0xb6, 0x1401906a6\nmovsd   qword ptr [rbx+3B8h], xmm0                                     ; +0xba, 0x1401906aa\nmovsd   qword ptr [rbx+3C0h], xmm1                                     ; +0xc2, 0x1401906b2\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xca, 0x1401906ba\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xd0, 0x1401906c0\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xd5, 0x1401906c5\nadd     rsp, 40h                                                       ; +0xda, 0x1401906ca\npop     rbx                                                            ; +0xde, 0x1401906ce\nretn                                                                   ; +0xdf, 0x1401906cf", "xrefs": ["EditorUI::updateTransformControl @ 0x140115572", "EditorUI::updateTransformControl @ 0x140115791", "EditorUI::flipObjectsX @ 0x140120cf1", "EditorUI::flipObjectsY @ 0x140120ed1", "EditorUI::getGroupCenter @ 0x140122d7f", "EditorUI::getGroupCenter @ 0x140122e41", "EditorUI::findSnapObject_1 @ 0x1401233f2", "GameObject::updateStartValues @ 0x140190933", "LevelEditorLayer::rotationForSlopeNearObject @ 0x1402d4ede", "LevelEditorLayer::updateVisibility @ 0x1402d914a", "RotateGameplayGameObject::updateStartValues @ 0x1404c4823", "<???> @ 0x1406cb904"], "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"}