{"type": "func", "start": 4296914096, "end": 4296914293, "name": "CustomizeObjectLayer::hsvPopupClosed", "pseudocode": "// \n// CustomizeObjectLayer::hsvPopupClosed from 0x1001db4b0 to 0x1001db575 (197 bytes)\n// \n// 2 xrefs:\n// > sub_1001DB580 @ 0x1001db58c\n// > <???> @ 0x100add9e0\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:26:26 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::hsvPopupClosed(__int64 a1, __int64 a2, __int64 a3, __m128 a4)\n{\n  unsigned int v6; // r15d\n  __int64 v7; // rdi\n  __int64 RelativeSpriteColor; // rax\n  unsigned int v9; // r12d\n  __int64 v10; // rax\n  __int64 v11; // rax\n  __m128 v13; // [rsp+0h] [rbp-30h]\n\n  v13 = a4;\n  v6 = ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1) + 1;\n  v7 = *(_QWORD *)(a1 + 688);\n  if ( v7 )\n  {\n    RelativeSpriteColor = GameObject::getRelativeSpriteColor(v7, v6);\n    if ( RelativeSpriteColor )\n    {\n      _mm_storel_ps((double *)(RelativeSpriteColor + 16), a4);\n      *(_QWORD *)(RelativeSpriteColor + 24) = a3;\n    }\n  }\n  else if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 696)) )\n  {\n    v9 = 0;\n    do\n    {\n      v10 = sub_1007FEFE0(*(_QWORD *)(a1 + 696), v9);\n      v11 = GameObject::getRelativeSpriteColor(v10, v6);\n      if ( v11 )\n      {\n        a4 = v13;\n        _mm_storel_ps((double *)(v11 + 16), v13);\n        *(_QWORD *)(v11 + 24) = a3;\n      }\n      ++v9;\n    }\n    while ( v9 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 696)) );\n  }\n  return CustomizeObjectLayer::updateHSVButtons(a1, a4);\n}", "assembly": "; \n; CustomizeObjectLayer::hsvPopupClosed from 0x1001db4b0 to 0x1001db575 (197 bytes)\n; \n; 2 xrefs:\n; > sub_1001DB580 @ 0x1001db58c\n; > <???> @ 0x100add9e0\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:26:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001db4b0\nmov     rbp, rsp                                                       ; +0x1, 0x1001db4b1\npush    r15                                                            ; +0x4, 0x1001db4b4\npush    r14                                                            ; +0x6, 0x1001db4b6\npush    r12                                                            ; +0x8, 0x1001db4b8\npush    rbx                                                            ; +0xa, 0x1001db4ba\nsub     rsp, 10h                                                       ; +0xb, 0x1001db4bb\nmov     r14, rdx                                                       ; +0xf, 0x1001db4bf\nmovaps  [rbp+var_30], xmm0                                             ; +0x12, 0x1001db4c2\nmov     rbx, rdi                                                       ; +0x16, 0x1001db4c6\nmov     rax, [rsi]                                                     ; +0x19, 0x1001db4c9\nmov     rdi, rsi                                                       ; +0x1c, 0x1001db4cc\ncall    qword ptr [rax+40h]                                            ; +0x1f, 0x1001db4cf\nxor     r15d, r15d                                                     ; +0x22, 0x1001db4d2\ncmp     eax, 1                                                         ; +0x25, 0x1001db4d5\nsetnz   r15b                                                           ; +0x28, 0x1001db4d8\ninc     r15d                                                           ; +0x2c, 0x1001db4dc\nmov     rdi, [rbx+2B0h]                                                ; +0x2f, 0x1001db4df\ntest    rdi, rdi                                                       ; +0x36, 0x1001db4e6\njz      short loc_1001DB506                                            ; +0x39, 0x1001db4e9\nmov     esi, r15d                                                      ; +0x3b, 0x1001db4eb\ncall    GameObject__getRelativeSpriteColor                             ; +0x3e, 0x1001db4ee\ntest    rax, rax                                                       ; +0x43, 0x1001db4f3\njz      short loc_1001DB561                                            ; +0x46, 0x1001db4f6\nmovaps  xmm0, [rbp+var_30]                                             ; +0x48, 0x1001db4f8\nmovlps  qword ptr [rax+10h], xmm0                                      ; +0x4c, 0x1001db4fc\nmov     [rax+18h], r14                                                 ; +0x50, 0x1001db500\njmp     short loc_1001DB561                                            ; +0x54, 0x1001db504\nmov     rdi, [rbx+2B8h]                                                ; +0x56, 0x1001db506\ncall    sub_1007FEF90                                                  ; +0x5d, 0x1001db50d\ntest    eax, eax                                                       ; +0x62, 0x1001db512\njz      short loc_1001DB561                                            ; +0x64, 0x1001db514\nxor     r12d, r12d                                                     ; +0x66, 0x1001db516\njmp     short loc_1001DB534                                            ; +0x69, 0x1001db519\nalign 20h                                                              ; +0x6b, 0x1001db51b\ninc     r12d                                                           ; +0x70, 0x1001db520\nmov     rdi, [rbx+2B8h]                                                ; +0x73, 0x1001db523\ncall    sub_1007FEF90                                                  ; +0x7a, 0x1001db52a\ncmp     r12d, eax                                                      ; +0x7f, 0x1001db52f\njnb     short loc_1001DB561                                            ; +0x82, 0x1001db532\nmov     rdi, [rbx+2B8h]                                                ; +0x84, 0x1001db534\nmov     esi, r12d                                                      ; +0x8b, 0x1001db53b\ncall    sub_1007FEFE0                                                  ; +0x8e, 0x1001db53e\nmov     rdi, rax                                                       ; +0x93, 0x1001db543\nmov     esi, r15d                                                      ; +0x96, 0x1001db546\ncall    GameObject__getRelativeSpriteColor                             ; +0x99, 0x1001db549\ntest    rax, rax                                                       ; +0x9e, 0x1001db54e\njz      short loc_1001DB520                                            ; +0xa1, 0x1001db551\nmovaps  xmm0, [rbp+var_30]                                             ; +0xa3, 0x1001db553\nmovlps  qword ptr [rax+10h], xmm0                                      ; +0xa7, 0x1001db557\nmov     [rax+18h], r14                                                 ; +0xab, 0x1001db55b\njmp     short loc_1001DB520                                            ; +0xaf, 0x1001db55f\nmov     rdi, rbx                                                       ; +0xb1, 0x1001db561\nadd     rsp, 10h                                                       ; +0xb4, 0x1001db564\npop     rbx                                                            ; +0xb8, 0x1001db568\npop     r12                                                            ; +0xb9, 0x1001db569\npop     r14                                                            ; +0xbb, 0x1001db56b\npop     r15                                                            ; +0xbd, 0x1001db56d\npop     rbp                                                            ; +0xbf, 0x1001db56f\njmp     CustomizeObjectLayer__updateHSVButtons                         ; +0xc0, 0x1001db570", "xrefs": ["sub_1001DB580 @ 0x1001db58c", "<???> @ 0x100add9e0"], "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"}