{"type": "func", "start": 5371984256, "end": 5371984683, "name": "GJBaseGameLayer::rotateGameplay", "pseudocode": "// \n// GJBaseGameLayer::rotateGameplay from 0x14031f980 to 0x14031fb2b (427 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x14076b868\n// > <???> @ 0x14078b2e0\n// > <???> @ 0x1407d5ec8\n// > <???> @ 0x1408b5558\n// > <???> @ 0x1408b558c\n// > <???> @ 0x14091ed58\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:22 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::rotateGameplay(__int64 a1, __int64 a2)\n{\n  int v4; // eax\n  bool v5; // bp\n  const struct cocos2d::CCPoint *v6; // rax\n  _BYTE v7[16]; // [rsp+40h] [rbp-28h] BYREF\n  char v8; // [rsp+78h] [rbp+10h] BYREF\n  char v9; // [rsp+80h] [rbp+18h] BYREF\n  char v10; // [rsp+88h] [rbp+20h] BYREF\n\n  if ( *(_BYTE *)(a2 + 1876) )\n  {\n    *(_DWORD *)(a1 + 828) = *(_DWORD *)(a2 + 1880);\n    v4 = *(_DWORD *)(a2 + 1860);\n    v5 = v4 == 3 || v4 == 2;\n    *(_BYTE *)(*(_QWORD *)sub_140358A00(a1 + 904, v7) + 20LL) = v5;\n  }\n  if ( !*(_BYTE *)(a2 + 1877) )\n  {\n    PlayerObject::rotateGameplay(\n      *(_QWORD *)(a1 + 3512),\n      *(_DWORD *)(a2 + 1856),\n      *(_DWORD *)(a2 + 1860),\n      *(unsigned __int8 *)(a2 + 1864),\n      *(_DWORD *)(a2 + 1868),\n      *(_DWORD *)(a2 + 1872),\n      *(_BYTE *)(a2 + 1865),\n      *(_BYTE *)(a2 + 1885));\n    if ( *(_BYTE *)(a1 + 1058) )\n      PlayerObject::rotateGameplay(\n        *(_QWORD *)(a1 + 3520),\n        *(_DWORD *)(a2 + 1856),\n        *(_DWORD *)(a2 + 1860),\n        *(unsigned __int8 *)(a2 + 1864),\n        *(_DWORD *)(a2 + 1868),\n        *(_DWORD *)(a2 + 1872),\n        *(_BYTE *)(a2 + 1865),\n        *(_BYTE *)(a2 + 1885));\n    v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3512) + 200LL))(*(_QWORD *)(a1 + 3512));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, v6);\n    (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a2 + 1208LL))(a2, &v8);\n    cocos2d::CCPoint::operator-(&v9, &v10, &v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1304LL))(a1);\n  }\n  if ( *(_BYTE *)(a2 + 1884) )\n  {\n    *(_DWORD *)(a1 + 692) = 1065353216;\n    *(_DWORD *)(a1 + 696) = 1065353216;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::rotateGameplay from 0x14031f980 to 0x14031fb2b (427 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x14076b868\n; > <???> @ 0x14078b2e0\n; > <???> @ 0x1407d5ec8\n; > <???> @ 0x1408b5558\n; > <???> @ 0x1408b558c\n; > <???> @ 0x14091ed58\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:22 +0000\n; \npush    rdi                                                            ; +0x0, 0x14031f980\nsub     rsp, 60h                                                       ; +0x2, 0x14031f982\ncmp     byte ptr [rdx+754h], 0                                         ; +0x6, 0x14031f986\nmov     rdi, rcx                                                       ; +0xd, 0x14031f98d\nmov     [rsp+68h+arg_0], rbx                                           ; +0x10, 0x14031f990\nmov     rbx, rdx                                                       ; +0x15, 0x14031f995\nmov     [rsp+68h+var_18], rsi                                          ; +0x18, 0x14031f998\njz      short loc_14031F9E9                                            ; +0x1d, 0x14031f99d\nmov     eax, [rdx+758h]                                                ; +0x1f, 0x14031f99f\nlea     r8, [rcx+33Ch]                                                 ; +0x25, 0x14031f9a5\nmov     [r8], eax                                                      ; +0x2c, 0x14031f9ac\nmov     eax, [rdx+744h]                                                ; +0x2f, 0x14031f9af\nmov     [rsp+68h+var_10], rbp                                          ; +0x35, 0x14031f9b5\ncmp     eax, 3                                                         ; +0x3a, 0x14031f9ba\njz      short loc_14031F9C9                                            ; +0x3d, 0x14031f9bd\ncmp     eax, 2                                                         ; +0x3f, 0x14031f9bf\njz      short loc_14031F9C9                                            ; +0x42, 0x14031f9c2\nxor     bpl, bpl                                                       ; +0x44, 0x14031f9c4\njmp     short loc_14031F9CC                                            ; +0x47, 0x14031f9c7\nmov     bpl, 1                                                         ; +0x49, 0x14031f9c9\nadd     rcx, 388h                                                      ; +0x4c, 0x14031f9cc\nlea     rdx, [rsp+68h+var_28]                                          ; +0x53, 0x14031f9d3\ncall    sub_140358A00                                                  ; +0x58, 0x14031f9d8\nmov     rcx, [rax]                                                     ; +0x5d, 0x14031f9dd\nmov     [rcx+14h], bpl                                                 ; +0x60, 0x14031f9e0\nmov     rbp, [rsp+68h+var_10]                                          ; +0x64, 0x14031f9e4\ncmp     byte ptr [rbx+755h], 0                                         ; +0x69, 0x14031f9e9\njnz     loc_14031FAFE                                                  ; +0x70, 0x14031f9f0\nmovzx   eax, byte ptr [rbx+75Dh]                                       ; +0x76, 0x14031f9f6\nmovss   xmm0, dword ptr [rbx+750h]                                     ; +0x7d, 0x14031f9fd\nmovss   xmm1, dword ptr [rbx+74Ch]                                     ; +0x85, 0x14031fa05\nmovzx   r9d, byte ptr [rbx+748h]                                       ; +0x8d, 0x14031fa0d\nmov     r8d, [rbx+744h]                                                ; +0x95, 0x14031fa15\nmov     edx, [rbx+740h]                                                ; +0x9c, 0x14031fa1c\nmov     rcx, [rdi+0DB8h]                                               ; +0xa2, 0x14031fa22\nmov     [rsp+68h+var_30], al                                           ; +0xa9, 0x14031fa29\nmovzx   eax, byte ptr [rbx+749h]                                       ; +0xad, 0x14031fa2d\nmov     [rsp+68h+var_38], al                                           ; +0xb4, 0x14031fa34\nmovss   [rsp+68h+var_40], xmm0                                         ; +0xb8, 0x14031fa38\nmovss   [rsp+68h+var_48], xmm1                                         ; +0xbe, 0x14031fa3e\ncall    PlayerObject__rotateGameplay                                   ; +0xc4, 0x14031fa44\ncmp     byte ptr [rdi+422h], 0                                         ; +0xc9, 0x14031fa49\njz      short loc_14031FAA5                                            ; +0xd0, 0x14031fa50\nmovzx   eax, byte ptr [rbx+75Dh]                                       ; +0xd2, 0x14031fa52\nmovss   xmm0, dword ptr [rbx+750h]                                     ; +0xd9, 0x14031fa59\nmovss   xmm1, dword ptr [rbx+74Ch]                                     ; +0xe1, 0x14031fa61\nmovzx   r9d, byte ptr [rbx+748h]                                       ; +0xe9, 0x14031fa69\nmov     r8d, [rbx+744h]                                                ; +0xf1, 0x14031fa71\nmov     edx, [rbx+740h]                                                ; +0xf8, 0x14031fa78\nmov     rcx, [rdi+0DC0h]                                               ; +0xfe, 0x14031fa7e\nmov     [rsp+68h+var_30], al                                           ; +0x105, 0x14031fa85\nmovzx   eax, byte ptr [rbx+749h]                                       ; +0x109, 0x14031fa89\nmov     [rsp+68h+var_38], al                                           ; +0x110, 0x14031fa90\nmovss   [rsp+68h+var_40], xmm0                                         ; +0x114, 0x14031fa94\nmovss   [rsp+68h+var_48], xmm1                                         ; +0x11a, 0x14031fa9a\ncall    PlayerObject__rotateGameplay                                   ; +0x120, 0x14031faa0\nmov     rcx, [rdi+0DB8h]                                               ; +0x125, 0x14031faa5\nmov     rax, [rcx]                                                     ; +0x12c, 0x14031faac\ncall    qword ptr [rax+0C8h]                                           ; +0x12f, 0x14031faaf\nmov     rdx, rax                                                       ; +0x135, 0x14031fab5\nlea     rcx, [rsp+68h+arg_10]                                          ; +0x138, 0x14031fab8\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x140, 0x14031fac0\nmov     rax, [rbx]                                                     ; +0x146, 0x14031fac6\nlea     rdx, [rsp+68h+arg_8]                                           ; +0x149, 0x14031fac9\nmov     rcx, rbx                                                       ; +0x14e, 0x14031face\ncall    qword ptr [rax+4B8h]                                           ; +0x151, 0x14031fad1\nlea     r8, [rsp+68h+arg_8]                                            ; +0x157, 0x14031fad7\nlea     rdx, [rsp+68h+arg_18]                                          ; +0x15c, 0x14031fadc\nlea     rcx, [rsp+68h+arg_10]                                          ; +0x164, 0x14031fae4\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x16c, 0x14031faec\nmov     rax, [rdi]                                                     ; +0x172, 0x14031faf2\nmov     rcx, rdi                                                       ; +0x175, 0x14031faf5\ncall    qword ptr [rax+518h]                                           ; +0x178, 0x14031faf8\ncmp     byte ptr [rbx+75Ch], 0                                         ; +0x17e, 0x14031fafe\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x185, 0x14031fb05\nmov     rsi, [rsp+68h+var_18]                                          ; +0x18a, 0x14031fb0a\njz      short loc_14031FB25                                            ; +0x18f, 0x14031fb0f\nmov     dword ptr [rdi+2B4h], 3F800000h                                ; +0x191, 0x14031fb11\nmov     dword ptr [rdi+2B8h], 3F800000h                                ; +0x19b, 0x14031fb1b\nadd     rsp, 60h                                                       ; +0x1a5, 0x14031fb25\npop     rdi                                                            ; +0x1a9, 0x14031fb29\nretn                                                                   ; +0x1aa, 0x14031fb2a", "xrefs": ["<???> @ 0x14076b868", "<???> @ 0x14078b2e0", "<???> @ 0x1407d5ec8", "<???> @ 0x1408b5558", "<???> @ 0x1408b558c", "<???> @ 0x14091ed58"], "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"}