{"type": "func", "start": 4296979592, "end": 4296979876, "name": "GJBaseGameLayer::getMoveTargetDelta", "pseudocode": "// \n// GJBaseGameLayer::getMoveTargetDelta from 0x1001eb488 to 0x1001eb5a4 (284 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::triggerMoveCommand @ 0x1001ee89c\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\ncocos2d::CCPoint __fastcall GJBaseGameLayer::getMoveTargetDelta(GJBaseGameLayer *a1, EffectGameObject *a2, bool a3)\n{\n  float32x2_t *v3; // x8\n  _BOOL4 v4; // w22\n  float32x2_t *v7; // x19\n  int m_targetModCenterID; // w1\n  GameObject *MainObject; // x0\n  GameObject *v10; // x20\n  PlayerObject *m_player1; // x0\n  int m_centerGroupID; // w1\n  float32x2_t v15; // [xsp+0h] [xbp-40h] BYREF\n  float32x2_t v16; // [xsp+8h] [xbp-38h] BYREF\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v4 = a3;\n  v7 = v3;\n  m_targetModCenterID = a2->m_targetModCenterID;\n  if ( m_targetModCenterID <= 0 )\n    m_targetModCenterID = a2->m_targetGroupID;\n  if ( a3 )\n    MainObject = GJBaseGameLayer::tryGetMainObject(a1, m_targetModCenterID);\n  else\n    MainObject = GJBaseGameLayer::tryGetObject(a1, m_targetModCenterID);\n  v10 = MainObject;\n  if ( a2->m_targetPlayer1 )\n  {\nLABEL_7:\n    m_player1 = a1->m_player1;\n    goto LABEL_8;\n  }\n  if ( a2->m_targetPlayer2 )\n  {\n    if ( a1->m_gameState.m_isDualMode )\n    {\n      m_player1 = a1->m_player2;\n      goto LABEL_8;\n    }\n    goto LABEL_7;\n  }\n  m_centerGroupID = a2->m_centerGroupID;\n  if ( v4 )\n    m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetMainObject(a1, m_centerGroupID);\n  else\n    m_player1 = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);\nLABEL_8:\n  if ( v10 && m_player1 && v10->m_uniqueID != m_player1->m_uniqueID )\n  {\n    ((void (__fastcall *)(float32x2_t *__return_ptr))m_player1->getRealPosition)(&v16);\n    ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *))v10->getRealPosition)(&v15, v10);\n    result.x = sub_1000229F0(&v16, &v15, v7).f32[0];\n  }\n  else\n  {\n    result.x = sub_1000229B8((__int64 *)v7, &qword_10086C9A0);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getMoveTargetDelta from 0x1001eb488 to 0x1001eb5a4 (284 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::triggerMoveCommand @ 0x1001ee89c\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, #0x50                                          ; +0x0, 0x1001eb488\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001eb48c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001eb490\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001eb494\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001eb498\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001eb49c\nMOV             X22, X2                                                ; +0x18, 0x1001eb4a0\nMOV             X23, X1                                                ; +0x1c, 0x1001eb4a4\nMOV             X21, X0                                                ; +0x20, 0x1001eb4a8\nMOV             X19, X8                                                ; +0x24, 0x1001eb4ac\nLDR             W1, [X1,#0x5F8]                                        ; +0x28, 0x1001eb4b0\nCMP             W1, #0                                                 ; +0x2c, 0x1001eb4b4\nB.GT            loc_1001EB4C0                                          ; +0x30, 0x1001eb4b8\nLDR             W1, [X23,#0x5B8]                                       ; +0x34, 0x1001eb4bc\nMOV             X0, X21                                                ; +0x38, 0x1001eb4c0\nCBZ             W22, loc_1001EB4D0                                     ; +0x3c, 0x1001eb4c4\nBL              GJBaseGameLayer__tryGetMainObject                      ; +0x40, 0x1001eb4c8\nB               loc_1001EB4D4                                          ; +0x44, 0x1001eb4cc\nBL              GJBaseGameLayer__tryGetObject                          ; +0x48, 0x1001eb4d0\nMOV             X20, X0                                                ; +0x4c, 0x1001eb4d4\nLDRB            W8, [X23,#0x694]                                       ; +0x50, 0x1001eb4d8\nTBZ             W8, #0, loc_1001EB520                                  ; +0x54, 0x1001eb4dc\nLDR             X0, [X21,#0xCC8]                                       ; +0x58, 0x1001eb4e0\nCBZ             X20, loc_1001EB4FC                                     ; +0x5c, 0x1001eb4e4\nCBZ             X0, loc_1001EB4FC                                      ; +0x60, 0x1001eb4e8\nLDR             W8, [X20,#0x394]                                       ; +0x64, 0x1001eb4ec\nLDR             W9, [X0,#0x394]                                        ; +0x68, 0x1001eb4f0\nCMP             W8, W9                                                 ; +0x6c, 0x1001eb4f4\nB.NE            loc_1001EB550                                          ; +0x70, 0x1001eb4f8\nADRL            X1, qword_10086C9A0                                    ; +0x74, 0x1001eb4fc\nMOV             X0, X19                                                ; +0x7c, 0x1001eb504\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x80, 0x1001eb508\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x84, 0x1001eb50c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x88, 0x1001eb510\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x8c, 0x1001eb514\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x90, 0x1001eb518\nB               sub_1000229B8                                          ; +0x94, 0x1001eb51c\nLDRB            W8, [X23,#0x695]                                       ; +0x98, 0x1001eb520\nCMP             W8, #1                                                 ; +0x9c, 0x1001eb524\nB.NE            loc_1001EB53C                                          ; +0xa0, 0x1001eb528\nLDRB            W8, [X21,#0x3F2]                                       ; +0xa4, 0x1001eb52c\nTBZ             W8, #0, loc_1001EB4E0                                  ; +0xa8, 0x1001eb530\nLDR             X0, [X21,#0xCD0]                                       ; +0xac, 0x1001eb534\nB               loc_1001EB4E4                                          ; +0xb0, 0x1001eb538\nLDR             W1, [X23,#0x5BC]                                       ; +0xb4, 0x1001eb53c\nMOV             X0, X21                                                ; +0xb8, 0x1001eb540\nCBZ             W22, loc_1001EB59C                                     ; +0xbc, 0x1001eb544\nBL              GJBaseGameLayer__tryGetMainObject                      ; +0xc0, 0x1001eb548\nB               loc_1001EB4E4                                          ; +0xc4, 0x1001eb54c\nLDR             X8, [X0]                                               ; +0xc8, 0x1001eb550\nLDR             X9, [X8,#0x540]                                        ; +0xcc, 0x1001eb554\nADD             X8, SP, #0x40+var_38                                   ; +0xd0, 0x1001eb558\nBLR             X9                                                     ; +0xd4, 0x1001eb55c\nLDR             X8, [X20]                                              ; +0xd8, 0x1001eb560\nLDR             X9, [X8,#0x540]                                        ; +0xdc, 0x1001eb564\nMOV             X8, SP                                                 ; +0xe0, 0x1001eb568\nMOV             X0, X20                                                ; +0xe4, 0x1001eb56c\nBLR             X9                                                     ; +0xe8, 0x1001eb570\nADD             X0, SP, #0x40+var_38                                   ; +0xec, 0x1001eb574\nMOV             X1, SP                                                 ; +0xf0, 0x1001eb578\nMOV             X8, X19                                                ; +0xf4, 0x1001eb57c\nBL              sub_1000229F0                                          ; +0xf8, 0x1001eb580\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xfc, 0x1001eb584\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x100, 0x1001eb588\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x104, 0x1001eb58c\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x108, 0x1001eb590\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x10c, 0x1001eb594\nRET                                                                    ; +0x110, 0x1001eb598\nBL              GJBaseGameLayer__tryGetObject                          ; +0x114, 0x1001eb59c\nB               loc_1001EB4E4                                          ; +0x118, 0x1001eb5a0", "xrefs": ["GJBaseGameLayer::triggerMoveCommand @ 0x1001ee89c"], "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"}