{"type": "func", "start": 4299973616, "end": 4299973870, "name": "GJUINode::toggleModeB", "pseudocode": "// \n// GJUINode::toggleModeB from 0x1004c63f0 to 0x1004c64ee (254 bytes)\n// \n// 4 xrefs:\n// > UIOptionsLayer::valueDidChange @ 0x1002a2826\n// > GJUINode::init @ 0x1004c6129\n// > GJUINode::loadFromConfig @ 0x1004c6897\n// > TouchControlEditLayer::valueDidChange @ 0x10097a5c0\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:31:07 +0000\n// \n\nvoid __fastcall GJUINode::toggleModeB(__int64 a1, unsigned __int8 a2)\n{\n  __int64 v2; // r14\n  __int64 v3; // rax\n  const char *v4; // rsi\n  __int64 v5; // rax\n  __int64 v6; // r14\n  __int64 v7; // rax\n  const char *v8; // rsi\n  __int64 v9; // rax\n\n  if ( *(_QWORD *)(a1 + 328) )\n  {\n    *(_BYTE *)(a1 + 381) = a2;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 320) + 344LL))(*(_QWORD *)(a1 + 320), a2 ^ 1u);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 328) + 344LL))(\n      *(_QWORD *)(a1 + 328),\n      *(unsigned __int8 *)(a1 + 381) ^ 1u);\n    v2 = *(_QWORD *)(a1 + 320);\n    v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    if ( *(_BYTE *)(a1 + 381) )\n    {\n      v4 = \"PBtn_Arrow_001.png\";\n    }\n    else if ( *(_BYTE *)(a1 + 386) )\n    {\n      v4 = \"PBtn_Jump_001.png\";\n    }\n    else\n    {\n      v4 = \"PBtn_Move_001.png\";\n      if ( *(_BYTE *)(a1 + 387) )\n        v4 = \"PBtn_Jump_001.png\";\n    }\n    v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1160LL))(v2, v5);\n    v6 = *(_QWORD *)(a1 + 328);\n    if ( v6 )\n    {\n      v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n      v8 = \"PBtn_Move_001.png\";\n      if ( *(_BYTE *)(a1 + 387) )\n        v8 = \"PBtn_Jump_001.png\";\n      v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v9);\n    }\n  }\n}", "assembly": "; \n; GJUINode::toggleModeB from 0x1004c63f0 to 0x1004c64ee (254 bytes)\n; \n; 4 xrefs:\n; > UIOptionsLayer::valueDidChange @ 0x1002a2826\n; > GJUINode::init @ 0x1004c6129\n; > GJUINode::loadFromConfig @ 0x1004c6897\n; > TouchControlEditLayer::valueDidChange @ 0x10097a5c0\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:31:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004c63f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004c63f1\npush    r14                                                            ; +0x4, 0x1004c63f4\npush    rbx                                                            ; +0x6, 0x1004c63f6\ncmp     qword ptr [rdi+148h], 0                                        ; +0x7, 0x1004c63f7\njz      loc_1004C64E9                                                  ; +0xf, 0x1004c63ff\nmov     rbx, rdi                                                       ; +0x15, 0x1004c6405\nmov     [rdi+17Dh], sil                                                ; +0x18, 0x1004c6408\nmov     rdi, [rdi+140h]                                                ; +0x1f, 0x1004c640f\nxor     sil, 1                                                         ; +0x26, 0x1004c6416\nmov     rax, [rdi]                                                     ; +0x2a, 0x1004c641a\nmovzx   esi, sil                                                       ; +0x2d, 0x1004c641d\ncall    qword ptr [rax+158h]                                           ; +0x31, 0x1004c6421\nmov     rdi, [rbx+148h]                                                ; +0x37, 0x1004c6427\nmovzx   esi, byte ptr [rbx+17Dh]                                       ; +0x3e, 0x1004c642e\nmov     rax, [rdi]                                                     ; +0x45, 0x1004c6435\nxor     esi, 1                                                         ; +0x48, 0x1004c6438\ncall    qword ptr [rax+158h]                                           ; +0x4b, 0x1004c643b\nmov     r14, [rbx+140h]                                                ; +0x51, 0x1004c6441\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x58, 0x1004c6448\ncmp     byte ptr [rbx+17Dh], 0                                         ; +0x5d, 0x1004c644d\njz      short loc_1004C645F                                            ; +0x64, 0x1004c6454\nlea     rsi, aPbtnArrow001Pn; \"PBtn_Arrow_001.png\"                     ; +0x66, 0x1004c6456\njmp     short loc_1004C648A                                            ; +0x6d, 0x1004c645d\ncmp     byte ptr [rbx+182h], 0                                         ; +0x6f, 0x1004c645f\njz      short loc_1004C6471                                            ; +0x76, 0x1004c6466\nlea     rsi, aPbtnJump001Png; \"PBtn_Jump_001.png\"                      ; +0x78, 0x1004c6468\njmp     short loc_1004C648A                                            ; +0x7f, 0x1004c646f\nlea     rcx, aPbtnJump001Png; \"PBtn_Jump_001.png\"                      ; +0x81, 0x1004c6471\nlea     rsi, aPbtnMove001Png; \"PBtn_Move_001.png\"                      ; +0x88, 0x1004c6478\ncmp     byte ptr [rbx+183h], 0                                         ; +0x8f, 0x1004c647f\ncmovnz  rsi, rcx                                                       ; +0x96, 0x1004c6486\nmov     rdi, rax                                                       ; +0x9a, 0x1004c648a\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x9d, 0x1004c648d\nmov     rcx, [r14]                                                     ; +0xa2, 0x1004c6492\nmov     rdi, r14                                                       ; +0xa5, 0x1004c6495\nmov     rsi, rax                                                       ; +0xa8, 0x1004c6498\ncall    qword ptr [rcx+488h]                                           ; +0xab, 0x1004c649b\nmov     r14, [rbx+148h]                                                ; +0xb1, 0x1004c64a1\ntest    r14, r14                                                       ; +0xb8, 0x1004c64a8\njz      short loc_1004C64E9                                            ; +0xbb, 0x1004c64ab\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0xbd, 0x1004c64ad\nlea     rcx, aPbtnJump001Png; \"PBtn_Jump_001.png\"                      ; +0xc2, 0x1004c64b2\nlea     rsi, aPbtnMove001Png; \"PBtn_Move_001.png\"                      ; +0xc9, 0x1004c64b9\ncmp     byte ptr [rbx+183h], 0                                         ; +0xd0, 0x1004c64c0\ncmovnz  rsi, rcx                                                       ; +0xd7, 0x1004c64c7\nmov     rdi, rax                                                       ; +0xdb, 0x1004c64cb\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0xde, 0x1004c64ce\nmov     rcx, [r14]                                                     ; +0xe3, 0x1004c64d3\nmov     rcx, [rcx+488h]                                                ; +0xe6, 0x1004c64d6\nmov     rdi, r14                                                       ; +0xed, 0x1004c64dd\nmov     rsi, rax                                                       ; +0xf0, 0x1004c64e0\npop     rbx                                                            ; +0xf3, 0x1004c64e3\npop     r14                                                            ; +0xf4, 0x1004c64e4\npop     rbp                                                            ; +0xf6, 0x1004c64e6\njmp     rcx                                                            ; +0xf7, 0x1004c64e7\npop     rbx                                                            ; +0xf9, 0x1004c64e9\npop     r14                                                            ; +0xfa, 0x1004c64ea\npop     rbp                                                            ; +0xfc, 0x1004c64ec\nretn                                                                   ; +0xfd, 0x1004c64ed", "xrefs": ["UIOptionsLayer::valueDidChange @ 0x1002a2826", "GJUINode::init @ 0x1004c6129", "GJUINode::loadFromConfig @ 0x1004c6897", "TouchControlEditLayer::valueDidChange @ 0x10097a5c0"], "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"}