{"type": "func", "start": 4303384528, "end": 4303384699, "name": "ColorSelectPopup::onToggleTintMode", "pseudocode": "// \n// ColorSelectPopup::onToggleTintMode from 0x100806fd0 to 0x10080707b (171 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x100804a02\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:36:40 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::onToggleTintMode(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v2; // rcx\n  __int64 v4; // rdi\n  unsigned int v5; // r14d\n  __int64 v6; // rcx\n\n  result = *(unsigned int *)(a1 + 1136);\n  *(_DWORD *)(a1 + 1136) = result != 1;\n  v2 = *(_QWORD *)(a1 + 680);\n  if ( v2 )\n  {\n    *(_BYTE *)(v2 + 1487) = (_DWORD)result != 1;\n  }\n  else\n  {\n    v4 = *(_QWORD *)(a1 + 688);\n    if ( v4 )\n    {\n      result = sub_1007FEF90(v4);\n      if ( (_DWORD)result )\n      {\n        v5 = 0;\n        do\n        {\n          *(_BYTE *)(sub_1007FEFE0(*(_QWORD *)(a1 + 688), v5++) + 1487) = *(_DWORD *)(a1 + 1136) != 0;\n          result = sub_1007FEF90(*(_QWORD *)(a1 + 688));\n        }\n        while ( v5 < (unsigned int)result );\n      }\n    }\n    else\n    {\n      v6 = *(_QWORD *)(a1 + 1144);\n      if ( v6 )\n        *(_BYTE *)(v6 + 84) = (_DWORD)result != 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::onToggleTintMode from 0x100806fd0 to 0x10080707b (171 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x100804a02\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:36:40 +0000\n; \npush    rbp                                                            ; +0x0, 0x100806fd0\nmov     rbp, rsp                                                       ; +0x1, 0x100806fd1\npush    r14                                                            ; +0x4, 0x100806fd4\npush    rbx                                                            ; +0x6, 0x100806fd6\nmov     eax, [rdi+470h]                                                ; +0x7, 0x100806fd7\nxor     ecx, ecx                                                       ; +0xd, 0x100806fdd\ncmp     eax, 1                                                         ; +0xf, 0x100806fdf\nsetnz   cl                                                             ; +0x12, 0x100806fe2\nmov     [rdi+470h], ecx                                                ; +0x15, 0x100806fe5\nmov     rcx, [rdi+2A8h]                                                ; +0x1b, 0x100806feb\ntest    rcx, rcx                                                       ; +0x22, 0x100806ff2\njz      short loc_100807006                                            ; +0x25, 0x100806ff5\ncmp     eax, 1                                                         ; +0x27, 0x100806ff7\nsetnz   byte ptr [rcx+5CFh]                                            ; +0x2a, 0x100806ffa\npop     rbx                                                            ; +0x31, 0x100807001\npop     r14                                                            ; +0x32, 0x100807002\npop     rbp                                                            ; +0x34, 0x100807004\nretn                                                                   ; +0x35, 0x100807005\nmov     rbx, rdi                                                       ; +0x36, 0x100807006\nmov     rdi, [rdi+2B0h]                                                ; +0x39, 0x100807009\ntest    rdi, rdi                                                       ; +0x40, 0x100807010\njz      short loc_100807063                                            ; +0x43, 0x100807013\ncall    sub_1007FEF90                                                  ; +0x45, 0x100807015\ntest    eax, eax                                                       ; +0x4a, 0x10080701a\njz      short loc_100807001                                            ; +0x4c, 0x10080701c\nxor     r14d, r14d                                                     ; +0x4e, 0x10080701e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x51, 0x100807021\nmov     rdi, [rbx+2B0h]                                                ; +0x60, 0x100807030\nmov     esi, r14d                                                      ; +0x67, 0x100807037\ncall    sub_1007FEFE0                                                  ; +0x6a, 0x10080703a\ncmp     dword ptr [rbx+470h], 0                                        ; +0x6f, 0x10080703f\nsetnz   byte ptr [rax+5CFh]                                            ; +0x76, 0x100807046\ninc     r14d                                                           ; +0x7d, 0x10080704d\nmov     rdi, [rbx+2B0h]                                                ; +0x80, 0x100807050\ncall    sub_1007FEF90                                                  ; +0x87, 0x100807057\ncmp     r14d, eax                                                      ; +0x8c, 0x10080705c\njb      short loc_100807030                                            ; +0x8f, 0x10080705f\njmp     short loc_100807001                                            ; +0x91, 0x100807061\nmov     rcx, [rbx+478h]                                                ; +0x93, 0x100807063\ntest    rcx, rcx                                                       ; +0x9a, 0x10080706a\njz      short loc_100807001                                            ; +0x9d, 0x10080706d\ncmp     eax, 1                                                         ; +0x9f, 0x10080706f\nsetnz   byte ptr [rcx+54h]                                             ; +0xa2, 0x100807072\npop     rbx                                                            ; +0xa6, 0x100807076\npop     r14                                                            ; +0xa7, 0x100807077\npop     rbp                                                            ; +0xa9, 0x100807079\nretn                                                                   ; +0xaa, 0x10080707a", "xrefs": ["ColorSelectPopup::init @ 0x100804a02"], "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"}