{"type": "func", "start": 4297631672, "end": 4297631832, "name": "GJBaseGameLayer::getRotateCommandTargets", "pseudocode": "// \n// GJBaseGameLayer::getRotateCommandTargets from 0x10028a7b8 to 0x10028a858 (160 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerRotateCommand @ 0x10028acf8\n// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10028adf8\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:01:59 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getRotateCommandTargets(\n        __int64 a1,\n        __int64 a2,\n        __int64 *a3,\n        __int64 *a4,\n        __int64 *a5)\n{\n  int v9; // w1\n  __int64 result; // x0\n\n  v9 = *(_DWORD *)(a2 + 1468);\n  if ( !v9 )\n    v9 = *(_DWORD *)(a2 + 1464);\n  *a3 = GJBaseGameLayer::tryGetObject(a1, v9);\n  *a4 = GJBaseGameLayer::tryGetObject(a1, *(_DWORD *)(a2 + 1464));\n  if ( (*(_BYTE *)(a2 + 1684) & 1) != 0 )\n    goto LABEL_4;\n  if ( *(_BYTE *)(a2 + 1685) != 1 )\n  {\n    result = GJBaseGameLayer::tryGetObject(a1, *(_DWORD *)(a2 + 1556));\n    goto LABEL_9;\n  }\n  if ( (*(_BYTE *)(a1 + 1010) & 1) == 0 )\nLABEL_4:\n    result = *(_QWORD *)(a1 + 3256);\n  else\n    result = *(_QWORD *)(a1 + 3264);\nLABEL_9:\n  *a5 = result;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getRotateCommandTargets from 0x10028a7b8 to 0x10028a858 (160 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerRotateCommand @ 0x10028acf8\n; > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10028adf8\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:01:59 +0000\n; \nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x10028a7b8\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10028a7bc\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10028a7c0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10028a7c4\nADD             X29, SP, #0x30                                         ; +0x10, 0x10028a7c8\nMOV             X19, X4                                                ; +0x14, 0x10028a7cc\nMOV             X22, X3                                                ; +0x18, 0x10028a7d0\nMOV             X23, X2                                                ; +0x1c, 0x10028a7d4\nMOV             X21, X1                                                ; +0x20, 0x10028a7d8\nMOV             X20, X0                                                ; +0x24, 0x10028a7dc\nLDR             W1, [X1,#0x5BC]                                        ; +0x28, 0x10028a7e0\nCBNZ            W1, loc_10028A7EC                                      ; +0x2c, 0x10028a7e4\nLDR             W1, [X21,#0x5B8]                                       ; +0x30, 0x10028a7e8\nMOV             X0, X20                                                ; +0x34, 0x10028a7ec\nBL              GJBaseGameLayer__tryGetObject                          ; +0x38, 0x10028a7f0\nSTR             X0, [X23]                                              ; +0x3c, 0x10028a7f4\nLDR             W1, [X21,#0x5B8]                                       ; +0x40, 0x10028a7f8\nMOV             X0, X20                                                ; +0x44, 0x10028a7fc\nBL              GJBaseGameLayer__tryGetObject                          ; +0x48, 0x10028a800\nSTR             X0, [X22]                                              ; +0x4c, 0x10028a804\nLDRB            W8, [X21,#0x694]                                       ; +0x50, 0x10028a808\nTBZ             W8, #0, loc_10028A818                                  ; +0x54, 0x10028a80c\nLDR             X0, [X20,#0xCB8]                                       ; +0x58, 0x10028a810\nB               loc_10028A840                                          ; +0x5c, 0x10028a814\nLDRB            W8, [X21,#0x695]                                       ; +0x60, 0x10028a818\nCMP             W8, #1                                                 ; +0x64, 0x10028a81c\nB.NE            loc_10028A834                                          ; +0x68, 0x10028a820\nLDRB            W8, [X20,#0x3F2]                                       ; +0x6c, 0x10028a824\nTBZ             W8, #0, loc_10028A810                                  ; +0x70, 0x10028a828\nLDR             X0, [X20,#0xCC0]                                       ; +0x74, 0x10028a82c\nB               loc_10028A840                                          ; +0x78, 0x10028a830\nLDR             W1, [X21,#0x614]                                       ; +0x7c, 0x10028a834\nMOV             X0, X20                                                ; +0x80, 0x10028a838\nBL              GJBaseGameLayer__tryGetObject                          ; +0x84, 0x10028a83c\nSTR             X0, [X19]                                              ; +0x88, 0x10028a840\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x10028a844\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x10028a848\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x94, 0x10028a84c\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x98, 0x10028a850\nRET                                                                    ; +0x9c, 0x10028a854", "xrefs": ["GJBaseGameLayer::triggerRotateCommand @ 0x10028acf8", "GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10028adf8"], "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"}