{"type": "func", "start": 4296245200, "end": 4296245358, "name": "GJBaseGameLayer::getRotateCommandTargets", "pseudocode": "// \n// GJBaseGameLayer::getRotateCommandTargets from 0x100137fd0 to 0x10013806e (158 bytes)\n// \n// 0 xrefs:\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; // esi\n  PlayerObject *Object; // rax\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 0x100137fd0 to 0x10013806e (158 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x100137fd0\nmov     rbp, rsp                                                       ; +0x1, 0x100137fd1\npush    r15                                                            ; +0x4, 0x100137fd4\npush    r14                                                            ; +0x6, 0x100137fd6\npush    r13                                                            ; +0x8, 0x100137fd8\npush    r12                                                            ; +0xa, 0x100137fda\npush    rbx                                                            ; +0xc, 0x100137fdc\npush    rax                                                            ; +0xd, 0x100137fdd\nmov     rbx, r8                                                        ; +0xe, 0x100137fde\nmov     r12, rcx                                                       ; +0x11, 0x100137fe1\nmov     r13, rdx                                                       ; +0x14, 0x100137fe4\nmov     r15, rsi                                                       ; +0x17, 0x100137fe7\nmov     r14, rdi                                                       ; +0x1a, 0x100137fea\nmov     esi, [rsi+5BCh]                                                ; +0x1d, 0x100137fed\ntest    esi, esi                                                       ; +0x23, 0x100137ff3\njnz     short loc_100137FFE                                            ; +0x25, 0x100137ff5\nmov     esi, [r15+5B8h]                                                ; +0x27, 0x100137ff7\nmov     rdi, r14                                                       ; +0x2e, 0x100137ffe\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x31, 0x100138001\nmov     [r13+0], rax                                                   ; +0x36, 0x100138006\nmov     esi, [r15+5B8h]                                                ; +0x3a, 0x10013800a\nmov     rdi, r14                                                       ; +0x41, 0x100138011\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x44, 0x100138014\nmov     [r12], rax                                                     ; +0x49, 0x100138019\ncmp     byte ptr [r15+694h], 0                                         ; +0x4d, 0x10013801d\njz      short loc_100138030                                            ; +0x55, 0x100138025\nmov     rax, [r14+0CA0h]                                               ; +0x57, 0x100138027\njmp     short loc_10013805C                                            ; +0x5e, 0x10013802e\ncmp     byte ptr [r15+695h], 1                                         ; +0x60, 0x100138030\njnz     short loc_10013804D                                            ; +0x68, 0x100138038\ncmp     byte ptr [r14+3F2h], 0                                         ; +0x6a, 0x10013803a\njz      short loc_100138027                                            ; +0x72, 0x100138042\nmov     rax, [r14+0CA8h]                                               ; +0x74, 0x100138044\njmp     short loc_10013805C                                            ; +0x7b, 0x10013804b\nmov     esi, [r15+614h]                                                ; +0x7d, 0x10013804d\nmov     rdi, r14                                                       ; +0x84, 0x100138054\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x87, 0x100138057\nmov     [rbx], rax                                                     ; +0x8c, 0x10013805c\nadd     rsp, 8                                                         ; +0x8f, 0x10013805f\npop     rbx                                                            ; +0x93, 0x100138063\npop     r12                                                            ; +0x94, 0x100138064\npop     r13                                                            ; +0x96, 0x100138066\npop     r14                                                            ; +0x98, 0x100138068\npop     r15                                                            ; +0x9a, 0x10013806a\npop     rbp                                                            ; +0x9c, 0x10013806c\nretn                                                                   ; +0x9d, 0x10013806d", "xrefs": [], "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"}