{"type": "func", "start": 4300904544, "end": 4300904683, "name": "GameObject::updateStartPos", "pseudocode": "// \n// GameObject::updateStartPos from 0x1005a9860 to 0x1005a98eb (139 bytes)\n// \n// 9 xrefs:\n// > EditorUI::getGroupCenter @ 0x10003bb27\n// > EditorUI::getGroupCenter @ 0x10003bb9e\n// > EditorUI::resetObjectEditorValues @ 0x100040721\n// > GJTransformControl::loadValues @ 0x100040cc1\n// > EditorUI::flipObjectsY @ 0x10004347b\n// > EditorUI::flipObjectsX @ 0x10004364b\n// > EditorUI::findSnapObject_1 @ 0x10004e825\n// > LevelEditorLayer::rotationForSlopeNearObject @ 0x1000e0b08\n// > LevelEditorLayer::updateVisibility @ 0x1000eae63\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::updateStartPos(GameObject *a1)\n{\n  __m64 v1; // rax\n  double *v2; // rax\n  __m128 m_startPosition; // xmm2\n  __m128d v4; // xmm0\n  __m128 v5; // xmm1\n  __m128 v6; // xmm2\n  __m64 v7[2]; // [rsp+0h] [rbp-10h] BYREF\n\n  v7[0] = v1;\n  v2 = (double *)((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1);\n  sub_10028CC60(v7, v2);\n  m_startPosition = (__m128)(unsigned __int64)a1->m_startPosition;\n  v4 = _mm_sub_pd(*(__m128d *)&a1->m_positionX, _mm_cvtps_pd(m_startPosition));\n  v5 = _mm_cvtpd_ps(_mm_sub_pd(_mm_cvtps_pd(v7[0]), v4));\n  v7[0] = *(__m64 *)v5.f32;\n  v6 = _mm_cmpneq_ps(m_startPosition, v5);\n  if ( _mm_movemask_pd((__m128d)_mm_unpacklo_ps(v6, v6)) )\n  {\n    *(_WORD *)&a1->m_isObjectRectDirty = 257;\n    a1->m_isDirty = 1;\n    *(__m128d *)&a1->m_positionX = _mm_add_pd(v4, _mm_cvtps_pd(v5));\n    sub_10028CC90(&a1->m_startPosition, (double *)v7);\n  }\n}", "assembly": "; \n; GameObject::updateStartPos from 0x1005a9860 to 0x1005a98eb (139 bytes)\n; \n; 9 xrefs:\n; > EditorUI::getGroupCenter @ 0x10003bb27\n; > EditorUI::getGroupCenter @ 0x10003bb9e\n; > EditorUI::resetObjectEditorValues @ 0x100040721\n; > GJTransformControl::loadValues @ 0x100040cc1\n; > EditorUI::flipObjectsY @ 0x10004347b\n; > EditorUI::flipObjectsX @ 0x10004364b\n; > EditorUI::findSnapObject_1 @ 0x10004e825\n; > LevelEditorLayer::rotationForSlopeNearObject @ 0x1000e0b08\n; > LevelEditorLayer::updateVisibility @ 0x1000eae63\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    rbp                                                            ; +0x0, 0x1005a9860\nmov     rbp, rsp                                                       ; +0x1, 0x1005a9861\npush    rbx                                                            ; +0x4, 0x1005a9864\npush    rax                                                            ; +0x5, 0x1005a9865\nmov     rbx, rdi                                                       ; +0x6, 0x1005a9866\nmov     rax, [rdi]                                                     ; +0x9, 0x1005a9869\ncall    qword ptr [rax+0C0h]                                           ; +0xc, 0x1005a986c\nlea     rdi, [rbp+var_10]                                              ; +0x12, 0x1005a9872\nmov     rsi, rax                                                       ; +0x16, 0x1005a9876\ncall    sub_10028CC60                                                  ; +0x19, 0x1005a9879\nmovsd   xmm2, qword ptr [rbx+3C0h]                                     ; +0x1e, 0x1005a987e\ncvtps2pd xmm1, xmm2                                                    ; +0x26, 0x1005a9886\nmovupd  xmm0, xmmword ptr [rbx+3B0h]                                   ; +0x29, 0x1005a9889\nsubpd   xmm0, xmm1                                                     ; +0x31, 0x1005a9891\ncvtps2pd xmm1, [rbp+var_10]                                            ; +0x35, 0x1005a9895\nsubpd   xmm1, xmm0                                                     ; +0x39, 0x1005a9899\ncvtpd2ps xmm1, xmm1                                                    ; +0x3d, 0x1005a989d\nmovlpd  [rbp+var_10], xmm1                                             ; +0x41, 0x1005a98a1\ncmpneqps xmm2, xmm1                                                    ; +0x46, 0x1005a98a6\nunpcklps xmm2, xmm2                                                    ; +0x4a, 0x1005a98aa\nmovmskpd eax, xmm2                                                     ; +0x4d, 0x1005a98ad\ntest    eax, eax                                                       ; +0x51, 0x1005a98b1\njz      short loc_1005A98E4                                            ; +0x53, 0x1005a98b3\nlea     rdi, [rbx+3C0h]                                                ; +0x55, 0x1005a98b5\nmov     word ptr [rbx+360h], 101h                                      ; +0x5c, 0x1005a98bc\nmov     byte ptr [rbx+348h], 1                                         ; +0x65, 0x1005a98c5\ncvtps2pd xmm1, xmm1                                                    ; +0x6c, 0x1005a98cc\naddpd   xmm0, xmm1                                                     ; +0x6f, 0x1005a98cf\nmovupd  xmmword ptr [rbx+3B0h], xmm0                                   ; +0x73, 0x1005a98d3\nlea     rsi, [rbp+var_10]                                              ; +0x7b, 0x1005a98db\ncall    sub_10028CC90                                                  ; +0x7f, 0x1005a98df\nadd     rsp, 8                                                         ; +0x84, 0x1005a98e4\npop     rbx                                                            ; +0x88, 0x1005a98e8\npop     rbp                                                            ; +0x89, 0x1005a98e9\nretn                                                                   ; +0x8a, 0x1005a98ea", "xrefs": ["EditorUI::getGroupCenter @ 0x10003bb27", "EditorUI::getGroupCenter @ 0x10003bb9e", "EditorUI::resetObjectEditorValues @ 0x100040721", "GJTransformControl::loadValues @ 0x100040cc1", "EditorUI::flipObjectsY @ 0x10004347b", "EditorUI::flipObjectsX @ 0x10004364b", "EditorUI::findSnapObject_1 @ 0x10004e825", "LevelEditorLayer::rotationForSlopeNearObject @ 0x1000e0b08", "LevelEditorLayer::updateVisibility @ 0x1000eae63"], "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"}