{"type": "func", "start": 4300827920, "end": 4300828213, "name": "ColorSelectLiveOverlay::onSelectTab", "pseudocode": "// \n// ColorSelectLiveOverlay::onSelectTab from 0x100596d10 to 0x100596e35 (293 bytes)\n// \n// 1 xrefs:\n// > ColorSelectLiveOverlay::init @ 0x100596452\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:32:29 +0000\n// \n\n__int64 __fastcall ColorSelectLiveOverlay::onSelectTab(\n        __int64 a1,\n        __int64 a2,\n        double a3,\n        double a4,\n        double a5,\n        double a6,\n        double a7,\n        double a8,\n        double a9,\n        double a10)\n{\n  __int64 result; // rax\n  double v12; // xmm4_8\n  double v13; // xmm5_8\n  __int64 v14; // rax\n  double v15; // xmm0_8\n  unsigned int v16; // r15d\n  __int64 v17; // r12\n  int v18; // r13d\n  const char *v19; // rsi\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( *(_BYTE *)(a1 + 856) != ((_DWORD)result != 1) )\n  {\n    *(_BYTE *)(a1 + 856) = (_DWORD)result != 1;\n    v14 = *(_QWORD *)(a1 + 8LL * ((_DWORD)result != 1) + 688);\n    *(_QWORD *)&v15 = *(unsigned int *)(v14 + 96);\n    *(_DWORD *)(a1 + 728) = LODWORD(v15);\n    ColorSelectLiveOverlay::selectColor(\n      a1,\n      *(unsigned __int16 *)(v14 + 72) | (*(unsigned __int8 *)(v14 + 74) << 16),\n      v15,\n      a4,\n      a5,\n      a6,\n      v12,\n      v13,\n      a9,\n      a10);\n    if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) )\n    {\n      v16 = 0;\n      do\n      {\n        v17 = sub_1007FEFE0(*(_QWORD *)(a1 + 680), v16);\n        v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n        v19 = \"GJ_button_04.png\";\n        if ( v18 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v17 + 64LL))(v17) )\n          v19 = \"GJ_button_01.png\";\n        ButtonSprite::updateBGImage(v17, (__int64)v19);\n        ++v16;\n      }\n      while ( v16 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) );\n    }\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 792) + 960LL))(\n      *(_QWORD *)(a1 + 792),\n      a1 + 3LL * *(unsigned __int8 *)(a1 + 856) + 704);\n    return ColorSelectLiveOverlay::updateColorLabel(a1);\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectLiveOverlay::onSelectTab from 0x100596d10 to 0x100596e35 (293 bytes)\n; \n; 1 xrefs:\n; > ColorSelectLiveOverlay::init @ 0x100596452\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:32:29 +0000\n; \npush    rbp                                                            ; +0x0, 0x100596d10\nmov     rbp, rsp                                                       ; +0x1, 0x100596d11\npush    r15                                                            ; +0x4, 0x100596d14\npush    r14                                                            ; +0x6, 0x100596d16\npush    r13                                                            ; +0x8, 0x100596d18\npush    r12                                                            ; +0xa, 0x100596d1a\npush    rbx                                                            ; +0xc, 0x100596d1c\npush    rax                                                            ; +0xd, 0x100596d1d\nmov     r14, rsi                                                       ; +0xe, 0x100596d1e\nmov     rbx, rdi                                                       ; +0x11, 0x100596d21\nmov     rax, [rsi]                                                     ; +0x14, 0x100596d24\nmov     rdi, rsi                                                       ; +0x17, 0x100596d27\ncall    qword ptr [rax+40h]                                            ; +0x1a, 0x100596d2a\ncmp     eax, 1                                                         ; +0x1d, 0x100596d2d\nsetnz   cl                                                             ; +0x20, 0x100596d30\ncmp     [rbx+358h], cl                                                 ; +0x23, 0x100596d33\njnz     short loc_100596D4A                                            ; +0x29, 0x100596d39\nadd     rsp, 8                                                         ; +0x2b, 0x100596d3b\npop     rbx                                                            ; +0x2f, 0x100596d3f\npop     r12                                                            ; +0x30, 0x100596d40\npop     r13                                                            ; +0x32, 0x100596d42\npop     r14                                                            ; +0x34, 0x100596d44\npop     r15                                                            ; +0x36, 0x100596d46\npop     rbp                                                            ; +0x38, 0x100596d48\nretn                                                                   ; +0x39, 0x100596d49\nxor     edx, edx                                                       ; +0x3a, 0x100596d4a\ncmp     eax, 1                                                         ; +0x3c, 0x100596d4c\nsetnz   dl                                                             ; +0x3f, 0x100596d4f\nmov     [rbx+358h], cl                                                 ; +0x42, 0x100596d52\nmov     rax, [rbx+rdx*8+2B0h]                                          ; +0x48, 0x100596d58\nmovss   xmm0, dword ptr [rax+60h]                                      ; +0x50, 0x100596d60\nmovss   dword ptr [rbx+2D8h], xmm0                                     ; +0x55, 0x100596d65\nmovzx   ecx, word ptr [rax+48h]                                        ; +0x5d, 0x100596d6d\nmovzx   esi, byte ptr [rax+4Ah]                                        ; +0x61, 0x100596d71\nshl     esi, 10h                                                       ; +0x65, 0x100596d75\nor      esi, ecx                                                       ; +0x68, 0x100596d78\nmov     rdi, rbx                                                       ; +0x6a, 0x100596d7a\ncall    ColorSelectLiveOverlay__selectColor                            ; +0x6d, 0x100596d7d\nmov     rdi, [rbx+2A8h]                                                ; +0x72, 0x100596d82\ncall    sub_1007FEF90                                                  ; +0x79, 0x100596d89\ntest    eax, eax                                                       ; +0x7e, 0x100596d8e\njz      short loc_100596DF9                                            ; +0x80, 0x100596d90\nxor     r15d, r15d                                                     ; +0x82, 0x100596d92\nnop     word ptr [rax+rax+00000000h]                                   ; +0x85, 0x100596d95\nmov     rdi, [rbx+2A8h]                                                ; +0x90, 0x100596da0\nmov     esi, r15d                                                      ; +0x97, 0x100596da7\ncall    sub_1007FEFE0                                                  ; +0x9a, 0x100596daa\nmov     r12, rax                                                       ; +0x9f, 0x100596daf\nmov     rax, [r14]                                                     ; +0xa2, 0x100596db2\nmov     rdi, r14                                                       ; +0xa5, 0x100596db5\ncall    qword ptr [rax+40h]                                            ; +0xa8, 0x100596db8\nmov     r13d, eax                                                      ; +0xab, 0x100596dbb\nmov     rax, [r12]                                                     ; +0xae, 0x100596dbe\nmov     rdi, r12                                                       ; +0xb2, 0x100596dc2\ncall    qword ptr [rax+40h]                                            ; +0xb5, 0x100596dc5\ncmp     r13d, eax                                                      ; +0xb8, 0x100596dc8\nlea     rsi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0xbb, 0x100596dcb\nlea     rax, aGjButton01Png; \"GJ_button_01.png\"                        ; +0xc2, 0x100596dd2\ncmovz   rsi, rax                                                       ; +0xc9, 0x100596dd9\nmov     rdi, r12                                                       ; +0xcd, 0x100596ddd\ncall    ButtonSprite__updateBGImage                                    ; +0xd0, 0x100596de0\ninc     r15d                                                           ; +0xd5, 0x100596de5\nmov     rdi, [rbx+2A8h]                                                ; +0xd8, 0x100596de8\ncall    sub_1007FEF90                                                  ; +0xdf, 0x100596def\ncmp     r15d, eax                                                      ; +0xe4, 0x100596df4\njb      short loc_100596DA0                                            ; +0xe7, 0x100596df7\nmov     rdi, [rbx+318h]                                                ; +0xe9, 0x100596df9\nmovzx   eax, byte ptr [rbx+358h]                                       ; +0xf0, 0x100596e00\nlea     rax, [rax+rax*2]                                               ; +0xf7, 0x100596e07\nlea     rsi, [rbx+rax]                                                 ; +0xfb, 0x100596e0b\nadd     rsi, 2C0h                                                      ; +0xff, 0x100596e0f\nmov     rax, [rdi]                                                     ; +0x106, 0x100596e16\ncall    qword ptr [rax+3C0h]                                           ; +0x109, 0x100596e19\nmov     rdi, rbx                                                       ; +0x10f, 0x100596e1f\nadd     rsp, 8                                                         ; +0x112, 0x100596e22\npop     rbx                                                            ; +0x116, 0x100596e26\npop     r12                                                            ; +0x117, 0x100596e27\npop     r13                                                            ; +0x119, 0x100596e29\npop     r14                                                            ; +0x11b, 0x100596e2b\npop     r15                                                            ; +0x11d, 0x100596e2d\npop     rbp                                                            ; +0x11f, 0x100596e2f\njmp     ColorSelectLiveOverlay__updateColorLabel                       ; +0x120, 0x100596e30", "xrefs": ["ColorSelectLiveOverlay::init @ 0x100596452"], "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"}