{"type": "func", "start": 4298059508, "end": 4298059668, "name": "GameObject::updateStartPos", "pseudocode": "// \n// GameObject::updateStartPos from 0x1002f2ef4 to 0x1002f2f94 (160 bytes)\n// \n// 10 xrefs:\n// > sub_10015ACD0 @ 0x10015ad80\n// > EditorUI::flipObjectsX @ 0x10015d8c0\n// > EditorUI::flipObjectsY @ 0x10015da48\n// > EditorUI::getGroupCenter @ 0x10015e618\n// > EditorUI::getGroupCenter @ 0x10015e69c\n// > sub_100160780 @ 0x1001607dc\n// > GameObject::updateStartValues @ 0x1002f32f8\n// > LevelEditorLayer::rotationForSlopeNearObject @ 0x1003fa6a0\n// > LevelEditorLayer::updateVisibility @ 0x1003fff18\n// > EditorUI::findSnapObject_1 @ 0x10047d080\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:57 +0000\n// \n\nfloat64_t __fastcall GameObject::updateStartPos(__int64 a1)\n{\n  double *v2; // x0\n  float32x2_t v3; // d2\n  float64x2_t v4; // q0\n  float32x2_t v5; // d1\n  int8x8_t v6; // d2\n  float32x2_t v8; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);\n  sub_1000262F4(&v8, v2);\n  v3 = *(float32x2_t *)(a1 + 960);\n  v4 = vsubq_f64(*(float64x2_t *)(a1 + 944), vcvtq_f64_f32(v3));\n  v5 = vcvt_f32_f64(vsubq_f64(vcvtq_f64_f32(v8), v4));\n  v8 = v5;\n  v6 = vmvn_s8((int8x8_t)vceq_f32(v3, v5));\n  if ( ((v6.i32[0] | v6.i32[1]) & 1) != 0 )\n  {\n    *(_WORD *)(a1 + 864) = 257;\n    *(_BYTE *)(a1 + 840) = 1;\n    *(float64x2_t *)(a1 + 944) = vaddq_f64(v4, vcvtq_f64_f32(v5));\n    v4.f64[0] = sub_10002630C((_QWORD *)(a1 + 960), (double *)&v8);\n  }\n  return v4.f64[0];\n}", "assembly": "; \n; GameObject::updateStartPos from 0x1002f2ef4 to 0x1002f2f94 (160 bytes)\n; \n; 10 xrefs:\n; > sub_10015ACD0 @ 0x10015ad80\n; > EditorUI::flipObjectsX @ 0x10015d8c0\n; > EditorUI::flipObjectsY @ 0x10015da48\n; > EditorUI::getGroupCenter @ 0x10015e618\n; > EditorUI::getGroupCenter @ 0x10015e69c\n; > sub_100160780 @ 0x1001607dc\n; > GameObject::updateStartValues @ 0x1002f32f8\n; > LevelEditorLayer::rotationForSlopeNearObject @ 0x1003fa6a0\n; > LevelEditorLayer::updateVisibility @ 0x1003fff18\n; > EditorUI::findSnapObject_1 @ 0x10047d080\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:57 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1002f2ef4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002f2ef8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002f2efc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002f2f00\nMOV             X19, X0                                                ; +0x10, 0x1002f2f04\nLDR             X8, [X0]                                               ; +0x14, 0x1002f2f08\nLDR             X8, [X8,#0xC0]                                         ; +0x18, 0x1002f2f0c\nBLR             X8                                                     ; +0x1c, 0x1002f2f10\nMOV             X1, X0                                                 ; +0x20, 0x1002f2f14\nADD             X0, SP, #0x20+var_18                                   ; +0x24, 0x1002f2f18\nBL              sub_1000262F4                                          ; +0x28, 0x1002f2f1c\nLDR             Q0, [X19,#0x3B0]                                       ; +0x2c, 0x1002f2f20\nLDR             D2, [X19,#0x3C0]                                       ; +0x30, 0x1002f2f24\nFCVTL           V1.2D, V2.2S                                           ; +0x34, 0x1002f2f28\nFSUB            V0.2D, V0.2D, V1.2D                                    ; +0x38, 0x1002f2f2c\nLDR             D1, [SP,#0x20+var_18]                                  ; +0x3c, 0x1002f2f30\nFCVTL           V1.2D, V1.2S                                           ; +0x40, 0x1002f2f34\nFSUB            V1.2D, V1.2D, V0.2D                                    ; +0x44, 0x1002f2f38\nFCVTN           V1.2S, V1.2D                                           ; +0x48, 0x1002f2f3c\nSTR             D1, [SP,#0x20+var_18]                                  ; +0x4c, 0x1002f2f40\nFCMEQ           V2.2S, V2.2S, V1.2S                                    ; +0x50, 0x1002f2f44\nMVN             V2.8B, V2.8B                                           ; +0x54, 0x1002f2f48\nUMOV            W8, V2.S[1]                                            ; +0x58, 0x1002f2f4c\nFMOV            W9, S2                                                 ; +0x5c, 0x1002f2f50\nORR             W8, W9, W8                                             ; +0x60, 0x1002f2f54\nTBZ             W8, #0, loc_1002F2F84                                  ; +0x64, 0x1002f2f58\nMOV             W8, #0x101                                             ; +0x68, 0x1002f2f5c\nSTRH            W8, [X19,#0x360]                                       ; +0x6c, 0x1002f2f60\nMOV             W8, #1                                                 ; +0x70, 0x1002f2f64\nSTRB            W8, [X19,#0x348]                                       ; +0x74, 0x1002f2f68\nFCVTL           V1.2D, V1.2S                                           ; +0x78, 0x1002f2f6c\nFADD            V0.2D, V0.2D, V1.2D                                    ; +0x7c, 0x1002f2f70\nSTR             Q0, [X19,#0x3B0]                                       ; +0x80, 0x1002f2f74\nADD             X0, X19, #0x3C0                                        ; +0x84, 0x1002f2f78\nADD             X1, SP, #0x20+var_18                                   ; +0x88, 0x1002f2f7c\nBL              sub_10002630C                                          ; +0x8c, 0x1002f2f80\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x90, 0x1002f2f84\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x94, 0x1002f2f88\nADD             SP, SP, #0x30 ; '0'                                    ; +0x98, 0x1002f2f8c\nRET                                                                    ; +0x9c, 0x1002f2f90", "xrefs": ["sub_10015ACD0 @ 0x10015ad80", "EditorUI::flipObjectsX @ 0x10015d8c0", "EditorUI::flipObjectsY @ 0x10015da48", "EditorUI::getGroupCenter @ 0x10015e618", "EditorUI::getGroupCenter @ 0x10015e69c", "sub_100160780 @ 0x1001607dc", "GameObject::updateStartValues @ 0x1002f32f8", "LevelEditorLayer::rotationForSlopeNearObject @ 0x1003fa6a0", "LevelEditorLayer::updateVisibility @ 0x1003fff18", "EditorUI::findSnapObject_1 @ 0x10047d080"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}