{"type": "func", "start": 5371385760, "end": 5371385974, "name": "GameObject::updateStartPos", "pseudocode": "// \n// GameObject::updateStartPos from 0x14028d7a0 to 0x14028d876 (214 bytes)\n// \n// 12 xrefs:\n// > GJTransformControl::loadValues @ 0x1401a5f91\n// > EditorUI::findSnapObject_1 @ 0x1401bf5a1\n// > EditorUI::flipObjectsX @ 0x1401fff81\n// > EditorUI::flipObjectsY @ 0x140200171\n// > EditorUI::getGroupCenter @ 0x1402022ff\n// > EditorUI::getGroupCenter @ 0x1402023c1\n// > EditorUI::resetObjectEditorValues @ 0x140203861\n// > GameObject::updateStartValues @ 0x14028dba3\n// > LevelEditorLayer::rotationForSlopeNearObject @ 0x1403f106e\n// > LevelEditorLayer::updateVisibility @ 0x1403f66de\n// > RotateGameplayGameObject::updateStartValues @ 0x140665823\n// > <???> @ 0x14091d2b8\n// \n// This function is hookable on this platform (idp: pc, 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:29:04 +0000\n// \n\ndouble __fastcall GameObject::updateStartPos(__int64 a1)\n{\n  const struct cocos2d::CCPoint *v2; // rax\n  float v3; // xmm1_4\n  float v4; // xmm5_4\n  double v5; // xmm3_8\n  float v6; // xmm6_4\n  double v7; // xmm4_8\n  double result; // xmm0_8\n  float v9; // xmm2_4\n  float v10; // [rsp+40h] [rbp+8h] BYREF\n  float v11; // [rsp+44h] [rbp+Ch]\n\n  v2 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v2);\n  v3 = *(float *)(a1 + 968);\n  v4 = *(float *)(a1 + 972);\n  v5 = *(double *)(a1 + 952) - v3;\n  v6 = v10 - v5;\n  v7 = *(double *)(a1 + 960) - v4;\n  v10 = v6;\n  result = v11 - v7;\n  v9 = result;\n  v11 = v9;\n  if ( v3 != v6 || v4 != v9 )\n  {\n    *(_WORD *)(a1 + 872) = 257;\n    *(_BYTE *)(a1 + 848) = 1;\n    *(double *)(a1 + 952) = v6 + v5;\n    *(double *)(a1 + 960) = v9 + v7;\n    return cocos2d::CCPoint::operator=(a1 + 968, &v10);\n  }\n  return result;\n}", "assembly": "; \n; GameObject::updateStartPos from 0x14028d7a0 to 0x14028d876 (214 bytes)\n; \n; 12 xrefs:\n; > GJTransformControl::loadValues @ 0x1401a5f91\n; > EditorUI::findSnapObject_1 @ 0x1401bf5a1\n; > EditorUI::flipObjectsX @ 0x1401fff81\n; > EditorUI::flipObjectsY @ 0x140200171\n; > EditorUI::getGroupCenter @ 0x1402022ff\n; > EditorUI::getGroupCenter @ 0x1402023c1\n; > EditorUI::resetObjectEditorValues @ 0x140203861\n; > GameObject::updateStartValues @ 0x14028dba3\n; > LevelEditorLayer::rotationForSlopeNearObject @ 0x1403f106e\n; > LevelEditorLayer::updateVisibility @ 0x1403f66de\n; > RotateGameplayGameObject::updateStartValues @ 0x140665823\n; > <???> @ 0x14091d2b8\n; \n; This function is hookable on this platform (idp: pc, 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:29:04 +0000\n; \npush    rbx                                                            ; +0x0, 0x14028d7a0\nsub     rsp, 30h                                                       ; +0x2, 0x14028d7a2\nmov     rax, [rcx]                                                     ; +0x6, 0x14028d7a6\nmov     rbx, rcx                                                       ; +0x9, 0x14028d7a9\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xc, 0x14028d7ac\ncall    qword ptr [rax+0C8h]                                           ; +0x11, 0x14028d7b1\nmov     rdx, rax                                                       ; +0x17, 0x14028d7b7\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x1a, 0x14028d7ba\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x1f, 0x14028d7bf\nmovsd   xmm3, qword ptr [rbx+3B8h]                                     ; +0x25, 0x14028d7c5\nlea     rcx, [rbx+3C8h]                                                ; +0x2d, 0x14028d7cd\nmovss   xmm1, dword ptr [rcx]                                          ; +0x34, 0x14028d7d4\nmovss   xmm5, dword ptr [rbx+3CCh]                                     ; +0x38, 0x14028d7d8\nmovsd   xmm4, qword ptr [rbx+3C0h]                                     ; +0x40, 0x14028d7e0\ncvtps2pd xmm0, xmm1                                                    ; +0x48, 0x14028d7e8\nsubsd   xmm3, xmm0                                                     ; +0x4b, 0x14028d7eb\nmovss   xmm0, [rsp+38h+arg_0]                                          ; +0x4f, 0x14028d7ef\ncvtps2pd xmm0, xmm0                                                    ; +0x55, 0x14028d7f5\nsubsd   xmm0, xmm3                                                     ; +0x58, 0x14028d7f8\ncvtpd2ps xmm6, xmm0                                                    ; +0x5c, 0x14028d7fc\ncvtps2pd xmm0, xmm5                                                    ; +0x60, 0x14028d800\nucomiss xmm1, xmm6                                                     ; +0x63, 0x14028d803\nsubsd   xmm4, xmm0                                                     ; +0x66, 0x14028d806\nmovss   [rsp+38h+arg_0], xmm6                                          ; +0x6a, 0x14028d80a\nmovss   xmm0, [rsp+38h+arg_4]                                          ; +0x70, 0x14028d810\ncvtps2pd xmm0, xmm0                                                    ; +0x76, 0x14028d816\nsubsd   xmm0, xmm4                                                     ; +0x79, 0x14028d819\ncvtpd2ps xmm2, xmm0                                                    ; +0x7d, 0x14028d81d\nmovss   [rsp+38h+arg_4], xmm2                                          ; +0x81, 0x14028d821\njp      short loc_14028D832                                            ; +0x87, 0x14028d827\njnz     short loc_14028D832                                            ; +0x89, 0x14028d829\nucomiss xmm5, xmm2                                                     ; +0x8b, 0x14028d82b\njp      short loc_14028D832                                            ; +0x8e, 0x14028d82e\njz      short loc_14028D86B                                            ; +0x90, 0x14028d830\ncvtps2pd xmm0, xmm6                                                    ; +0x92, 0x14028d832\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x95, 0x14028d835\nmov     word ptr [rbx+368h], 101h                                      ; +0x9a, 0x14028d83a\nmov     byte ptr [rbx+350h], 1                                         ; +0xa3, 0x14028d843\ncvtps2pd xmm1, xmm2                                                    ; +0xaa, 0x14028d84a\naddsd   xmm0, xmm3                                                     ; +0xad, 0x14028d84d\naddsd   xmm1, xmm4                                                     ; +0xb1, 0x14028d851\nmovsd   qword ptr [rbx+3B8h], xmm0                                     ; +0xb5, 0x14028d855\nmovsd   qword ptr [rbx+3C0h], xmm1                                     ; +0xbd, 0x14028d85d\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc5, 0x14028d865\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xcb, 0x14028d86b\nadd     rsp, 30h                                                       ; +0xd0, 0x14028d870\npop     rbx                                                            ; +0xd4, 0x14028d874\nretn                                                                   ; +0xd5, 0x14028d875", "xrefs": ["GJTransformControl::loadValues @ 0x1401a5f91", "EditorUI::findSnapObject_1 @ 0x1401bf5a1", "EditorUI::flipObjectsX @ 0x1401fff81", "EditorUI::flipObjectsY @ 0x140200171", "EditorUI::getGroupCenter @ 0x1402022ff", "EditorUI::getGroupCenter @ 0x1402023c1", "EditorUI::resetObjectEditorValues @ 0x140203861", "GameObject::updateStartValues @ 0x14028dba3", "LevelEditorLayer::rotationForSlopeNearObject @ 0x1403f106e", "LevelEditorLayer::updateVisibility @ 0x1403f66de", "RotateGameplayGameObject::updateStartValues @ 0x140665823", "<???> @ 0x14091d2b8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}