{"type": "func", "start": 4298472064, "end": 4298472229, "name": "GJItemIcon::toggleEnabledState", "pseudocode": "// \n// GJItemIcon::toggleEnabledState from 0x100357a80 to 0x100357b25 (165 bytes)\n// \n// 0 xrefs:\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:28:52 +0000\n// \n\nvoid __fastcall GJItemIcon::toggleEnabledState(__int64 a1, char a2)\n{\n  __int64 v2; // 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 ( !*(_BYTE *)(a1 + 620) )\n  {\n    v2 = *(_QWORD *)(a1 + 600);\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 **)(__int64, _WORD *))(*(_QWORD *)v2 + 960LL))(v2, v7);\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 488LL))(v2);\n    if ( v3 )\n    {\n      v4 = v3;\n      if ( (unsigned int)sub_1007FEF90(v3) )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = sub_1007FEFE0(v4, v5);\n          (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, 1);\n          ++v5;\n        }\n        while ( v5 < (unsigned int)sub_1007FEF90(v4) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::toggleEnabledState from 0x100357a80 to 0x100357b25 (165 bytes)\n; \n; 0 xrefs:\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:28:52 +0000\n; \ncmp     byte ptr [rdi+26Ch], 0                                         ; +0x0, 0x100357a80\njnz     locret_100357B24                                               ; +0x7, 0x100357a87\npush    rbp                                                            ; +0xd, 0x100357a8d\nmov     rbp, rsp                                                       ; +0xe, 0x100357a8e\npush    r14                                                            ; +0x11, 0x100357a91\npush    rbx                                                            ; +0x13, 0x100357a93\nsub     rsp, 10h                                                       ; +0x14, 0x100357a94\nmov     rbx, [rdi+258h]                                                ; +0x18, 0x100357a98\ntest    sil, sil                                                       ; +0x1f, 0x100357a9f\njz      short loc_100357AB0                                            ; +0x22, 0x100357aa2\nmov     byte ptr [rbp-12h], 0FFh                                       ; +0x24, 0x100357aa4\nmov     word ptr [rbp-14h], 0FFFFh                                     ; +0x28, 0x100357aa8\njmp     short loc_100357ABA                                            ; +0x2e, 0x100357aae\nmov     byte ptr [rbp-12h], 64h ; 'd'                                  ; +0x30, 0x100357ab0\nmov     word ptr [rbp-14h], 6464h                                      ; +0x34, 0x100357ab4\nmov     rax, [rbx]                                                     ; +0x3a, 0x100357aba\nlea     rsi, [rbp-14h]                                                 ; +0x3d, 0x100357abd\nmov     rdi, rbx                                                       ; +0x41, 0x100357ac1\ncall    qword ptr [rax+3C0h]                                           ; +0x44, 0x100357ac4\nmov     rax, [rbx]                                                     ; +0x4a, 0x100357aca\nmov     rdi, rbx                                                       ; +0x4d, 0x100357acd\ncall    qword ptr [rax+1E8h]                                           ; +0x50, 0x100357ad0\ntest    rax, rax                                                       ; +0x56, 0x100357ad6\njz      short loc_100357B1C                                            ; +0x59, 0x100357ad9\nmov     rbx, rax                                                       ; +0x5b, 0x100357adb\nmov     rdi, rax                                                       ; +0x5e, 0x100357ade\ncall    sub_1007FEF90                                                  ; +0x61, 0x100357ae1\ntest    eax, eax                                                       ; +0x66, 0x100357ae6\njz      short loc_100357B1C                                            ; +0x68, 0x100357ae8\nxor     r14d, r14d                                                     ; +0x6a, 0x100357aea\nnop     dword ptr [rax]                                                ; +0x6d, 0x100357aed\nmov     rdi, rbx                                                       ; +0x70, 0x100357af0\nmov     esi, r14d                                                      ; +0x73, 0x100357af3\ncall    sub_1007FEFE0                                                  ; +0x76, 0x100357af6\nmov     rcx, [rax]                                                     ; +0x7b, 0x100357afb\nmov     rdi, rax                                                       ; +0x7e, 0x100357afe\nmov     esi, 1                                                         ; +0x81, 0x100357b01\ncall    qword ptr [rcx+158h]                                           ; +0x86, 0x100357b06\ninc     r14d                                                           ; +0x8c, 0x100357b0c\nmov     rdi, rbx                                                       ; +0x8f, 0x100357b0f\ncall    sub_1007FEF90                                                  ; +0x92, 0x100357b12\ncmp     r14d, eax                                                      ; +0x97, 0x100357b17\njb      short loc_100357AF0                                            ; +0x9a, 0x100357b1a\nadd     rsp, 10h                                                       ; +0x9c, 0x100357b1c\npop     rbx                                                            ; +0xa0, 0x100357b20\npop     r14                                                            ; +0xa1, 0x100357b21\npop     rbp                                                            ; +0xa3, 0x100357b23\nretn                                                                   ; +0xa4, 0x100357b24", "xrefs": [], "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"}