{"type": "func", "start": 5369370384, "end": 5369371931, "name": "CharacterColorPage::createColorMenu", "pseudocode": "// \n// CharacterColorPage::createColorMenu from 0x1400a1710 to 0x1400a1d1b (1547 bytes)\n// \n// 2 xrefs:\n// > CharacterColorPage::init @ 0x1400a1299\n// > <???> @ 0x1409130b8\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:26:07 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall CharacterColorPage::createColorMenu(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  cocos2d::CCObject *v4; // rax\n  __int64 v5; // rdi\n  struct cocos2d::CCObject *v6; // rbx\n  cocos2d::CCObject *v7; // rax\n  int i; // esi\n  __int64 v9; // rcx\n  int v10; // eax\n  __int64 v11; // r15\n  __int64 v12; // r13\n  const char *v13; // rcx\n  struct cocos2d::CCSprite *v14; // rdi\n  __int64 v15; // rbx\n  __int64 v16; // rax\n  __int64 *v17; // rdi\n  float v18; // xmm1_4\n  float v19; // xmm2_4\n  __int64 v20; // rax\n  __int64 v21; // rbx\n  __int64 v22; // rax\n  __int64 v23; // rcx\n  void (__fastcall **v24)(__int64, __int64); // rbx\n  __int64 v25; // rax\n  void *v26; // rcx\n  int v27; // [rsp+30h] [rbp-D0h]\n  float v28[2]; // [rsp+38h] [rbp-C8h] BYREF\n  float v29[2]; // [rsp+40h] [rbp-C0h] BYREF\n  char v30[4]; // [rsp+48h] [rbp-B8h] BYREF\n  _BYTE v31[12]; // [rsp+4Ch] [rbp-B4h] BYREF\n  char v32[8]; // [rsp+58h] [rbp-A8h] BYREF\n  char v33[8]; // [rsp+60h] [rbp-A0h] BYREF\n  char v34[8]; // [rsp+68h] [rbp-98h] BYREF\n  void *v35; // [rsp+70h] [rbp-90h]\n  char v36[8]; // [rsp+78h] [rbp-88h] BYREF\n  char v37[8]; // [rsp+80h] [rbp-80h] BYREF\n  void *v38; // [rsp+88h] [rbp-78h]\n  __int128 v39; // [rsp+90h] [rbp-70h] BYREF\n  __int64 v40; // [rsp+A0h] [rbp-60h]\n  unsigned __int64 v41; // [rsp+A8h] [rbp-58h]\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v2, v28);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, v28[0] * 0.5, (float)(v28[1] * 0.5) - 59.0);\n  v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(v3);\n  *(_QWORD *)(a1 + 704) = v4;\n  cocos2d::CCObject::retain(v4);\n  v5 = 3;\n  do\n  {\n    v6 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_select_001.png\");\n    (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 160LL))(v6);\n    (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(\n      *(_QWORD *)(a1 + 584),\n      v6,\n      11);\n    cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 704), v6);\n    --v5;\n  }\n  while ( v5 );\n  v7 = (cocos2d::CCObject *)cocos2d::CCDictionary::create();\n  *(_QWORD *)(a1 + 696) = v7;\n  cocos2d::CCObject::retain(v7);\n  for ( i = 0; i < 144; ++i )\n  {\n    v27 = (int)floorf((float)(i / 18));\n    v10 = CharacterColorPage::colorForIndex(v9, (unsigned int)i);\n    v11 = v10;\n    if ( v10 < 0 )\n      continue;\n    v12 = ColorChannelSprite::create();\n    cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 696), (struct cocos2d::CCObject *)v12, v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 160LL))(v12);\n    v39 = 0;\n    v40 = 0;\n    v41 = 0;\n    *(_QWORD *)&v39 = sub_14003D460(0x20u);\n    v40 = 19;\n    v41 = 31;\n    strcpy((char *)v39, \"GJ_lockGray_001.png\");\n    v13 = (const char *)&v39;\n    if ( v41 > 0xF )\n      v13 = (const char *)v39;\n    v14 = cocos2d::CCSprite::createWithSpriteFrameName(v13);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v14 + 160LL))(v14);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v14 + 64LL))(v14, 100);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 464LL))(v12, v14);\n    v15 = *(_QWORD *)v14;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, *(float *)(v12 + 432) * 0.5, *(float *)(v12 + 436) * 0.5);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v15 + 184))(v14, v16);\n    v35 = operator new(0x208u);\n    v17 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v35);\n    if ( !v17 )\n      goto LABEL_11;\n    if ( !CCMenuItemSpriteExtra::init(v17, (__int64 *)v12, 0, a1, (__int64)CharacterColorPage::onPlayerColor) )\n    {\n      (*(void (__fastcall **)(__int64 *, __int64))(*v17 + 8))(v17, 1);\nLABEL_11:\n      v17 = nullptr;\n      goto LABEL_12;\n    }\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v17);\nLABEL_12:\n    (*(void (__fastcall **)(__int64 *, _QWORD))(*v17 + 64))(v17, (unsigned int)v11);\n    (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v17);\n    v18 = 0.0;\n    if ( (unsigned int)(i - 54) > 0x51 )\n      v19 = 0.0;\n    else\n      v19 = -0.80000001;\n    if ( i >= 136 )\n      v19 = 0.40000001;\n    if ( (unsigned int)(i - 4) <= 0x8A )\n    {\n      switch ( byte_1400A1C90[i - 4] )\n      {\n        case 0:\n          v18 = 1.0;\n          break;\n        case 1:\n          break;\n      }\n    }\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v18, v19);\n    cocos2d::CCPoint::operator*(v31, v29);\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)v36,\n      (float)((float)((float)((float)(i % 18) * 24.0) - 204.0) + v29[0]) + 6.0,\n      (float)(96.0 - (float)((float)v27 * 24.0)) + v29[1]);\n    cocos2d::CCPoint::operator+(v32, v33, v20);\n    v21 = *v17;\n    cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v37, v33);\n    (*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v17, v22);\n    v23 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v38 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v38);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v23 = qword_14090BFD0;\n    }\n    v24 = *(void (__fastcall ***)(__int64, __int64))(v12 + 320);\n    v25 = GameManager::colorForIdx(v23, v30, (unsigned int)v11);\n    (*v24)(v12 + 320, v25);\n    if ( v41 > 0xF )\n    {\n      v26 = (void *)v39;\n      if ( v41 + 1 >= 0x1000 )\n      {\n        v26 = *(void **)(v39 - 8);\n        if ( (unsigned __int64)(v39 - (_QWORD)v26 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v26);\n    }\n  }\n}", "assembly": "; \n; CharacterColorPage::createColorMenu from 0x1400a1710 to 0x1400a1d1b (1547 bytes)\n; \n; 2 xrefs:\n; > CharacterColorPage::init @ 0x1400a1299\n; > <???> @ 0x1409130b8\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:26:07 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x1400a1710\nmov     [rax+10h], rbx                                                 ; +0x3, 0x1400a1713\nmov     [rax+18h], rsi                                                 ; +0x7, 0x1400a1717\nmov     [rax+20h], rdi                                                 ; +0xb, 0x1400a171b\npush    rbp                                                            ; +0xf, 0x1400a171f\npush    r12                                                            ; +0x10, 0x1400a1720\npush    r13                                                            ; +0x12, 0x1400a1722\npush    r14                                                            ; +0x14, 0x1400a1724\npush    r15                                                            ; +0x16, 0x1400a1726\nlea     rbp, [rsp-60h]                                                 ; +0x18, 0x1400a1728\nsub     rsp, 160h                                                      ; +0x1d, 0x1400a172d\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x24, 0x1400a1734\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x28, 0x1400a1738\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x2c, 0x1400a173c\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x31, 0x1400a1741\nmovaps  xmmword ptr [rax-78h], xmm10                                   ; +0x36, 0x1400a1746\nmovaps  xmmword ptr [rax-88h], xmm11                                   ; +0x3b, 0x1400a174b\nmovaps  xmmword ptr [rax-98h], xmm12                                   ; +0x43, 0x1400a1753\nmovaps  xmmword ptr [rax-0A8h], xmm13                                  ; +0x4b, 0x1400a175b\nmovaps  xmmword ptr [rax-0B8h], xmm14                                  ; +0x53, 0x1400a1763\nmovaps  xmmword ptr [rax-0C8h], xmm15                                  ; +0x5b, 0x1400a176b\nmov     rax, cs:__security_cookie                                      ; +0x63, 0x1400a1773\nxor     rax, rsp                                                       ; +0x6a, 0x1400a177a\nmov     [rbp+80h+var_D0], rax                                          ; +0x6d, 0x1400a177d\nmov     r14, rcx                                                       ; +0x71, 0x1400a1781\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x74, 0x1400a1784\nmov     rcx, rax                                                       ; +0x7a, 0x1400a178a\nlea     rdx, [rsp+180h+var_148]                                        ; +0x7d, 0x1400a178d\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x82, 0x1400a1792\nmovss   xmm2, [rsp+180h+var_144]                                       ; +0x88, 0x1400a1798\nmovss   xmm9, cs:dword_140834F20                                       ; +0x8e, 0x1400a179e\nmulss   xmm2, xmm9                                                     ; +0x97, 0x1400a17a7\nsubss   xmm2, cs:dword_1408356E0                                       ; +0x9c, 0x1400a17ac\nmovss   xmm1, [rsp+180h+var_148]                                       ; +0xa4, 0x1400a17b4\nmulss   xmm1, xmm9                                                     ; +0xaa, 0x1400a17ba\nlea     rcx, [rsp+180h+var_128]                                        ; +0xaf, 0x1400a17bf\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x1400a17c4\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xba, 0x1400a17ca\nmov     [r14+2C0h], rax                                                ; +0xc0, 0x1400a17d0\nmov     rcx, rax                                                       ; +0xc7, 0x1400a17d7\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xca, 0x1400a17da\nmov     edi, 3                                                         ; +0xd0, 0x1400a17e0\nmovss   xmm6, cs:dword_140834FAC                                       ; +0xd5, 0x1400a17e5\nnop     dword ptr [rax]                                                ; +0xdd, 0x1400a17ed\nlea     rcx, aGjSelect001Png; \"GJ_select_001.png\"                      ; +0xe0, 0x1400a17f0\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xe7, 0x1400a17f7\nmov     rbx, rax                                                       ; +0xed, 0x1400a17fd\nmov     rcx, [rax]                                                     ; +0xf0, 0x1400a1800\nmov     rdx, [rcx+0A0h]                                                ; +0xf3, 0x1400a1803\nmovaps  xmm1, xmm6                                                     ; +0xfa, 0x1400a180a\nmov     rcx, rax                                                       ; +0xfd, 0x1400a180d\ncall    rdx                                                            ; +0x100, 0x1400a1810\nmov     rcx, [r14+248h]                                                ; +0x102, 0x1400a1812\nmov     rdx, [rcx]                                                     ; +0x109, 0x1400a1819\nmov     r9, [rdx+1C8h]                                                 ; +0x10c, 0x1400a181c\nmov     r8d, 0Bh                                                       ; +0x113, 0x1400a1823\nmov     rdx, rbx                                                       ; +0x119, 0x1400a1829\ncall    r9                                                             ; +0x11c, 0x1400a182c\nmov     rdx, rbx                                                       ; +0x11f, 0x1400a182f\nmov     rcx, [r14+2C0h]                                                ; +0x122, 0x1400a1832\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x129, 0x1400a1839\nsub     rdi, 1                                                         ; +0x12f, 0x1400a183f\njnz     short loc_1400A17F0                                            ; +0x133, 0x1400a1843\ncall    cs:?create@CCDictionary@cocos2d@@SAPEAV12@XZ; cocos2d::CCDictionary::create(void) ; +0x135, 0x1400a1845\nmov     [r14+2B8h], rax                                                ; +0x13b, 0x1400a184b\nmov     rcx, rax                                                       ; +0x142, 0x1400a1852\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x145, 0x1400a1855\nxor     esi, esi                                                       ; +0x14b, 0x1400a185b\nmovss   xmm14, cs:dword_140834F94                                      ; +0x14d, 0x1400a185d\nmovss   xmm15, cs:dword_140834FE8                                      ; +0x156, 0x1400a1866\nmovss   xmm6, cs:dword_140835C88                                       ; +0x15f, 0x1400a186f\nmovss   xmm7, cs:dword_140834EDC                                       ; +0x167, 0x1400a1877\nmovss   xmm10, cs:dword_140835508                                      ; +0x16f, 0x1400a187f\nmovss   xmm8, cs:dword_1408355E4                                       ; +0x178, 0x1400a1888\nmovss   xmm11, cs:dword_140835798                                      ; +0x181, 0x1400a1891\nmovss   xmm12, cs:dword_1408358FC                                      ; +0x18a, 0x1400a189a\nmovss   xmm13, cs:flt_140835490                                        ; +0x193, 0x1400a18a3\nnop     dword ptr [rax+00h]                                            ; +0x19c, 0x1400a18ac\nmov     eax, 38E38E39h                                                 ; +0x1a0, 0x1400a18b0\nimul    esi                                                            ; +0x1a5, 0x1400a18b5\nsar     edx, 2                                                         ; +0x1a7, 0x1400a18b7\nmov     eax, edx                                                       ; +0x1aa, 0x1400a18ba\nshr     eax, 1Fh                                                       ; +0x1ac, 0x1400a18bc\nadd     edx, eax                                                       ; +0x1af, 0x1400a18bf\nlea     eax, [rdx+rdx*8]                                               ; +0x1b1, 0x1400a18c1\nadd     eax, eax                                                       ; +0x1b4, 0x1400a18c4\nmov     r12d, esi                                                      ; +0x1b6, 0x1400a18c6\nsub     r12d, eax                                                      ; +0x1b9, 0x1400a18c9\nmovd    xmm0, edx                                                      ; +0x1bc, 0x1400a18cc\ncvtdq2ps xmm0, xmm0; X                                                 ; +0x1c0, 0x1400a18d0\ncall    floorf                                                         ; +0x1c3, 0x1400a18d3\ncvttss2si eax, xmm0                                                    ; +0x1c8, 0x1400a18d8\nmov     [rsp+180h+var_150], eax                                        ; +0x1cc, 0x1400a18dc\nmov     edx, esi                                                       ; +0x1d0, 0x1400a18e0\ncall    CharacterColorPage__colorForIndex                              ; +0x1d2, 0x1400a18e2\nmovsxd  r15, eax                                                       ; +0x1d7, 0x1400a18e7\ntest    eax, eax                                                       ; +0x1da, 0x1400a18ea\njs      loc_1400A1BF8                                                  ; +0x1dc, 0x1400a18ec\ncall    ColorChannelSprite__create                                     ; +0x1e2, 0x1400a18f2\nmov     r13, rax                                                       ; +0x1e7, 0x1400a18f7\nmov     r8, r15                                                        ; +0x1ea, 0x1400a18fa\nmov     rdx, rax                                                       ; +0x1ed, 0x1400a18fd\nmov     rcx, [r14+2B8h]                                                ; +0x1f0, 0x1400a1900\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x1f7, 0x1400a1907\nmov     rcx, [r13+0]                                                   ; +0x1fd, 0x1400a190d\nmov     rdx, [rcx+0A0h]                                                ; +0x201, 0x1400a1911\nmovaps  xmm1, xmm14                                                    ; +0x208, 0x1400a1918\nmov     rcx, r13                                                       ; +0x20c, 0x1400a191c\ncall    rdx                                                            ; +0x20f, 0x1400a191f\nxorps   xmm0, xmm0                                                     ; +0x211, 0x1400a1921\nmovups  [rbp+80h+var_F0], xmm0                                         ; +0x214, 0x1400a1924\nmov     [rbp+80h+var_E0], 0                                            ; +0x218, 0x1400a1928\nmov     [rbp+80h+var_D8], 0                                            ; +0x220, 0x1400a1930\nmov     ecx, 20h ; ' '                                                 ; +0x228, 0x1400a1938\ncall    sub_14003D460                                                  ; +0x22d, 0x1400a193d\nmov     qword ptr [rbp+80h+var_F0], rax                                ; +0x232, 0x1400a1942\nmov     [rbp+80h+var_E0], 13h                                          ; +0x236, 0x1400a1946\nmov     [rbp+80h+var_D8], 1Fh                                          ; +0x23e, 0x1400a194e\nmovups  xmm0, cs:xmmword_14071C878                                     ; +0x246, 0x1400a1956\nmovups  xmmword ptr [rax], xmm0                                        ; +0x24d, 0x1400a195d\nmovzx   ecx, cs:word_14071C888                                         ; +0x250, 0x1400a1960\nmov     [rax+10h], cx                                                  ; +0x257, 0x1400a1967\nmovzx   ecx, cs:byte_14071C88A                                         ; +0x25b, 0x1400a196b\nmov     [rax+12h], cl                                                  ; +0x262, 0x1400a1972\nmov     byte ptr [rax+13h], 0                                          ; +0x265, 0x1400a1975\nlea     rcx, [rbp+80h+var_F0]                                          ; +0x269, 0x1400a1979\ncmp     [rbp+80h+var_D8], 0Fh                                          ; +0x26d, 0x1400a197d\ncmova   rcx, qword ptr [rbp+80h+var_F0]                                ; +0x272, 0x1400a1982\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x277, 0x1400a1987\nmov     rdi, rax                                                       ; +0x27d, 0x1400a198d\nmov     rcx, [rax]                                                     ; +0x280, 0x1400a1990\nmov     rdx, [rcx+0A0h]                                                ; +0x283, 0x1400a1993\nmovaps  xmm1, xmm15                                                    ; +0x28a, 0x1400a199a\nmov     rcx, rax                                                       ; +0x28e, 0x1400a199e\ncall    rdx                                                            ; +0x291, 0x1400a19a1\nmov     rcx, [rdi]                                                     ; +0x293, 0x1400a19a3\nmov     r8, [rcx+40h]                                                  ; +0x296, 0x1400a19a6\nmov     edx, 64h ; 'd'                                                 ; +0x29a, 0x1400a19aa\nmov     rcx, rdi                                                       ; +0x29f, 0x1400a19af\ncall    r8                                                             ; +0x2a2, 0x1400a19b2\nmov     rcx, [r13+0]                                                   ; +0x2a5, 0x1400a19b5\nmov     r8, [rcx+1D0h]                                                 ; +0x2a9, 0x1400a19b9\nmov     rdx, rdi                                                       ; +0x2b0, 0x1400a19c0\nmov     rcx, r13                                                       ; +0x2b3, 0x1400a19c3\ncall    r8                                                             ; +0x2b6, 0x1400a19c6\nmov     rbx, [rdi]                                                     ; +0x2b9, 0x1400a19c9\nmovss   xmm2, dword ptr [r13+1B4h]                                     ; +0x2bc, 0x1400a19cc\nmulss   xmm2, xmm9                                                     ; +0x2c5, 0x1400a19d5\nmovss   xmm1, dword ptr [r13+1B0h]                                     ; +0x2ca, 0x1400a19da\nmulss   xmm1, xmm9                                                     ; +0x2d3, 0x1400a19e3\nlea     rcx, [rsp+180h+var_118]                                        ; +0x2d8, 0x1400a19e8\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x2dd, 0x1400a19ed\nmov     rdx, rax                                                       ; +0x2e3, 0x1400a19f3\nmov     rcx, rdi                                                       ; +0x2e6, 0x1400a19f6\ncall    qword ptr [rbx+0B8h]                                           ; +0x2e9, 0x1400a19f9\nmov     ecx, 208h; Size                                                ; +0x2ef, 0x1400a19ff\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2f4, 0x1400a1a04\nmov     [rsp+180h+var_110], rax                                        ; +0x2f9, 0x1400a1a09\nmov     rcx, rax                                                       ; +0x2fe, 0x1400a1a0e\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x301, 0x1400a1a11\nmov     rdi, rax                                                       ; +0x306, 0x1400a1a16\ntest    rax, rax                                                       ; +0x309, 0x1400a1a19\njz      short loc_1400A1A55                                            ; +0x30c, 0x1400a1a1c\nlea     rax, CharacterColorPage__onPlayerColor                         ; +0x30e, 0x1400a1a1e\nmov     [rsp+180h+Reserved], rax                                       ; +0x315, 0x1400a1a25\nmov     r9, r14                                                        ; +0x31a, 0x1400a1a2a\nxor     r8d, r8d                                                       ; +0x31d, 0x1400a1a2d\nmov     rdx, r13                                                       ; +0x320, 0x1400a1a30\nmov     rcx, rdi                                                       ; +0x323, 0x1400a1a33\ncall    CCMenuItemSpriteExtra__init                                    ; +0x326, 0x1400a1a36\nmov     rcx, rdi                                                       ; +0x32b, 0x1400a1a3b\ntest    al, al                                                         ; +0x32e, 0x1400a1a3e\njz      short loc_1400A1A4A                                            ; +0x330, 0x1400a1a40\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x332, 0x1400a1a42\njmp     short loc_1400A1A57                                            ; +0x338, 0x1400a1a48\nmov     rax, [rdi]                                                     ; +0x33a, 0x1400a1a4a\nmov     edx, 1                                                         ; +0x33d, 0x1400a1a4d\ncall    qword ptr [rax+8]                                              ; +0x342, 0x1400a1a52\nxor     edi, edi                                                       ; +0x345, 0x1400a1a55\nmov     rax, [rdi]                                                     ; +0x347, 0x1400a1a57\nmov     edx, r15d                                                      ; +0x34a, 0x1400a1a5a\nmov     rcx, rdi                                                       ; +0x34d, 0x1400a1a5d\ncall    qword ptr [rax+40h]                                            ; +0x350, 0x1400a1a60\nmov     rcx, [r14+228h]                                                ; +0x353, 0x1400a1a63\nmov     rax, [rcx]                                                     ; +0x35a, 0x1400a1a6a\nmov     rdx, rdi                                                       ; +0x35d, 0x1400a1a6d\ncall    qword ptr [rax+1D0h]                                           ; +0x360, 0x1400a1a70\nxorps   xmm1, xmm1                                                     ; +0x366, 0x1400a1a76\nlea     ecx, [rsi-4]                                                   ; +0x369, 0x1400a1a79\nlea     eax, [rcx-32h]                                                 ; +0x36c, 0x1400a1a7c\ncmp     eax, 51h ; 'Q'                                                 ; +0x36f, 0x1400a1a7f\nja      short loc_1400A1A89                                            ; +0x372, 0x1400a1a82\nmovaps  xmm2, xmm6                                                     ; +0x374, 0x1400a1a84\njmp     short loc_1400A1A8C                                            ; +0x377, 0x1400a1a87\nxorps   xmm2, xmm2                                                     ; +0x379, 0x1400a1a89\ncmp     esi, 88h                                                       ; +0x37c, 0x1400a1a8c\njl      short loc_1400A1A97                                            ; +0x382, 0x1400a1a92\nmovaps  xmm2, xmm7                                                     ; +0x384, 0x1400a1a94\ncmp     ecx, 8Ah                                                       ; +0x387, 0x1400a1a97\nja      short loc_1400A1AC8; jumptable 00000001400A1ABE case 1         ; +0x38d, 0x1400a1a9d\nlea     eax, [rsi-4]                                                   ; +0x38f, 0x1400a1a9f\nmovsxd  rcx, eax                                                       ; +0x392, 0x1400a1aa2\nlea     rdx, cs:140000000h                                             ; +0x395, 0x1400a1aa5\nmovzx   eax, ds:rva byte_1400A1C90[rdx+rcx]                            ; +0x39c, 0x1400a1aac\nmov     ecx, ds:(jpt_1400A1ABE - 140000000h)[rdx+rax*4]; switch 2 cases ; +0x3a4, 0x1400a1ab4\nadd     rcx, rdx                                                       ; +0x3ab, 0x1400a1abb\njmp     rcx; switch jump                                               ; +0x3ae, 0x1400a1abe\nmovss   xmm1, cs:flt_140835080; jumptable 00000001400A1ABE case 0      ; +0x3b0, 0x1400a1ac0\nlea     rcx, [rsp+180h+var_134]; jumptable 00000001400A1ABE case 1     ; +0x3b8, 0x1400a1ac8\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x3bd, 0x1400a1acd\nmovaps  xmm2, xmm10                                                    ; +0x3c3, 0x1400a1ad3\nlea     rdx, [rsp+180h+var_140]                                        ; +0x3c7, 0x1400a1ad7\nlea     rcx, [rsp+180h+var_134]                                        ; +0x3cc, 0x1400a1adc\ncall    cs:??DCCPoint@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCPoint::operator*(float) ; +0x3d1, 0x1400a1ae1\nmovd    xmm0, [rsp+180h+var_150]                                       ; +0x3d7, 0x1400a1ae7\ncvtdq2ps xmm0, xmm0                                                    ; +0x3dd, 0x1400a1aed\nmulss   xmm0, xmm8                                                     ; +0x3e0, 0x1400a1af0\nmovaps  xmm2, xmm11                                                    ; +0x3e5, 0x1400a1af5\nsubss   xmm2, xmm0                                                     ; +0x3e9, 0x1400a1af9\naddss   xmm2, [rsp+180h+var_13C]                                       ; +0x3ed, 0x1400a1afd\nmovd    xmm1, r12d                                                     ; +0x3f3, 0x1400a1b03\ncvtdq2ps xmm1, xmm1                                                    ; +0x3f8, 0x1400a1b08\nmulss   xmm1, xmm8                                                     ; +0x3fb, 0x1400a1b0b\nsubss   xmm1, xmm12                                                    ; +0x400, 0x1400a1b10\naddss   xmm1, [rsp+180h+var_140]                                       ; +0x405, 0x1400a1b15\naddss   xmm1, xmm13                                                    ; +0x40b, 0x1400a1b1b\nlea     rcx, [rsp+180h+var_108]                                        ; +0x410, 0x1400a1b20\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x415, 0x1400a1b25\nmov     r8, rax                                                        ; +0x41b, 0x1400a1b2b\nlea     rdx, [rsp+180h+var_120]                                        ; +0x41e, 0x1400a1b2e\nlea     rcx, [rsp+180h+var_128]                                        ; +0x423, 0x1400a1b33\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x428, 0x1400a1b38\nmov     rbx, [rdi]                                                     ; +0x42e, 0x1400a1b3e\nlea     r8, [rsp+180h+var_120]                                         ; +0x431, 0x1400a1b41\nlea     rdx, [rbp+80h+var_100]                                         ; +0x436, 0x1400a1b46\nmov     rcx, [r14+228h]                                                ; +0x43a, 0x1400a1b4a\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x441, 0x1400a1b51\nmov     rdx, rax                                                       ; +0x447, 0x1400a1b57\nmov     rcx, rdi                                                       ; +0x44a, 0x1400a1b5a\ncall    qword ptr [rbx+0B8h]                                           ; +0x44d, 0x1400a1b5d\nmov     rcx, cs:qword_14090BFD0                                        ; +0x453, 0x1400a1b63\ntest    rcx, rcx                                                       ; +0x45a, 0x1400a1b6a\njnz     short loc_1400A1BA0                                            ; +0x45d, 0x1400a1b6d\nmov     ecx, 6E8h; Size                                                ; +0x45f, 0x1400a1b6f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x464, 0x1400a1b74\nmov     [rbp+80h+var_F8], rax                                          ; +0x469, 0x1400a1b79\nmov     rcx, rax                                                       ; +0x46d, 0x1400a1b7d\ncall    GameManager__GameManager                                       ; +0x470, 0x1400a1b80\nnop                                                                    ; +0x475, 0x1400a1b85\nmov     cs:qword_14090BFD0, rax                                        ; +0x476, 0x1400a1b86\nmov     rcx, [rax]                                                     ; +0x47d, 0x1400a1b8d\nmov     rdx, [rcx+48h]                                                 ; +0x480, 0x1400a1b90\nmov     rcx, rax                                                       ; +0x484, 0x1400a1b94\ncall    rdx                                                            ; +0x487, 0x1400a1b97\nmov     rcx, cs:qword_14090BFD0                                        ; +0x489, 0x1400a1b99\nmov     rbx, [r13+140h]                                                ; +0x490, 0x1400a1ba0\nmov     r8d, r15d                                                      ; +0x497, 0x1400a1ba7\nlea     rdx, [rsp+180h+var_138]                                        ; +0x49a, 0x1400a1baa\ncall    GameManager__colorForIdx                                       ; +0x49f, 0x1400a1baf\nmov     rdx, rax                                                       ; +0x4a4, 0x1400a1bb4\nlea     rcx, [r13+140h]                                                ; +0x4a7, 0x1400a1bb7\ncall    qword ptr [rbx]                                                ; +0x4ae, 0x1400a1bbe\nnop                                                                    ; +0x4b0, 0x1400a1bc0\nmov     rdx, [rbp+80h+var_D8]                                          ; +0x4b1, 0x1400a1bc1\ncmp     rdx, 0Fh                                                       ; +0x4b5, 0x1400a1bc5\njbe     short loc_1400A1BF8                                            ; +0x4b9, 0x1400a1bc9\ninc     rdx                                                            ; +0x4bb, 0x1400a1bcb\nmov     rcx, qword ptr [rbp+80h+var_F0]                                ; +0x4be, 0x1400a1bce\nmov     rax, rcx                                                       ; +0x4c2, 0x1400a1bd2\ncmp     rdx, 1000h                                                     ; +0x4c5, 0x1400a1bd5\njb      short loc_1400A1BF3                                            ; +0x4cc, 0x1400a1bdc\nadd     rdx, 27h ; '''                                                 ; +0x4ce, 0x1400a1bde\nmov     rcx, [rcx-8]; Block                                            ; +0x4d2, 0x1400a1be2\nsub     rax, rcx                                                       ; +0x4d6, 0x1400a1be6\nsub     rax, 8                                                         ; +0x4d9, 0x1400a1be9\ncmp     rax, 1Fh                                                       ; +0x4dd, 0x1400a1bed\nja      short loc_1400A1C6B                                            ; +0x4e1, 0x1400a1bf1\ncall    j_j_free                                                       ; +0x4e3, 0x1400a1bf3\ninc     esi                                                            ; +0x4e8, 0x1400a1bf8\ncmp     esi, 90h                                                       ; +0x4ea, 0x1400a1bfa\njl      loc_1400A18B0                                                  ; +0x4f0, 0x1400a1c00\nmov     rcx, [rbp+80h+var_D0]                                          ; +0x4f6, 0x1400a1c06\nxor     rcx, rsp; StackCookie                                          ; +0x4fa, 0x1400a1c0a\ncall    __security_check_cookie                                        ; +0x4fd, 0x1400a1c0d\nlea     r11, [rsp+180h+var_20]                                         ; +0x502, 0x1400a1c12\nmov     rbx, [r11+38h]                                                 ; +0x50a, 0x1400a1c1a\nmov     rsi, [r11+40h]                                                 ; +0x50e, 0x1400a1c1e\nmov     rdi, [r11+48h]                                                 ; +0x512, 0x1400a1c22\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x516, 0x1400a1c26\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x51b, 0x1400a1c2b\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x520, 0x1400a1c30\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x525, 0x1400a1c35\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x52a, 0x1400a1c3a\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x52f, 0x1400a1c3f\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x534, 0x1400a1c44\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x539, 0x1400a1c49\nmovaps  xmm14, xmmword ptr [r11-90h]                                   ; +0x53e, 0x1400a1c4e\nmovaps  xmm15, xmmword ptr [r11-0A0h]                                  ; +0x546, 0x1400a1c56\nmov     rsp, r11                                                       ; +0x54e, 0x1400a1c5e\npop     r15                                                            ; +0x551, 0x1400a1c61\npop     r14                                                            ; +0x553, 0x1400a1c63\npop     r13                                                            ; +0x555, 0x1400a1c65\npop     r12                                                            ; +0x557, 0x1400a1c67\npop     rbp                                                            ; +0x559, 0x1400a1c69\nretn                                                                   ; +0x55a, 0x1400a1c6a\nmov     [rsp+180h+Reserved], 0; Reserved                               ; +0x55b, 0x1400a1c6b\nxor     r9d, r9d; LineNo                                               ; +0x564, 0x1400a1c74\nxor     r8d, r8d; FileName                                             ; +0x567, 0x1400a1c77\nxor     edx, edx; FunctionName                                         ; +0x56a, 0x1400a1c7a\nxor     ecx, ecx; Expression                                           ; +0x56c, 0x1400a1c7c\ncall    cs:_invoke_watson                                              ; +0x56e, 0x1400a1c7e\nalign 8                                                                ; +0x574, 0x1400a1c84\ndd offset loc_1400A1AC0 - 140000000h; jump table for switch statement  ; +0x578, 0x1400a1c88\ndb 0                                                                   ; +0x580, 0x1400a1c90\nalign 4                                                                ; +0x581, 0x1400a1c91\ndd 1010101h                                                            ; +0x584, 0x1400a1c94\ndq 101010000000001h, 101000000000101h, 100000000010101h                ; +0x588, 0x1400a1c98\ndb 3 dup(0)                                                            ; +0x608, 0x1400a1d18", "xrefs": ["CharacterColorPage::init @ 0x1400a1299", "<???> @ 0x1409130b8"], "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"}