{"type": "func", "start": 5373275344, "end": 5373275695, "name": "LevelSettingsLayer::updateColorSprite", "pseudocode": "// \n// LevelSettingsLayer::updateColorSprite from 0x14045acd0 to 0x14045ae2f (351 bytes)\n// \n// 7 xrefs:\n// > LevelSettingsLayer::updateColorSprites @ 0x14045ac70\n// > LevelSettingsLayer::updateColorSprites @ 0x14045ac7f\n// > LevelSettingsLayer::updateColorSprites @ 0x14045ac8e\n// > LevelSettingsLayer::updateColorSprites @ 0x14045ac9d\n// > LevelSettingsLayer::updateColorSprites @ 0x14045acac\n// > LevelSettingsLayer::updateColorSprites @ 0x14045acc0\n// > <???> @ 0x140927c8c\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:32:31 +0000\n// \n\nvoid __fastcall LevelSettingsLayer::updateColorSprite(__int64 a1, cocos2d::CCLabelBMFont **a2)\n{\n  int v4; // r8d\n  int v5; // r9d\n  __int64 v6; // rcx\n  char *ColorAction; // rax\n  char *v8; // rdi\n  bool v9; // zf\n  __int16 *v10; // rdx\n  cocos2d::CCLabelBMFont *v11; // rcx\n  __int16 v12; // [rsp+30h] [rbp+8h] BYREF\n  char v13; // [rsp+32h] [rbp+Ah]\n\n  if ( *(_QWORD *)(a1 + 856) )\n  {\n    v4 = (*((__int64 (__fastcall **)(cocos2d::CCLabelBMFont **))*a2 + 7))(a2);\n    v5 = v4;\n    if ( v4 < 0 )\n      v4 = 0;\n    v6 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 856) + 3528LL) + 320LL);\n    if ( v4 > 1101 )\n      v4 = 1101;\n    if ( !*(_QWORD *)(*(_QWORD *)(v6 + 736) + 8LL * v4) )\n    {\n      v10 = (__int16 *)&unk_1407044BC;\nLABEL_17:\n      (*(void (__fastcall **)(cocos2d::CCLabelBMFont **, __int16 *))a2[40])(a2 + 40, v10);\n      return;\n    }\n    ColorAction = GJEffectManager::getColorAction(v6, v5);\n    v8 = ColorAction;\n    if ( ColorAction )\n    {\n      ColorChannelSprite::updateCopyLabel(a2, *((_DWORD *)ColorAction + 30), ColorAction[126]);\n      ColorChannelSprite::updateOpacity((_QWORD **)a2, *((float *)v8 + 24));\n      ColorChannelSprite::updateBlending(a2, v8[84]);\n      v9 = *((_DWORD *)v8 + 30) == 0;\n      v12 = *((_WORD *)v8 + 36);\n      v13 = v8[74];\n      if ( !v9 && !v8[126] )\n      {\n        v12 = -22874;\n        v13 = -90;\n      }\n      v10 = &v12;\n      goto LABEL_17;\n    }\n    (*(void (__fastcall **)(cocos2d::CCLabelBMFont **, __int16 *))a2[40])(a2 + 40, &word_140703460);\n    v11 = a2[75];\n    if ( v11 )\n      (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)v11 + 336LL))(v11, 0);\n    ColorChannelSprite::updateOpacity((_QWORD **)a2, 1.0);\n    if ( a2[77] )\n      (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)a2[77] + 336LL))(a2[77], 0);\n  }\n}", "assembly": "; \n; LevelSettingsLayer::updateColorSprite from 0x14045acd0 to 0x14045ae2f (351 bytes)\n; \n; 7 xrefs:\n; > LevelSettingsLayer::updateColorSprites @ 0x14045ac70\n; > LevelSettingsLayer::updateColorSprites @ 0x14045ac7f\n; > LevelSettingsLayer::updateColorSprites @ 0x14045ac8e\n; > LevelSettingsLayer::updateColorSprites @ 0x14045ac9d\n; > LevelSettingsLayer::updateColorSprites @ 0x14045acac\n; > LevelSettingsLayer::updateColorSprites @ 0x14045acc0\n; > <???> @ 0x140927c8c\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:32:31 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14045acd0\npush    rdi                                                            ; +0x5, 0x14045acd5\nsub     rsp, 20h                                                       ; +0x6, 0x14045acd6\ncmp     qword ptr [rcx+358h], 0                                        ; +0xa, 0x14045acda\nmov     rbx, rdx                                                       ; +0x12, 0x14045ace2\nmov     rdi, rcx                                                       ; +0x15, 0x14045ace5\njz      loc_14045AE24                                                  ; +0x18, 0x14045ace8\nmov     rax, [rdx]                                                     ; +0x1e, 0x14045acee\nmov     rcx, rdx                                                       ; +0x21, 0x14045acf1\ncall    qword ptr [rax+38h]                                            ; +0x24, 0x14045acf4\nmov     rcx, [rdi+358h]                                                ; +0x27, 0x14045acf7\nmov     r8d, eax                                                       ; +0x2e, 0x14045acfe\nmov     r9d, eax                                                       ; +0x31, 0x14045ad01\nxor     eax, eax                                                       ; +0x34, 0x14045ad04\ntest    r8d, r8d                                                       ; +0x36, 0x14045ad06\nmov     rdx, [rcx+0DC8h]                                               ; +0x39, 0x14045ad09\ncmovs   r8d, eax                                                       ; +0x40, 0x14045ad10\nmov     eax, 44Dh                                                      ; +0x44, 0x14045ad14\ncmp     r8d, eax                                                       ; +0x49, 0x14045ad19\nmov     rcx, [rdx+140h]                                                ; +0x4c, 0x14045ad1c\ncmovg   r8d, eax                                                       ; +0x53, 0x14045ad23\nmovsxd  rdx, r8d                                                       ; +0x57, 0x14045ad27\nmov     rax, [rcx+2E0h]                                                ; +0x5a, 0x14045ad2a\ncmp     qword ptr [rax+rdx*8], 0                                       ; +0x61, 0x14045ad31\njz      loc_14045AE11                                                  ; +0x66, 0x14045ad36\nmov     edx, r9d                                                       ; +0x6c, 0x14045ad3c\ncall    GJEffectManager__getColorAction                                ; +0x6f, 0x14045ad3f\nmov     rdi, rax                                                       ; +0x74, 0x14045ad44\ntest    rax, rax                                                       ; +0x77, 0x14045ad47\njz      short loc_14045ADB0                                            ; +0x7a, 0x14045ad4a\nmovzx   r8d, byte ptr [rax+7Eh]                                        ; +0x7c, 0x14045ad4c\nmov     rcx, rbx                                                       ; +0x81, 0x14045ad51\nmov     edx, [rax+78h]                                                 ; +0x84, 0x14045ad54\ncall    ColorChannelSprite__updateCopyLabel                            ; +0x87, 0x14045ad57\nmovss   xmm1, dword ptr [rdi+60h]                                      ; +0x8c, 0x14045ad5c\nmov     rcx, rbx                                                       ; +0x91, 0x14045ad61\ncall    ColorChannelSprite__updateOpacity                              ; +0x94, 0x14045ad64\nmovzx   edx, byte ptr [rdi+54h]                                        ; +0x99, 0x14045ad69\nmov     rcx, rbx                                                       ; +0x9d, 0x14045ad6d\ncall    ColorChannelSprite__updateBlending                             ; +0xa0, 0x14045ad70\ncmp     dword ptr [rdi+78h], 0                                         ; +0xa5, 0x14045ad75\nmovzx   eax, word ptr [rdi+48h]                                        ; +0xa9, 0x14045ad79\nmov     [rsp+28h+arg_0], ax                                            ; +0xad, 0x14045ad7d\nmovzx   eax, byte ptr [rdi+4Ah]                                        ; +0xb2, 0x14045ad82\nmov     [rsp+28h+arg_2], al                                            ; +0xb6, 0x14045ad86\njz      short loc_14045ADA9                                            ; +0xba, 0x14045ad8a\ncmp     byte ptr [rdi+7Eh], 0                                          ; +0xbc, 0x14045ad8c\njnz     short loc_14045ADA9                                            ; +0xc0, 0x14045ad90\nmovzx   eax, cs:word_14070345C                                         ; +0xc2, 0x14045ad92\nmov     [rsp+28h+arg_0], ax                                            ; +0xc9, 0x14045ad99\nmovzx   eax, cs:byte_14070345E                                         ; +0xce, 0x14045ad9e\nmov     [rsp+28h+arg_2], al                                            ; +0xd5, 0x14045ada5\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xd9, 0x14045ada9\njmp     short loc_14045AE18                                            ; +0xde, 0x14045adae\nlea     rcx, [rbx+140h]                                                ; +0xe0, 0x14045adb0\nmov     rax, [rcx]                                                     ; +0xe7, 0x14045adb7\nlea     rdx, word_140703460                                            ; +0xea, 0x14045adba\ncall    qword ptr [rax]                                                ; +0xf1, 0x14045adc1\nmov     rcx, [rbx+258h]                                                ; +0xf3, 0x14045adc3\ntest    rcx, rcx                                                       ; +0xfa, 0x14045adca\njz      short loc_14045ADDA                                            ; +0xfd, 0x14045adcd\nmov     rax, [rcx]                                                     ; +0xff, 0x14045adcf\nxor     edx, edx                                                       ; +0x102, 0x14045add2\ncall    qword ptr [rax+150h]                                           ; +0x104, 0x14045add4\nmovss   xmm1, cs:flt_140835080                                         ; +0x10a, 0x14045adda\nmov     rcx, rbx                                                       ; +0x112, 0x14045ade2\ncall    ColorChannelSprite__updateOpacity                              ; +0x115, 0x14045ade5\ncmp     qword ptr [rbx+268h], 0                                        ; +0x11a, 0x14045adea\njz      short loc_14045AE24                                            ; +0x122, 0x14045adf2\nmov     rcx, [rbx+268h]                                                ; +0x124, 0x14045adf4\nxor     edx, edx                                                       ; +0x12b, 0x14045adfb\nmov     rax, [rcx]                                                     ; +0x12d, 0x14045adfd\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x130, 0x14045ae00\nadd     rsp, 20h                                                       ; +0x135, 0x14045ae05\npop     rdi                                                            ; +0x139, 0x14045ae09\njmp     qword ptr [rax+150h]                                           ; +0x13a, 0x14045ae0a\nlea     rdx, unk_1407044BC                                             ; +0x141, 0x14045ae11\nlea     rcx, [rbx+140h]                                                ; +0x148, 0x14045ae18\nmov     rax, [rcx]                                                     ; +0x14f, 0x14045ae1f\ncall    qword ptr [rax]                                                ; +0x152, 0x14045ae22\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x154, 0x14045ae24\nadd     rsp, 20h                                                       ; +0x159, 0x14045ae29\npop     rdi                                                            ; +0x15d, 0x14045ae2d\nretn                                                                   ; +0x15e, 0x14045ae2e", "xrefs": ["LevelSettingsLayer::updateColorSprites @ 0x14045ac70", "LevelSettingsLayer::updateColorSprites @ 0x14045ac7f", "LevelSettingsLayer::updateColorSprites @ 0x14045ac8e", "LevelSettingsLayer::updateColorSprites @ 0x14045ac9d", "LevelSettingsLayer::updateColorSprites @ 0x14045acac", "LevelSettingsLayer::updateColorSprites @ 0x14045acc0", "<???> @ 0x140927c8c"], "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"}