{"type": "func", "start": 4298565216, "end": 4298565381, "name": "GJItemIcon::toggleEnabledState", "pseudocode": "// \n// GJItemIcon::toggleEnabledState from 0x10036e660 to 0x10036e705 (165 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJItemIcon::toggleEnabledState(GJItemIcon *a1, bool a2)\n{\n  cocos2d::CCSprite *m_player; // rbx\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  unsigned int v5; // r14d\n  __int64 v6; // rax\n  _WORD v7[14]; // [rsp-1Ch] [rbp-1Ch] BYREF\n\n  if ( !a1->m_isIcon )\n  {\n    m_player = a1->m_player;\n    if ( a2 )\n    {\n      LOBYTE(v7[1]) = -1;\n      v7[0] = -1;\n    }\n    else\n    {\n      memset(v7, 100, 3);\n    }\n    ((void (__fastcall *)(cocos2d::CCSprite *, _WORD *))m_player->setColor)(m_player, v7);\n    v3 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_player->getChildren)(m_player);\n    if ( v3 )\n    {\n      v4 = v3;\n      if ( (unsigned int)sub_100720070(v3) )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = sub_1007200C0(v4, v5);\n          (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 328LL))(v6, 1);\n          ++v5;\n        }\n        while ( v5 < (unsigned int)sub_100720070(v4) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::toggleEnabledState from 0x10036e660 to 0x10036e705 (165 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\ncmp     byte ptr [rdi+26Ch], 0                                         ; +0x0, 0x10036e660\njnz     locret_10036E704                                               ; +0x7, 0x10036e667\npush    rbp                                                            ; +0xd, 0x10036e66d\nmov     rbp, rsp                                                       ; +0xe, 0x10036e66e\npush    r14                                                            ; +0x11, 0x10036e671\npush    rbx                                                            ; +0x13, 0x10036e673\nsub     rsp, 10h                                                       ; +0x14, 0x10036e674\nmov     rbx, [rdi+258h]                                                ; +0x18, 0x10036e678\ntest    sil, sil                                                       ; +0x1f, 0x10036e67f\njz      short loc_10036E690                                            ; +0x22, 0x10036e682\nmov     byte ptr [rbp-12h], 0FFh                                       ; +0x24, 0x10036e684\nmov     word ptr [rbp-14h], 0FFFFh                                     ; +0x28, 0x10036e688\njmp     short loc_10036E69A                                            ; +0x2e, 0x10036e68e\nmov     byte ptr [rbp-12h], 64h ; 'd'                                  ; +0x30, 0x10036e690\nmov     word ptr [rbp-14h], 6464h                                      ; +0x34, 0x10036e694\nmov     rax, [rbx]                                                     ; +0x3a, 0x10036e69a\nlea     rsi, [rbp-14h]                                                 ; +0x3d, 0x10036e69d\nmov     rdi, rbx                                                       ; +0x41, 0x10036e6a1\ncall    qword ptr [rax+3B0h]                                           ; +0x44, 0x10036e6a4\nmov     rax, [rbx]                                                     ; +0x4a, 0x10036e6aa\nmov     rdi, rbx                                                       ; +0x4d, 0x10036e6ad\ncall    qword ptr [rax+1D8h]                                           ; +0x50, 0x10036e6b0\ntest    rax, rax                                                       ; +0x56, 0x10036e6b6\njz      short loc_10036E6FC                                            ; +0x59, 0x10036e6b9\nmov     rbx, rax                                                       ; +0x5b, 0x10036e6bb\nmov     rdi, rax                                                       ; +0x5e, 0x10036e6be\ncall    sub_100720070                                                  ; +0x61, 0x10036e6c1\ntest    eax, eax                                                       ; +0x66, 0x10036e6c6\njz      short loc_10036E6FC                                            ; +0x68, 0x10036e6c8\nxor     r14d, r14d                                                     ; +0x6a, 0x10036e6ca\nnop     dword ptr [rax]                                                ; +0x6d, 0x10036e6cd\nmov     rdi, rbx                                                       ; +0x70, 0x10036e6d0\nmov     esi, r14d                                                      ; +0x73, 0x10036e6d3\ncall    sub_1007200C0                                                  ; +0x76, 0x10036e6d6\nmov     rcx, [rax]                                                     ; +0x7b, 0x10036e6db\nmov     rdi, rax                                                       ; +0x7e, 0x10036e6de\nmov     esi, 1                                                         ; +0x81, 0x10036e6e1\ncall    qword ptr [rcx+148h]                                           ; +0x86, 0x10036e6e6\ninc     r14d                                                           ; +0x8c, 0x10036e6ec\nmov     rdi, rbx                                                       ; +0x8f, 0x10036e6ef\ncall    sub_100720070                                                  ; +0x92, 0x10036e6f2\ncmp     r14d, eax                                                      ; +0x97, 0x10036e6f7\njb      short loc_10036E6D0                                            ; +0x9a, 0x10036e6fa\nadd     rsp, 10h                                                       ; +0x9c, 0x10036e6fc\npop     rbx                                                            ; +0xa0, 0x10036e700\npop     r14                                                            ; +0xa1, 0x10036e701\npop     rbp                                                            ; +0xa3, 0x10036e703\nretn                                                                   ; +0xa4, 0x10036e704", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}