{"type": "func", "start": 4296994020, "end": 4296994180, "name": "GJBaseGameLayer::getRotateCommandTargets", "pseudocode": "// \n// GJBaseGameLayer::getRotateCommandTargets from 0x1001eece4 to 0x1001eed84 (160 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerRotateCommand @ 0x1001ef224\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001ef324\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 GJBaseGameLayer::getRotateCommandTargets(\n        GJBaseGameLayer *a1,\n        EnhancedTriggerObject *a2,\n        GameObject **a3,\n        GameObject **a4,\n        GameObject **a5)\n{\n  int m_centerGroupID; // w1\n  PlayerObject *Object; // x0\n\n  m_centerGroupID = a2->m_centerGroupID;\n  if ( !m_centerGroupID )\n    m_centerGroupID = a2->m_targetGroupID;\n  *a3 = GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);\n  *a4 = GJBaseGameLayer::tryGetObject(a1, a2->m_targetGroupID);\n  if ( a2->m_targetPlayer1 )\n    goto LABEL_4;\n  if ( !a2->m_targetPlayer2 )\n  {\n    Object = (PlayerObject *)GJBaseGameLayer::tryGetObject(a1, a2->m_rotationTargetID);\n    goto LABEL_9;\n  }\n  if ( !a1->m_gameState.m_isDualMode )\nLABEL_4:\n    Object = a1->m_player1;\n  else\n    Object = a1->m_player2;\nLABEL_9:\n  *a5 = Object;\n}", "assembly": "; \n; GJBaseGameLayer::getRotateCommandTargets from 0x1001eece4 to 0x1001eed84 (160 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerRotateCommand @ 0x1001ef224\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001ef324\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\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x1001eece4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1001eece8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001eecec\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001eecf0\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001eecf4\nMOV             X19, X4                                                ; +0x14, 0x1001eecf8\nMOV             X22, X3                                                ; +0x18, 0x1001eecfc\nMOV             X23, X2                                                ; +0x1c, 0x1001eed00\nMOV             X21, X1                                                ; +0x20, 0x1001eed04\nMOV             X20, X0                                                ; +0x24, 0x1001eed08\nLDR             W1, [X1,#0x5BC]                                        ; +0x28, 0x1001eed0c\nCBNZ            W1, loc_1001EED18                                      ; +0x2c, 0x1001eed10\nLDR             W1, [X21,#0x5B8]                                       ; +0x30, 0x1001eed14\nMOV             X0, X20                                                ; +0x34, 0x1001eed18\nBL              GJBaseGameLayer__tryGetObject                          ; +0x38, 0x1001eed1c\nSTR             X0, [X23]                                              ; +0x3c, 0x1001eed20\nLDR             W1, [X21,#0x5B8]                                       ; +0x40, 0x1001eed24\nMOV             X0, X20                                                ; +0x44, 0x1001eed28\nBL              GJBaseGameLayer__tryGetObject                          ; +0x48, 0x1001eed2c\nSTR             X0, [X22]                                              ; +0x4c, 0x1001eed30\nLDRB            W8, [X21,#0x694]                                       ; +0x50, 0x1001eed34\nTBZ             W8, #0, loc_1001EED44                                  ; +0x54, 0x1001eed38\nLDR             X0, [X20,#0xCC8]                                       ; +0x58, 0x1001eed3c\nB               loc_1001EED6C                                          ; +0x5c, 0x1001eed40\nLDRB            W8, [X21,#0x695]                                       ; +0x60, 0x1001eed44\nCMP             W8, #1                                                 ; +0x64, 0x1001eed48\nB.NE            loc_1001EED60                                          ; +0x68, 0x1001eed4c\nLDRB            W8, [X20,#0x3F2]                                       ; +0x6c, 0x1001eed50\nTBZ             W8, #0, loc_1001EED3C                                  ; +0x70, 0x1001eed54\nLDR             X0, [X20,#0xCD0]                                       ; +0x74, 0x1001eed58\nB               loc_1001EED6C                                          ; +0x78, 0x1001eed5c\nLDR             W1, [X21,#0x614]                                       ; +0x7c, 0x1001eed60\nMOV             X0, X20                                                ; +0x80, 0x1001eed64\nBL              GJBaseGameLayer__tryGetObject                          ; +0x84, 0x1001eed68\nSTR             X0, [X19]                                              ; +0x88, 0x1001eed6c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x1001eed70\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x1001eed74\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x94, 0x1001eed78\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x98, 0x1001eed7c\nRET                                                                    ; +0x9c, 0x1001eed80", "xrefs": ["GJBaseGameLayer::triggerRotateCommand @ 0x1001ef224", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001ef324"], "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"}