{"type": "func", "start": 5369398176, "end": 5369398400, "name": "CustomizeObjectLayer::colorSetupClosed", "pseudocode": "// \n// CustomizeObjectLayer::colorSetupClosed from 0x1400a83a0 to 0x1400a8480 (224 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405453f0\n// > <???> @ 0x1406c77a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CustomizeObjectLayer::colorSetupClosed(CustomizeObjectLayer *a1, int a2)\n{\n  int v4; // ebp\n  ButtonSprite *ButtonByTag; // rax\n  const char *CString; // rdx\n  cocos2d::CCString *v7; // rax\n\n  CustomizeObjectLayer::updateSelected((CustomizeObjectLayer *)((char *)a1 - 656), a2);\n  v4 = a2;\n  if ( (unsigned int)(a2 - 10) <= 0x3DD )\n  {\n    LODWORD(a1->m_fScaleY) = a2;\n    v4 = 1008;\n    BYTE2(a1->m_pShaderProgram) = 1;\n    CustomizeObjectLayer::updateCustomColorLabels((CustomizeObjectLayer *)((char *)a1 - 656));\n    BYTE2(a1->m_pShaderProgram) = 0;\n  }\n  ButtonByTag = CustomizeObjectLayer::getButtonByTag((CustomizeObjectLayer *)((char *)a1 - 656), v4);\n  CustomizeObjectLayer::highlightSelected((CustomizeObjectLayer *)((char *)a1 - 656), ButtonByTag);\n  CustomizeObjectLayer::updateColorSprite((CustomizeObjectLayer *)((char *)a1 - 656));\n  if ( a2 < 1000 )\n  {\n    if ( a2 <= 0 )\n    {\n      CString = \" \";\n    }\n    else\n    {\n      v7 = cocos2d::CCString::createWithFormat(\"%i\", a2);\n      CString = cocos2d::CCString::getCString(v7);\n    }\n  }\n  else\n  {\n    CString = GJSpecialColorSelect::textForColorIdx(a2);\n  }\n  (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)&a1->m_sAdditionalTransform.d + 360LL))(\n    *(_QWORD *)&a1->m_sAdditionalTransform.d + 360LL,\n    CString);\n}", "assembly": "; \n; CustomizeObjectLayer::colorSetupClosed from 0x1400a83a0 to 0x1400a8480 (224 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405453f0\n; > <???> @ 0x1406c77a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400a83a0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400a83a5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400a83aa\npush    rdi                                                            ; +0xf, 0x1400a83af\nsub     rsp, 20h                                                       ; +0x10, 0x1400a83b0\nmov     rdi, rcx                                                       ; +0x14, 0x1400a83b4\nmov     ebx, edx                                                       ; +0x17, 0x1400a83b7\nadd     rcx, 0FFFFFFFFFFFFFD70h                                        ; +0x19, 0x1400a83b9\ncall    CustomizeObjectLayer__updateSelected                           ; +0x20, 0x1400a83c0\nlea     eax, [rbx-0Ah]                                                 ; +0x25, 0x1400a83c5\nmov     ebp, ebx                                                       ; +0x28, 0x1400a83c8\ncmp     eax, 3DDh                                                      ; +0x2a, 0x1400a83ca\nja      short loc_1400A83F3                                            ; +0x2f, 0x1400a83cf\nlea     rcx, [rdi-290h]                                                ; +0x31, 0x1400a83d1\nmov     [rdi+44h], ebx                                                 ; +0x38, 0x1400a83d8\nmov     ebp, 3F0h                                                      ; +0x3b, 0x1400a83db\nmov     byte ptr [rdi+0F2h], 1                                         ; +0x40, 0x1400a83e0\ncall    CustomizeObjectLayer__updateCustomColorLabels                  ; +0x47, 0x1400a83e7\nmov     byte ptr [rdi+0F2h], 0                                         ; +0x4c, 0x1400a83ec\nmov     edx, ebp                                                       ; +0x53, 0x1400a83f3\nlea     rcx, [rdi-290h]                                                ; +0x55, 0x1400a83f5\ncall    CustomizeObjectLayer__getButtonByTag                           ; +0x5c, 0x1400a83fc\nmov     rdx, rax                                                       ; +0x61, 0x1400a8401\nlea     rcx, [rdi-290h]                                                ; +0x64, 0x1400a8404\ncall    CustomizeObjectLayer__highlightSelected                        ; +0x6b, 0x1400a840b\nlea     rcx, [rdi-290h]                                                ; +0x70, 0x1400a8410\ncall    CustomizeObjectLayer__updateColorSprite                        ; +0x77, 0x1400a8417\ncmp     ebx, 3E8h                                                      ; +0x7c, 0x1400a841c\njl      short loc_1400A8430                                            ; +0x82, 0x1400a8422\nmov     ecx, ebx                                                       ; +0x84, 0x1400a8424\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0x86, 0x1400a8426\nmov     rdx, rax                                                       ; +0x8b, 0x1400a842b\njmp     short loc_1400A8458                                            ; +0x8e, 0x1400a842e\ntest    ebx, ebx                                                       ; +0x90, 0x1400a8430\njle     short loc_1400A8451                                            ; +0x92, 0x1400a8432\nmov     edx, ebx                                                       ; +0x94, 0x1400a8434\nlea     rcx, aI_11; \"%i\"                                               ; +0x96, 0x1400a8436\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9d, 0x1400a843d\nmov     rcx, rax                                                       ; +0xa3, 0x1400a8443\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa6, 0x1400a8446\nmov     rdx, rax                                                       ; +0xac, 0x1400a844c\njmp     short loc_1400A8458                                            ; +0xaf, 0x1400a844f\nlea     rdx, asc_140518984; \" \"                                        ; +0xb1, 0x1400a8451\nmov     rcx, [rdi+80h]                                                 ; +0xb8, 0x1400a8458\nadd     rcx, 168h                                                      ; +0xbf, 0x1400a845f\nmov     rax, [rcx]                                                     ; +0xc6, 0x1400a8466\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc9, 0x1400a8469\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xce, 0x1400a846e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xd3, 0x1400a8473\nadd     rsp, 20h                                                       ; +0xd8, 0x1400a8478\npop     rdi                                                            ; +0xdc, 0x1400a847c\njmp     qword ptr [rax]                                                ; +0xdd, 0x1400a847d", "xrefs": ["<???> @ 0x1405453f0", "<???> @ 0x1406c77a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}