{"type": "func", "start": 4301529088, "end": 4301529184, "name": "GJScaleControl::onToggleLockScale", "pseudocode": "// \n// GJScaleControl::onToggleLockScale from 0x100642000 to 0x100642060 (96 bytes)\n// \n// 1 xrefs:\n// > GJScaleControl::init @ 0x1006419e4\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 12:34:43 +0000\n// \n\n__int64 __fastcall GJScaleControl::onToggleLockScale(__int64 a1)\n{\n  __int64 v1; // r14\n  __int64 v2; // rax\n  const char *v3; // rsi\n  __int64 v4; // rax\n\n  *(_BYTE *)(a1 + 608) ^= 1u;\n  v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 600) + 1072LL))(*(_QWORD *)(a1 + 600));\n  v2 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v3 = \"warpLockOffBtn_001.png\";\n  if ( *(_BYTE *)(a1 + 608) )\n    v3 = \"warpLockOnBtn_001.png\";\n  v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, v3);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 1160LL))(v1, v4);\n}", "assembly": "; \n; GJScaleControl::onToggleLockScale from 0x100642000 to 0x100642060 (96 bytes)\n; \n; 1 xrefs:\n; > GJScaleControl::init @ 0x1006419e4\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 12:34:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x100642000\nmov     rbp, rsp                                                       ; +0x1, 0x100642001\npush    r14                                                            ; +0x4, 0x100642004\npush    rbx                                                            ; +0x6, 0x100642006\nmov     rbx, rdi                                                       ; +0x7, 0x100642007\nxor     byte ptr [rdi+260h], 1                                         ; +0xa, 0x10064200a\nmov     rdi, [rdi+258h]                                                ; +0x11, 0x100642011\nmov     rax, [rdi]                                                     ; +0x18, 0x100642018\ncall    qword ptr [rax+430h]                                           ; +0x1b, 0x10064201b\nmov     r14, rax                                                       ; +0x21, 0x100642021\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x24, 0x100642024\nlea     rcx, aWarplockonbtn0; \"warpLockOnBtn_001.png\"                  ; +0x29, 0x100642029\nlea     rsi, aWarplockoffbtn; \"warpLockOffBtn_001.png\"                 ; +0x30, 0x100642030\ncmp     byte ptr [rbx+260h], 0                                         ; +0x37, 0x100642037\ncmovnz  rsi, rcx                                                       ; +0x3e, 0x10064203e\nmov     rdi, rax                                                       ; +0x42, 0x100642042\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x45, 0x100642045\nmov     rcx, [r14]                                                     ; +0x4a, 0x10064204a\nmov     rcx, [rcx+488h]                                                ; +0x4d, 0x10064204d\nmov     rdi, r14                                                       ; +0x54, 0x100642054\nmov     rsi, rax                                                       ; +0x57, 0x100642057\npop     rbx                                                            ; +0x5a, 0x10064205a\npop     r14                                                            ; +0x5b, 0x10064205b\npop     rbp                                                            ; +0x5d, 0x10064205d\njmp     rcx                                                            ; +0x5e, 0x10064205e", "xrefs": ["GJScaleControl::init @ 0x1006419e4"], "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"}