{"type": "func", "start": 4301642272, "end": 4301642616, "name": "CharacterColorPage::updateIconColors", "pseudocode": "// \n// CharacterColorPage::updateIconColors from 0x10065da20 to 0x10065db78 (344 bytes)\n// \n// 3 xrefs:\n// > CharacterColorPage::init @ 0x10065d511\n// > CharacterColorPage::toggleGlow @ 0x10065df8e\n// > CharacterColorPage::onPlayerColor @ 0x10065e703\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 __fastcall CharacterColorPage::updateIconColors(CharacterColorPage *a1)\n{\n  bool m_playerGlow; // r15\n  GameManager *v2; // r14\n  GameManager *v3; // rax\n  GameManager *v4; // r14\n  GameManager *v5; // rax\n  GameManager *v6; // rax\n  GameManager *v7; // rax\n  unsigned int v8; // r14d\n  SimplePlayer *v9; // r13\n  GameManager *v10; // rax\n  cocos2d::ccColor3B v11; // [rsp+Ch] [rbp-34h] BYREF\n  cocos2d::ccColor3B v12; // [rsp+10h] [rbp-30h] BYREF\n  cocos2d::ccColor3B v13; // [rsp+14h] [rbp-2Ch] BYREF\n\n  m_playerGlow = GameManager::sharedState()->m_playerGlow;\n  v2 = GameManager::sharedState();\n  v3 = GameManager::sharedState();\n  v11 = GameManager::colorForIdx(v2, v3->m_playerColor.random - v3->m_playerColor.seed);\n  v4 = GameManager::sharedState();\n  v5 = GameManager::sharedState();\n  v12 = GameManager::colorForIdx(v4, v5->m_playerColor2.random - v5->m_playerColor2.seed);\n  v6 = GameManager::sharedState();\n  LODWORD(v4) = v6->m_playerGlowColor.random - v6->m_playerGlowColor.seed;\n  v7 = GameManager::sharedState();\n  v13 = GameManager::colorForIdx(v7, (int)v4);\n  if ( (unsigned int)sub_100720070(a1->m_playerObjects) )\n  {\n    v8 = 0;\n    do\n    {\n      v9 = (SimplePlayer *)sub_1007200C0(a1->m_playerObjects, v8);\n      ((void (__fastcall *)(SimplePlayer *, cocos2d::ccColor3B *))v9->setColor)(v9, &v11);\n      SimplePlayer::setSecondColor(v9, &v12);\n      v9->m_hasGlowOutline = m_playerGlow;\n      v10 = GameManager::sharedState();\n      if ( v10->m_playerGlowColor.random < v10->m_playerGlowColor.seed )\n        SimplePlayer::disableCustomGlowColor(v9);\n      else\n        SimplePlayer::enableCustomGlowColor(v9, &v13);\n      SimplePlayer::updateColors(v9);\n      ++v8;\n    }\n    while ( v8 < (unsigned int)sub_100720070(a1->m_playerObjects) );\n  }\n}", "assembly": "; \n; CharacterColorPage::updateIconColors from 0x10065da20 to 0x10065db78 (344 bytes)\n; \n; 3 xrefs:\n; > CharacterColorPage::init @ 0x10065d511\n; > CharacterColorPage::toggleGlow @ 0x10065df8e\n; > CharacterColorPage::onPlayerColor @ 0x10065e703\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\npush    rbp                                                            ; +0x0, 0x10065da20\nmov     rbp, rsp                                                       ; +0x1, 0x10065da21\npush    r15                                                            ; +0x4, 0x10065da24\npush    r14                                                            ; +0x6, 0x10065da26\npush    r13                                                            ; +0x8, 0x10065da28\npush    r12                                                            ; +0xa, 0x10065da2a\npush    rbx                                                            ; +0xc, 0x10065da2c\nsub     rsp, 18h                                                       ; +0xd, 0x10065da2d\nmov     rbx, rdi                                                       ; +0x11, 0x10065da31\ncall    GameManager__sharedState                                       ; +0x14, 0x10065da34\nmovzx   r15d, byte ptr [rax+368h]                                      ; +0x19, 0x10065da39\ncall    GameManager__sharedState                                       ; +0x21, 0x10065da41\nmov     r14, rax                                                       ; +0x26, 0x10065da46\ncall    GameManager__sharedState                                       ; +0x29, 0x10065da49\nmov     esi, [rax+304h]                                                ; +0x2e, 0x10065da4e\nsub     esi, [rax+308h]                                                ; +0x34, 0x10065da54\nmov     rdi, r14                                                       ; +0x3a, 0x10065da5a\ncall    GameManager__colorForIdx                                       ; +0x3d, 0x10065da5d\nmov     [rbp+var_34], ax                                               ; +0x42, 0x10065da62\nshr     eax, 10h                                                       ; +0x46, 0x10065da66\nmov     [rbp+var_32], al                                               ; +0x49, 0x10065da69\ncall    GameManager__sharedState                                       ; +0x4c, 0x10065da6c\nmov     r14, rax                                                       ; +0x51, 0x10065da71\ncall    GameManager__sharedState                                       ; +0x54, 0x10065da74\nmov     esi, [rax+310h]                                                ; +0x59, 0x10065da79\nsub     esi, [rax+314h]                                                ; +0x5f, 0x10065da7f\nmov     rdi, r14                                                       ; +0x65, 0x10065da85\ncall    GameManager__colorForIdx                                       ; +0x68, 0x10065da88\nmov     [rbp+var_30], ax                                               ; +0x6d, 0x10065da8d\nshr     eax, 10h                                                       ; +0x71, 0x10065da91\nmov     [rbp+var_2E], al                                               ; +0x74, 0x10065da94\ncall    GameManager__sharedState                                       ; +0x77, 0x10065da97\nmov     r14d, [rax+31Ch]                                               ; +0x7c, 0x10065da9c\nsub     r14d, [rax+320h]                                               ; +0x83, 0x10065daa3\ncall    GameManager__sharedState                                       ; +0x8a, 0x10065daaa\nmov     rdi, rax                                                       ; +0x8f, 0x10065daaf\nmov     esi, r14d                                                      ; +0x92, 0x10065dab2\ncall    GameManager__colorForIdx                                       ; +0x95, 0x10065dab5\nmov     [rbp+var_2C], ax                                               ; +0x9a, 0x10065daba\nshr     eax, 10h                                                       ; +0x9e, 0x10065dabe\nmov     [rbp+var_2A], al                                               ; +0xa1, 0x10065dac1\nmov     rdi, [rbx+288h]                                                ; +0xa4, 0x10065dac4\ncall    sub_100720070                                                  ; +0xab, 0x10065dacb\ntest    eax, eax                                                       ; +0xb0, 0x10065dad0\njz      loc_10065DB69                                                  ; +0xb2, 0x10065dad2\nxor     r14d, r14d                                                     ; +0xb8, 0x10065dad8\nlea     r12, [rbp+var_30]                                              ; +0xbb, 0x10065dadb\njmp     short loc_10065DB14                                            ; +0xbf, 0x10065dadf\nalign 10h                                                              ; +0xc1, 0x10065dae1\nmov     rdi, r13                                                       ; +0xd0, 0x10065daf0\ncall    SimplePlayer__disableCustomGlowColor                           ; +0xd3, 0x10065daf3\nmov     rdi, r13                                                       ; +0xd8, 0x10065daf8\ncall    SimplePlayer__updateColors                                     ; +0xdb, 0x10065dafb\ninc     r14d                                                           ; +0xe0, 0x10065db00\nmov     rdi, [rbx+288h]                                                ; +0xe3, 0x10065db03\ncall    sub_100720070                                                  ; +0xea, 0x10065db0a\ncmp     r14d, eax                                                      ; +0xef, 0x10065db0f\njnb     short loc_10065DB69                                            ; +0xf2, 0x10065db12\nmov     rdi, [rbx+288h]                                                ; +0xf4, 0x10065db14\nmov     esi, r14d                                                      ; +0xfb, 0x10065db1b\ncall    sub_1007200C0                                                  ; +0xfe, 0x10065db1e\nmov     r13, rax                                                       ; +0x103, 0x10065db23\nmov     rax, [rax]                                                     ; +0x106, 0x10065db26\nmov     rdi, r13                                                       ; +0x109, 0x10065db29\nlea     rsi, [rbp+var_34]                                              ; +0x10c, 0x10065db2c\ncall    qword ptr [rax+3B0h]                                           ; +0x110, 0x10065db30\nmov     rdi, r13                                                       ; +0x116, 0x10065db36\nmov     rsi, r12                                                       ; +0x119, 0x10065db39\ncall    SimplePlayer__setSecondColor                                   ; +0x11c, 0x10065db3c\nmov     [r13+294h], r15b                                               ; +0x121, 0x10065db41\ncall    GameManager__sharedState                                       ; +0x128, 0x10065db48\nmov     ecx, [rax+31Ch]                                                ; +0x12d, 0x10065db4d\ncmp     ecx, [rax+320h]                                                ; +0x133, 0x10065db53\njl      short loc_10065DAF0                                            ; +0x139, 0x10065db59\nmov     rdi, r13                                                       ; +0x13b, 0x10065db5b\nlea     rsi, [rbp+var_2C]                                              ; +0x13e, 0x10065db5e\ncall    SimplePlayer__enableCustomGlowColor                            ; +0x142, 0x10065db62\njmp     short loc_10065DAF8                                            ; +0x147, 0x10065db67\nadd     rsp, 18h                                                       ; +0x149, 0x10065db69\npop     rbx                                                            ; +0x14d, 0x10065db6d\npop     r12                                                            ; +0x14e, 0x10065db6e\npop     r13                                                            ; +0x150, 0x10065db70\npop     r14                                                            ; +0x152, 0x10065db72\npop     r15                                                            ; +0x154, 0x10065db74\npop     rbp                                                            ; +0x156, 0x10065db76\nretn                                                                   ; +0x157, 0x10065db77", "xrefs": ["CharacterColorPage::init @ 0x10065d511", "CharacterColorPage::toggleGlow @ 0x10065df8e", "CharacterColorPage::onPlayerColor @ 0x10065e703"], "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"}