{"type": "func", "start": 5371305008, "end": 5371305155, "name": "SimplePlayer::tryEnableCustomGlowColor", "pseudocode": "// \n// SimplePlayer::tryEnableCustomGlowColor from 0x140279c30 to 0x140279cc3 (147 bytes)\n// \n// 7 xrefs:\n// > CommentCell::loadFromComment @ 0x1400b625f\n// > GJScoreCell::loadFromScore @ 0x1400b869b\n// > GJLevelScoreCell::loadFromScore @ 0x1400ba267\n// > GJUserCell::loadFromScore @ 0x1400bae40\n// > GJRequestCell::loadFromScore @ 0x1400bc52a\n// > ProfilePage::loadPageFromUserInfo @ 0x1403c0a66\n// > <???> @ 0x1406d10ac\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\n// Hidden C++ exception states: #wind=1\nvoid SimplePlayer::tryEnableCustomGlowColor(SimplePlayer *a1, int a2)\n{\n  cocos2d::ccColor3B *v4; // rcx\n  cocos2d::ccColor3B *v5; // rax\n  char v6; // [rsp+38h] [rbp+10h] BYREF\n  void *v7; // [rsp+40h] [rbp+18h]\n\n  if ( a2 < 0 )\n  {\n    a1->m_hasCustomGlowColor = 0;\n  }\n  else\n  {\n    v4 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n    }\n    v5 = GameManager::colorForIdx(v4, (GameManager *)&v6, a2);\n    a1->m_hasCustomGlowColor = 1;\n    a1->m_glowColor = *v5;\n  }\n}", "assembly": "; \n; SimplePlayer::tryEnableCustomGlowColor from 0x140279c30 to 0x140279cc3 (147 bytes)\n; \n; 7 xrefs:\n; > CommentCell::loadFromComment @ 0x1400b625f\n; > GJScoreCell::loadFromScore @ 0x1400b869b\n; > GJLevelScoreCell::loadFromScore @ 0x1400ba267\n; > GJUserCell::loadFromScore @ 0x1400bae40\n; > GJRequestCell::loadFromScore @ 0x1400bc52a\n; > ProfilePage::loadPageFromUserInfo @ 0x1403c0a66\n; > <???> @ 0x1406d10ac\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, 0x140279c30\npush    rdi                                                            ; +0x5, 0x140279c35\nsub     rsp, 20h                                                       ; +0x6, 0x140279c36\nmov     edi, edx                                                       ; +0xa, 0x140279c3a\nmov     rbx, rcx                                                       ; +0xc, 0x140279c3c\ntest    edx, edx                                                       ; +0xf, 0x140279c3f\njs      short loc_140279CB1                                            ; +0x11, 0x140279c41\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x13, 0x140279c43\ntest    rcx, rcx                                                       ; +0x1a, 0x140279c4a\njnz     short loc_140279C7E                                            ; +0x1d, 0x140279c4d\nmov     ecx, 668h; Size                                                ; +0x1f, 0x140279c4f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x24, 0x140279c54\nmov     [rsp+28h+arg_10], rax                                          ; +0x29, 0x140279c59\nmov     rcx, rax                                                       ; +0x2e, 0x140279c5e\ncall    sub_14017AB00                                                  ; +0x31, 0x140279c61\nnop                                                                    ; +0x36, 0x140279c66\nmov     cs:qword_1406C2ED8, rax                                        ; +0x37, 0x140279c67\nmov     rdx, [rax]                                                     ; +0x3e, 0x140279c6e\nmov     rcx, rax                                                       ; +0x41, 0x140279c71\ncall    qword ptr [rdx+48h]                                            ; +0x44, 0x140279c74\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x47, 0x140279c77\nmov     r8d, edi                                                       ; +0x4e, 0x140279c7e\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x51, 0x140279c81\ncall    GameManager__colorForIdx                                       ; +0x56, 0x140279c86\nmov     byte ptr [rbx+29Ch], 1                                         ; +0x5b, 0x140279c8b\nmovzx   ecx, word ptr [rax]                                            ; +0x62, 0x140279c92\nmov     [rbx+29Dh], cx                                                 ; +0x65, 0x140279c95\nmovzx   eax, byte ptr [rax+2]                                          ; +0x6c, 0x140279c9c\nmov     [rbx+29Fh], al                                                 ; +0x70, 0x140279ca0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x76, 0x140279ca6\nadd     rsp, 20h                                                       ; +0x7b, 0x140279cab\npop     rdi                                                            ; +0x7f, 0x140279caf\nretn                                                                   ; +0x80, 0x140279cb0\nmov     byte ptr [rcx+29Ch], 0                                         ; +0x81, 0x140279cb1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x88, 0x140279cb8\nadd     rsp, 20h                                                       ; +0x8d, 0x140279cbd\npop     rdi                                                            ; +0x91, 0x140279cc1\nretn                                                                   ; +0x92, 0x140279cc2", "xrefs": ["CommentCell::loadFromComment @ 0x1400b625f", "GJScoreCell::loadFromScore @ 0x1400b869b", "GJLevelScoreCell::loadFromScore @ 0x1400ba267", "GJUserCell::loadFromScore @ 0x1400bae40", "GJRequestCell::loadFromScore @ 0x1400bc52a", "ProfilePage::loadPageFromUserInfo @ 0x1403c0a66", "<???> @ 0x1406d10ac"], "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"}