{"type": "func", "start": 4297415936, "end": 4297416096, "name": "GameObject::updateStartPos", "pseudocode": "// \n// GameObject::updateStartPos from 0x100255d00 to 0x100255da0 (160 bytes)\n// \n// 10 xrefs:\n// > GameObject::updateStartValues @ 0x100256104\n// > LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a764\n// > LevelEditorLayer::updateVisibility @ 0x10035e95c\n// > EditorUI::getGroupCenter @ 0x1003ecfec\n// > EditorUI::getGroupCenter @ 0x1003ed070\n// > EditorUI::resetObjectEditorValues @ 0x1003f014c\n// > GJTransformControl::loadValues @ 0x1003f060c\n// > EditorUI::flipObjectsY @ 0x1003f1f88\n// > EditorUI::flipObjectsX @ 0x1003f2110\n// > EditorUI::findSnapObject_1 @ 0x1003f83e4\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  __int64 *v2; // x0\n  cocos2d::CCPoint m_startPosition; // d2\n  float64x2_t v4; // q0\n  float32x2_t v5; // d1\n  int8x8_t v6; // d2\n  float32x2_t v7; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = (__int64 *)((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1);\n  sub_1000229B8((__int64 *)&v7, v2);\n  m_startPosition = a1->m_startPosition;\n  v4 = vsubq_f64(*(float64x2_t *)&a1->m_positionX, vcvtq_f64_f32((float32x2_t)m_startPosition));\n  v5 = vcvt_f32_f64(vsubq_f64(vcvtq_f64_f32(v7), v4));\n  v7 = v5;\n  v6 = vmvn_s8((int8x8_t)vceq_f32((float32x2_t)m_startPosition, v5));\n  if ( ((v6.i32[0] | v6.i32[1]) & 1) != 0 )\n  {\n    *(_WORD *)&a1->m_isObjectRectDirty = 257;\n    a1->m_isDirty = 1;\n    *(float64x2_t *)&a1->m_positionX = vaddq_f64(v4, vcvtq_f64_f32(v5));\n    sub_1000229D0(&a1->m_startPosition, (double *)&v7);\n  }\n}", "assembly": "; \n; GameObject::updateStartPos from 0x100255d00 to 0x100255da0 (160 bytes)\n; \n; 10 xrefs:\n; > GameObject::updateStartValues @ 0x100256104\n; > LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a764\n; > LevelEditorLayer::updateVisibility @ 0x10035e95c\n; > EditorUI::getGroupCenter @ 0x1003ecfec\n; > EditorUI::getGroupCenter @ 0x1003ed070\n; > EditorUI::resetObjectEditorValues @ 0x1003f014c\n; > GJTransformControl::loadValues @ 0x1003f060c\n; > EditorUI::flipObjectsY @ 0x1003f1f88\n; > EditorUI::flipObjectsX @ 0x1003f2110\n; > EditorUI::findSnapObject_1 @ 0x1003f83e4\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x100255d00\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100255d04\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100255d08\nADD             X29, SP, #0x20                                         ; +0xc, 0x100255d0c\nMOV             X19, X0                                                ; +0x10, 0x100255d10\nLDR             X8, [X0]                                               ; +0x14, 0x100255d14\nLDR             X8, [X8,#0xC0]                                         ; +0x18, 0x100255d18\nBLR             X8                                                     ; +0x1c, 0x100255d1c\nMOV             X1, X0                                                 ; +0x20, 0x100255d20\nADD             X0, SP, #0x20+var_18                                   ; +0x24, 0x100255d24\nBL              sub_1000229B8                                          ; +0x28, 0x100255d28\nLDR             Q0, [X19,#0x3B0]                                       ; +0x2c, 0x100255d2c\nLDR             D2, [X19,#0x3C0]                                       ; +0x30, 0x100255d30\nFCVTL           V1.2D, V2.2S                                           ; +0x34, 0x100255d34\nFSUB            V0.2D, V0.2D, V1.2D                                    ; +0x38, 0x100255d38\nLDR             D1, [SP,#0x20+var_18]                                  ; +0x3c, 0x100255d3c\nFCVTL           V1.2D, V1.2S                                           ; +0x40, 0x100255d40\nFSUB            V1.2D, V1.2D, V0.2D                                    ; +0x44, 0x100255d44\nFCVTN           V1.2S, V1.2D                                           ; +0x48, 0x100255d48\nSTR             D1, [SP,#0x20+var_18]                                  ; +0x4c, 0x100255d4c\nFCMEQ           V2.2S, V2.2S, V1.2S                                    ; +0x50, 0x100255d50\nMVN             V2.8B, V2.8B                                           ; +0x54, 0x100255d54\nUMOV            W8, V2.S[1]                                            ; +0x58, 0x100255d58\nFMOV            W9, S2                                                 ; +0x5c, 0x100255d5c\nORR             W8, W9, W8                                             ; +0x60, 0x100255d60\nTBZ             W8, #0, loc_100255D90                                  ; +0x64, 0x100255d64\nMOV             W8, #0x101                                             ; +0x68, 0x100255d68\nSTRH            W8, [X19,#0x360]                                       ; +0x6c, 0x100255d6c\nMOV             W8, #1                                                 ; +0x70, 0x100255d70\nSTRB            W8, [X19,#0x348]                                       ; +0x74, 0x100255d74\nFCVTL           V1.2D, V1.2S                                           ; +0x78, 0x100255d78\nFADD            V0.2D, V0.2D, V1.2D                                    ; +0x7c, 0x100255d7c\nSTR             Q0, [X19,#0x3B0]                                       ; +0x80, 0x100255d80\nADD             X0, X19, #0x3C0                                        ; +0x84, 0x100255d84\nADD             X1, SP, #0x20+var_18                                   ; +0x88, 0x100255d88\nBL              sub_1000229D0                                          ; +0x8c, 0x100255d8c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x90, 0x100255d90\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x94, 0x100255d94\nADD             SP, SP, #0x30 ; '0'                                    ; +0x98, 0x100255d98\nRET                                                                    ; +0x9c, 0x100255d9c", "xrefs": ["GameObject::updateStartValues @ 0x100256104", "LevelEditorLayer::rotationForSlopeNearObject @ 0x10035a764", "LevelEditorLayer::updateVisibility @ 0x10035e95c", "EditorUI::getGroupCenter @ 0x1003ecfec", "EditorUI::getGroupCenter @ 0x1003ed070", "EditorUI::resetObjectEditorValues @ 0x1003f014c", "GJTransformControl::loadValues @ 0x1003f060c", "EditorUI::flipObjectsY @ 0x1003f1f88", "EditorUI::flipObjectsX @ 0x1003f2110", "EditorUI::findSnapObject_1 @ 0x1003f83e4"], "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"}