{"type": "func", "start": 5372014592, "end": 5372015134, "name": "GJBaseGameLayer::triggerDynamicRotateCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerDynamicRotateCommand from 0x140327000 to 0x14032721e (542 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326dfe\n// > <???> @ 0x1408b5bd4\n// > <???> @ 0x1408b5be4\n// > <???> @ 0x14091efec\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:30:27 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::triggerDynamicRotateCommand(__int64 a1, __int64 a2)\n{\n  __int64 Object; // r14\n  __int64 result; // rax\n  bool v6; // zf\n  __int64 v7; // rbp\n  __int64 v8; // rsi\n  __int64 v9; // r15\n  __int64 v10; // r12\n  __int64 v11; // r13\n  __int64 v12; // rdx\n  __int64 v13; // r8\n  __int64 v14; // [rsp+50h] [rbp-68h] BYREF\n  __int64 v15; // [rsp+58h] [rbp-60h] BYREF\n  __int64 v16; // [rsp+60h] [rbp-58h] BYREF\n  __int64 v17; // [rsp+68h] [rbp-50h] BYREF\n  __int64 v18; // [rsp+70h] [rbp-48h] BYREF\n  __int64 v19; // [rsp+C8h] [rbp+10h] BYREF\n  __int64 v20; // [rsp+D0h] [rbp+18h] BYREF\n  __int64 v21; // [rsp+D8h] [rbp+20h] BYREF\n\n  v19 = a2;\n  Object = GJBaseGameLayer::tryGetObject(a1);\n  v18 = Object;\n  result = GJBaseGameLayer::tryGetObject(a1);\n  v6 = *(_BYTE *)(a2 + 1700) == 0;\n  v7 = result;\n  v16 = result;\n  if ( !v6 )\n    goto LABEL_6;\n  if ( *(_BYTE *)(a2 + 1701) )\n  {\n    if ( *(_BYTE *)(a1 + 1058) )\n    {\n      v8 = *(_QWORD *)(a1 + 3520);\n      goto LABEL_7;\n    }\nLABEL_6:\n    v8 = *(_QWORD *)(a1 + 3512);\n    goto LABEL_7;\n  }\n  result = GJBaseGameLayer::tryGetObject(a1);\n  v8 = result;\nLABEL_7:\n  v17 = v8;\n  if ( Object && v8 && v7 )\n  {\n    v9 = GJBaseGameLayer::tryGetObject(a1);\n    v15 = v9;\n    v10 = GJBaseGameLayer::tryGetObject(a1);\n    v14 = v10;\n    v11 = GJBaseGameLayer::tryGetObject(a1);\n    v21 = v11;\n    v20 = GJBaseGameLayer::tryGetObject(a1);\n    v12 = *(_QWORD *)(a1 + 1872);\n    v13 = v20;\n    if ( v12 == *(_QWORD *)(a1 + 1880) )\n    {\n      return ((__int64 (__fastcall *)(__int64, __int64, __int64 *, __int64 *, __int64 *, __int64 *, __int64 *, __int64 *, __int64 *, __int64 *))sub_14035A9F0)(\n               a1 + 1864,\n               v12,\n               &v19,\n               &v18,\n               &v17,\n               &v16,\n               &v15,\n               &v14,\n               &v21,\n               &v20);\n    }\n    else\n    {\n      *(_DWORD *)(v12 + 76) = 1;\n      *(_QWORD *)(v12 + 80) = 0;\n      *(_QWORD *)(v12 + 8) = 0;\n      *(_QWORD *)(v12 + 16) = 0;\n      *(_QWORD *)(v12 + 24) = 0;\n      *(_QWORD *)(v12 + 32) = 0;\n      *(_QWORD *)(v12 + 40) = 0;\n      *(_QWORD *)(v12 + 48) = 0;\n      *(_QWORD *)(v12 + 56) = 0;\n      *(_DWORD *)(v12 + 88) = 0;\n      *(_QWORD *)(v12 + 64) = 0;\n      *(_DWORD *)(v12 + 72) = 0;\n      *(_QWORD *)v12 = a2;\n      *(_DWORD *)(v12 + 80) = *(_DWORD *)(a2 + 1688);\n      *(_DWORD *)(v12 + 84) = *(_DWORD *)(a2 + 1480);\n      result = *(unsigned int *)(a2 + 1484);\n      *(_DWORD *)(v12 + 88) = result;\n      *(_QWORD *)(v12 + 8) = Object;\n      *(_QWORD *)(v12 + 16) = v8;\n      *(_QWORD *)(v12 + 24) = v7;\n      *(_QWORD *)(v12 + 32) = v9;\n      *(_QWORD *)(v12 + 40) = v10;\n      *(_QWORD *)(v12 + 48) = v11;\n      *(_QWORD *)(v12 + 56) = v13;\n      *(_QWORD *)(a1 + 1872) += 96LL;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::triggerDynamicRotateCommand from 0x140327000 to 0x14032721e (542 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326dfe\n; > <???> @ 0x1408b5bd4\n; > <???> @ 0x1408b5be4\n; > <???> @ 0x14091efec\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:30:27 +0000\n; \nmov     [rsp+arg_8], rdx                                               ; +0x0, 0x140327000\npush    rbx                                                            ; +0x5, 0x140327005\npush    rbp                                                            ; +0x6, 0x140327006\npush    rsi                                                            ; +0x7, 0x140327007\npush    rdi                                                            ; +0x8, 0x140327008\npush    r14                                                            ; +0x9, 0x140327009\nsub     rsp, 90h                                                       ; +0xb, 0x14032700b\nmov     rbx, rdx                                                       ; +0x12, 0x140327012\nmov     rdi, rcx                                                       ; +0x15, 0x140327015\nmov     edx, [rdx+5CCh]                                                ; +0x18, 0x140327018\ntest    edx, edx                                                       ; +0x1e, 0x14032701e\njnz     short loc_140327028                                            ; +0x20, 0x140327020\nmov     edx, [rbx+5C8h]                                                ; +0x22, 0x140327022\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x28, 0x140327028\nmov     edx, [rbx+5C8h]                                                ; +0x2d, 0x14032702d\nmov     rcx, rdi                                                       ; +0x33, 0x140327033\nmov     r14, rax                                                       ; +0x36, 0x140327036\nmov     [rsp+0B8h+var_48], rax                                         ; +0x39, 0x140327039\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x3e, 0x14032703e\ncmp     byte ptr [rbx+6A4h], 0                                         ; +0x43, 0x140327043\nmov     rbp, rax                                                       ; +0x4a, 0x14032704a\nmov     [rsp+0B8h+var_58], rax                                         ; +0x4d, 0x14032704d\njnz     short loc_140327082                                            ; +0x52, 0x140327052\ncmp     byte ptr [rbx+6A5h], 0                                         ; +0x54, 0x140327054\njnz     short loc_140327070                                            ; +0x5b, 0x14032705b\nmov     edx, [rbx+624h]                                                ; +0x5d, 0x14032705d\nmov     rcx, rdi                                                       ; +0x63, 0x140327063\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x66, 0x140327066\nmov     rsi, rax                                                       ; +0x6b, 0x14032706b\njmp     short loc_140327089                                            ; +0x6e, 0x14032706e\ncmp     byte ptr [rdi+422h], 0                                         ; +0x70, 0x140327070\njz      short loc_140327082                                            ; +0x77, 0x140327077\nmov     rsi, [rdi+0DC0h]                                               ; +0x79, 0x140327079\njmp     short loc_140327089                                            ; +0x80, 0x140327080\nmov     rsi, [rdi+0DB8h]                                               ; +0x82, 0x140327082\nmov     [rsp+0B8h+var_50], rsi                                         ; +0x89, 0x140327089\ntest    r14, r14                                                       ; +0x8e, 0x14032708e\njz      loc_140327210                                                  ; +0x91, 0x140327091\ntest    rsi, rsi                                                       ; +0x97, 0x140327097\njz      loc_140327210                                                  ; +0x9a, 0x14032709a\ntest    rbp, rbp                                                       ; +0xa0, 0x1403270a0\njz      loc_140327210                                                  ; +0xa3, 0x1403270a3\nmov     edx, [rbx+740h]                                                ; +0xa9, 0x1403270a9\nmov     rcx, rdi                                                       ; +0xaf, 0x1403270af\nmov     [rsp+0B8h+arg_0], r12                                          ; +0xb2, 0x1403270b2\nmov     [rsp+0B8h+var_30], r13                                         ; +0xba, 0x1403270ba\nmov     [rsp+0B8h+var_38], r15                                         ; +0xc2, 0x1403270c2\ncall    GJBaseGameLayer__tryGetObject                                  ; +0xca, 0x1403270ca\nmov     edx, [rbx+744h]                                                ; +0xcf, 0x1403270cf\nmov     rcx, rdi                                                       ; +0xd5, 0x1403270d5\nmov     r15, rax                                                       ; +0xd8, 0x1403270d8\nmov     [rsp+0B8h+var_60], rax                                         ; +0xdb, 0x1403270db\ncall    GJBaseGameLayer__tryGetObject                                  ; +0xe0, 0x1403270e0\nmov     edx, [rbx+748h]                                                ; +0xe5, 0x1403270e5\nmov     rcx, rdi                                                       ; +0xeb, 0x1403270eb\nmov     r12, rax                                                       ; +0xee, 0x1403270ee\nmov     [rsp+0B8h+var_68], rax                                         ; +0xf1, 0x1403270f1\ncall    GJBaseGameLayer__tryGetObject                                  ; +0xf6, 0x1403270f6\nmov     edx, [rbx+74Ch]                                                ; +0xfb, 0x1403270fb\nmov     rcx, rdi                                                       ; +0x101, 0x140327101\nmov     r13, rax                                                       ; +0x104, 0x140327104\nmov     [rsp+0B8h+arg_18], rax                                         ; +0x107, 0x140327107\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x10f, 0x14032710f\nlea     rcx, [rdi+748h]                                                ; +0x114, 0x140327114\nmov     [rsp+0B8h+arg_10], rax                                         ; +0x11b, 0x14032711b\nmov     rdx, [rcx+8]                                                   ; +0x123, 0x140327123\nmov     r8, rax                                                        ; +0x127, 0x140327127\ncmp     rdx, [rcx+10h]                                                 ; +0x12a, 0x14032712a\njz      short loc_1403271A4                                            ; +0x12e, 0x14032712e\nxor     eax, eax                                                       ; +0x130, 0x140327130\nmov     dword ptr [rdx+4Ch], 1                                         ; +0x132, 0x140327132\nmov     [rdx+50h], rax                                                 ; +0x139, 0x140327139\nmov     [rdx+8], rax                                                   ; +0x13d, 0x14032713d\nmov     [rdx+10h], rax                                                 ; +0x141, 0x140327141\nmov     [rdx+18h], rax                                                 ; +0x145, 0x140327145\nmov     [rdx+20h], rax                                                 ; +0x149, 0x140327149\nmov     [rdx+28h], rax                                                 ; +0x14d, 0x14032714d\nmov     [rdx+30h], rax                                                 ; +0x151, 0x140327151\nmov     [rdx+38h], rax                                                 ; +0x155, 0x140327155\nmov     [rdx+58h], eax                                                 ; +0x159, 0x140327159\nmov     [rdx+40h], rax                                                 ; +0x15c, 0x14032715c\nmov     [rdx+48h], eax                                                 ; +0x160, 0x140327160\nmov     [rdx], rbx                                                     ; +0x163, 0x140327163\nmov     eax, [rbx+698h]                                                ; +0x166, 0x140327166\nmov     [rdx+50h], eax                                                 ; +0x16c, 0x14032716c\nmov     eax, [rbx+5C8h]                                                ; +0x16f, 0x14032716f\nmov     [rdx+54h], eax                                                 ; +0x175, 0x140327175\nmov     eax, [rbx+5CCh]                                                ; +0x178, 0x140327178\nmov     [rdx+58h], eax                                                 ; +0x17e, 0x14032717e\nmov     [rdx+8], r14                                                   ; +0x181, 0x140327181\nmov     [rdx+10h], rsi                                                 ; +0x185, 0x140327185\nmov     [rdx+18h], rbp                                                 ; +0x189, 0x140327189\nmov     [rdx+20h], r15                                                 ; +0x18d, 0x14032718d\nmov     [rdx+28h], r12                                                 ; +0x191, 0x140327191\nmov     [rdx+30h], r13                                                 ; +0x195, 0x140327195\nmov     [rdx+38h], r8                                                  ; +0x199, 0x140327199\nadd     qword ptr [rcx+8], 60h ; '`'                                   ; +0x19d, 0x14032719d\njmp     short loc_1403271F8                                            ; +0x1a2, 0x1403271a2\nlea     rax, [rsp+0B8h+arg_10]                                         ; +0x1a4, 0x1403271a4\nmov     [rsp+0B8h+var_70], rax                                         ; +0x1ac, 0x1403271ac\nlea     r9, [rsp+0B8h+var_48]                                          ; +0x1b1, 0x1403271b1\nlea     rax, [rsp+0B8h+arg_18]                                         ; +0x1b6, 0x1403271b6\nmov     [rsp+0B8h+var_78], rax                                         ; +0x1be, 0x1403271be\nlea     r8, [rsp+0B8h+arg_8]                                           ; +0x1c3, 0x1403271c3\nlea     rax, [rsp+0B8h+var_68]                                         ; +0x1cb, 0x1403271cb\nmov     [rsp+0B8h+var_80], rax                                         ; +0x1d0, 0x1403271d0\nlea     rax, [rsp+0B8h+var_60]                                         ; +0x1d5, 0x1403271d5\nmov     [rsp+0B8h+var_88], rax                                         ; +0x1da, 0x1403271da\nlea     rax, [rsp+0B8h+var_58]                                         ; +0x1df, 0x1403271df\nmov     [rsp+0B8h+var_90], rax                                         ; +0x1e4, 0x1403271e4\nlea     rax, [rsp+0B8h+var_50]                                         ; +0x1e9, 0x1403271e9\nmov     [rsp+0B8h+var_98], rax                                         ; +0x1ee, 0x1403271ee\ncall    sub_14035A9F0                                                  ; +0x1f3, 0x1403271f3\nmov     r13, [rsp+0B8h+var_30]                                         ; +0x1f8, 0x1403271f8\nmov     r12, [rsp+0B8h+arg_0]                                          ; +0x200, 0x140327200\nmov     r15, [rsp+0B8h+var_38]                                         ; +0x208, 0x140327208\nadd     rsp, 90h                                                       ; +0x210, 0x140327210\npop     r14                                                            ; +0x217, 0x140327217\npop     rdi                                                            ; +0x219, 0x140327219\npop     rsi                                                            ; +0x21a, 0x14032721a\npop     rbp                                                            ; +0x21b, 0x14032721b\npop     rbx                                                            ; +0x21c, 0x14032721c\nretn                                                                   ; +0x21d, 0x14032721d", "xrefs": ["GJBaseGameLayer::triggerRotateCommand @ 0x140326dfe", "<???> @ 0x1408b5bd4", "<???> @ 0x1408b5be4", "<???> @ 0x14091efec"], "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"}