{"type": "func", "start": 5370422704, "end": 5370422840, "name": "GJRotationControl::onToggleLockRotation", "pseudocode": "// \n// GJRotationControl::onToggleLockRotation from 0x1401a25b0 to 0x1401a2638 (136 bytes)\n// \n// 2 xrefs:\n// > GJRotationControl::init @ 0x1401a21e9\n// > <???> @ 0x140919904\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:27:48 +0000\n// \n\n__int64 __fastcall GJRotationControl::onToggleLockRotation(__int64 a1)\n{\n  char v1; // bp\n  const char *v2; // rbx\n  __int64 *v3; // rsi\n  __int64 v4; // rdi\n  cocos2d::CCSpriteFrameCache *v5; // rax\n  struct cocos2d::CCSpriteFrame *v6; // rax\n\n  v1 = *(_BYTE *)(a1 + 456);\n  *(_BYTE *)(a1 + 456) = v1 == 0;\n  v2 = \"warpLockOffBtn_001.png\";\n  v3 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 952LL))(*(_QWORD *)(a1 + 448));\n  v4 = *v3;\n  if ( !v1 )\n    v2 = \"warpLockOnBtn_001.png\";\n  v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v2);\n  return (*(__int64 (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v6);\n}", "assembly": "; \n; GJRotationControl::onToggleLockRotation from 0x1401a25b0 to 0x1401a2638 (136 bytes)\n; \n; 2 xrefs:\n; > GJRotationControl::init @ 0x1401a21e9\n; > <???> @ 0x140919904\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:27:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401a25b0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1401a25b5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1401a25ba\npush    rdi                                                            ; +0xf, 0x1401a25bf\nsub     rsp, 20h                                                       ; +0x10, 0x1401a25c0\nmovzx   ebp, byte ptr [rcx+1C8h]                                       ; +0x14, 0x1401a25c4\ntest    bpl, bpl                                                       ; +0x1b, 0x1401a25cb\nsetz    al                                                             ; +0x1e, 0x1401a25ce\nmov     [rcx+1C8h], al                                                 ; +0x21, 0x1401a25d1\nmov     rcx, [rcx+1C0h]                                                ; +0x27, 0x1401a25d7\nmov     rax, [rcx]                                                     ; +0x2e, 0x1401a25de\ncall    qword ptr [rax+3B8h]                                           ; +0x31, 0x1401a25e1\ntest    bpl, bpl                                                       ; +0x37, 0x1401a25e7\nlea     rbx, aWarplockoffbtn; \"warpLockOffBtn_001.png\"                 ; +0x3a, 0x1401a25ea\nmov     rsi, rax                                                       ; +0x41, 0x1401a25f1\nmov     rdi, [rax]                                                     ; +0x44, 0x1401a25f4\nlea     rax, aWarplockonbtn0; \"warpLockOnBtn_001.png\"                  ; +0x47, 0x1401a25f7\ncmovz   rbx, rax                                                       ; +0x4e, 0x1401a25fe\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x52, 0x1401a2602\nmov     rcx, rax                                                       ; +0x58, 0x1401a2608\nmov     rdx, rbx                                                       ; +0x5b, 0x1401a260b\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x5e, 0x1401a260e\nmov     rdx, rax                                                       ; +0x64, 0x1401a2614\nmov     rcx, rsi                                                       ; +0x67, 0x1401a2617\nmov     rax, [rdi+3F0h]                                                ; +0x6a, 0x1401a261a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x71, 0x1401a2621\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x76, 0x1401a2626\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x7b, 0x1401a262b\nadd     rsp, 20h                                                       ; +0x80, 0x1401a2630\npop     rdi                                                            ; +0x84, 0x1401a2634\njmp     rax                                                            ; +0x85, 0x1401a2635", "xrefs": ["GJRotationControl::init @ 0x1401a21e9", "<???> @ 0x140919904"], "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"}