{"type": "func", "start": 5370029136, "end": 5370029360, "name": "CustomizeObjectLayer::colorSetupClosed", "pseudocode": "// \n// CustomizeObjectLayer::colorSetupClosed from 0x140142450 to 0x140142530 (224 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140739718\n// > <???> @ 0x140917360\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 11:27:10 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::colorSetupClosed(__int64 a1, int a2)\n{\n  unsigned int v4; // ebp\n  __int64 ButtonByTag; // rax\n  const char *CString; // rdx\n  cocos2d::CCString *v7; // rax\n\n  CustomizeObjectLayer::updateSelected(a1 - 680);\n  v4 = a2;\n  if ( (unsigned int)(a2 - 10) <= 0x3DD )\n  {\n    *(_DWORD *)(a1 + 68) = a2;\n    v4 = 1008;\n    *(_BYTE *)(a1 + 242) = 1;\n    CustomizeObjectLayer::updateCustomColorLabels(a1 - 680);\n    *(_BYTE *)(a1 + 242) = 0;\n  }\n  ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1 - 680, v4);\n  CustomizeObjectLayer::highlightSelected(a1 - 680, ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite(a1 - 680);\n  if ( a2 < 1000 )\n  {\n    if ( a2 <= 0 )\n    {\n      CString = \" \";\n    }\n    else\n    {\n      v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)a2);\n      CString = cocos2d::CCString::getCString(v7);\n    }\n  }\n  else\n  {\n    CString = (const char *)GJSpecialColorSelect::textForColorIdx((unsigned int)a2);\n  }\n  return (**(__int64 (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 128) + 360LL))(\n           *(_QWORD *)(a1 + 128) + 360LL,\n           CString);\n}", "assembly": "; \n; CustomizeObjectLayer::colorSetupClosed from 0x140142450 to 0x140142530 (224 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140739718\n; > <???> @ 0x140917360\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 11:27:10 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140142450\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140142455\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14014245a\npush    rdi                                                            ; +0xf, 0x14014245f\nsub     rsp, 20h                                                       ; +0x10, 0x140142460\nmov     rdi, rcx                                                       ; +0x14, 0x140142464\nmov     ebx, edx                                                       ; +0x17, 0x140142467\nadd     rcx, 0FFFFFFFFFFFFFD58h                                        ; +0x19, 0x140142469\ncall    CustomizeObjectLayer__updateSelected                           ; +0x20, 0x140142470\nlea     eax, [rbx-0Ah]                                                 ; +0x25, 0x140142475\nmov     ebp, ebx                                                       ; +0x28, 0x140142478\ncmp     eax, 3DDh                                                      ; +0x2a, 0x14014247a\nja      short loc_1401424A3                                            ; +0x2f, 0x14014247f\nlea     rcx, [rdi-2A8h]                                                ; +0x31, 0x140142481\nmov     [rdi+44h], ebx                                                 ; +0x38, 0x140142488\nmov     ebp, 3F0h                                                      ; +0x3b, 0x14014248b\nmov     byte ptr [rdi+0F2h], 1                                         ; +0x40, 0x140142490\ncall    CustomizeObjectLayer__updateCustomColorLabels                  ; +0x47, 0x140142497\nmov     byte ptr [rdi+0F2h], 0                                         ; +0x4c, 0x14014249c\nmov     edx, ebp                                                       ; +0x53, 0x1401424a3\nlea     rcx, [rdi-2A8h]                                                ; +0x55, 0x1401424a5\ncall    CustomizeObjectLayer__getButtonByTag                           ; +0x5c, 0x1401424ac\nmov     rdx, rax                                                       ; +0x61, 0x1401424b1\nlea     rcx, [rdi-2A8h]                                                ; +0x64, 0x1401424b4\ncall    CustomizeObjectLayer__highlightSelected                        ; +0x6b, 0x1401424bb\nlea     rcx, [rdi-2A8h]                                                ; +0x70, 0x1401424c0\ncall    CustomizeObjectLayer__updateColorSprite                        ; +0x77, 0x1401424c7\ncmp     ebx, 3E8h                                                      ; +0x7c, 0x1401424cc\njl      short loc_1401424E0                                            ; +0x82, 0x1401424d2\nmov     ecx, ebx                                                       ; +0x84, 0x1401424d4\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0x86, 0x1401424d6\nmov     rdx, rax                                                       ; +0x8b, 0x1401424db\njmp     short loc_140142508                                            ; +0x8e, 0x1401424de\ntest    ebx, ebx                                                       ; +0x90, 0x1401424e0\njle     short loc_140142501                                            ; +0x92, 0x1401424e2\nmov     edx, ebx                                                       ; +0x94, 0x1401424e4\nlea     rcx, word_1406ED6F8                                            ; +0x96, 0x1401424e6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9d, 0x1401424ed\nmov     rcx, rax                                                       ; +0xa3, 0x1401424f3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa6, 0x1401424f6\nmov     rdx, rax                                                       ; +0xac, 0x1401424fc\njmp     short loc_140142508                                            ; +0xaf, 0x1401424ff\nlea     rdx, asc_1406ED6E4; \" \"                                        ; +0xb1, 0x140142501\nmov     rcx, [rdi+80h]                                                 ; +0xb8, 0x140142508\nadd     rcx, 168h                                                      ; +0xbf, 0x14014250f\nmov     rax, [rcx]                                                     ; +0xc6, 0x140142516\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x140142519\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xce, 0x14014251e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xd3, 0x140142523\nadd     rsp, 20h                                                       ; +0xd8, 0x140142528\npop     rdi                                                            ; +0xdc, 0x14014252c\njmp     qword ptr [rax]                                                ; +0xdd, 0x14014252d", "xrefs": ["<???> @ 0x140739718", "<???> @ 0x140917360"], "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"}