{"type": "func", "start": 4297866000, "end": 4297866230, "name": "ColorChannelSprite::updateValues", "pseudocode": "// \n// ColorChannelSprite::updateValues from 0x1002c3b10 to 0x1002c3bf6 (230 bytes)\n// \n// 10 xrefs:\n// > CustomizeObjectLayer::updateColorSprite @ 0x1001daaa3\n// > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1e5\n// > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3fe\n// > LevelSettingsLayer::updateColorSprites @ 0x100257bf2\n// > LevelSettingsLayer::updateColorSprites @ 0x100257c7e\n// > LevelSettingsLayer::updateColorSprites @ 0x100257d0a\n// > LevelSettingsLayer::updateColorSprites @ 0x100257d96\n// > LevelSettingsLayer::updateColorSprites @ 0x100257e26\n// > LevelSettingsLayer::updateColorSprites @ 0x100257e9a\n// > LevelSettingsLayer::updateColorSprite @ 0x100259064\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 12:28:06 +0000\n// \n\n__int64 __fastcall ColorChannelSprite::updateValues(__int64 a1, __int64 a2)\n{\n  __int16 v3; // ax\n  __int64 result; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rdi\n  __int64 v7; // rdi\n  __int16 v8; // [rsp+Ch] [rbp-14h] BYREF\n  char v9; // [rsp+Eh] [rbp-12h]\n\n  if ( a2 )\n  {\n    ColorChannelSprite::updateCopyLabel((_QWORD **)a1, *(_DWORD *)(a2 + 120), *(_BYTE *)(a2 + 126));\n    ColorChannelSprite::updateOpacity((_QWORD **)a1, (__m128)*(unsigned int *)(a2 + 96));\n    ColorChannelSprite::updateBlending((_QWORD **)a1, *(unsigned __int8 *)(a2 + 84));\n    v3 = *(_WORD *)(a2 + 72);\n    v9 = *(_BYTE *)(a2 + 74);\n    v8 = v3;\n    if ( *(_DWORD *)(a2 + 120) )\n    {\n      if ( !*(_BYTE *)(a2 + 126) )\n      {\n        v9 = -90;\n        v8 = -22874;\n      }\n    }\n    return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1 + 960LL))(a1, &v8);\n  }\n  else\n  {\n    result = (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 960LL))(a1, &unk_100A079B3);\n    v5 = *(_QWORD *)(a1 + 600);\n    if ( v5 )\n      result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);\n    v6 = *(_QWORD *)(a1 + 608);\n    if ( v6 )\n      result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);\n    v7 = *(_QWORD *)(a1 + 616);\n    if ( v7 )\n      return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, 0);\n  }\n  return result;\n}", "assembly": "; \n; ColorChannelSprite::updateValues from 0x1002c3b10 to 0x1002c3bf6 (230 bytes)\n; \n; 10 xrefs:\n; > CustomizeObjectLayer::updateColorSprite @ 0x1001daaa3\n; > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1e5\n; > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3fe\n; > LevelSettingsLayer::updateColorSprites @ 0x100257bf2\n; > LevelSettingsLayer::updateColorSprites @ 0x100257c7e\n; > LevelSettingsLayer::updateColorSprites @ 0x100257d0a\n; > LevelSettingsLayer::updateColorSprites @ 0x100257d96\n; > LevelSettingsLayer::updateColorSprites @ 0x100257e26\n; > LevelSettingsLayer::updateColorSprites @ 0x100257e9a\n; > LevelSettingsLayer::updateColorSprite @ 0x100259064\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 12:28:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002c3b10\nmov     rbp, rsp                                                       ; +0x1, 0x1002c3b11\npush    r14                                                            ; +0x4, 0x1002c3b14\npush    rbx                                                            ; +0x6, 0x1002c3b16\nsub     rsp, 10h                                                       ; +0x7, 0x1002c3b17\nmov     rbx, rdi                                                       ; +0xb, 0x1002c3b1b\ntest    rsi, rsi                                                       ; +0xe, 0x1002c3b1e\njz      short loc_1002C3B93                                            ; +0x11, 0x1002c3b21\nmov     r14, rsi                                                       ; +0x13, 0x1002c3b23\nmov     esi, [rsi+78h]                                                 ; +0x16, 0x1002c3b26\nmovzx   edx, byte ptr [r14+7Eh]                                        ; +0x19, 0x1002c3b29\nmov     rdi, rbx                                                       ; +0x1e, 0x1002c3b2e\ncall    ColorChannelSprite__updateCopyLabel                            ; +0x21, 0x1002c3b31\nmovss   xmm0, dword ptr [r14+60h]                                      ; +0x26, 0x1002c3b36\nmov     rdi, rbx                                                       ; +0x2c, 0x1002c3b3c\ncall    ColorChannelSprite__updateOpacity                              ; +0x2f, 0x1002c3b3f\nmovzx   esi, byte ptr [r14+54h]                                        ; +0x34, 0x1002c3b44\nmov     rdi, rbx                                                       ; +0x39, 0x1002c3b49\ncall    ColorChannelSprite__updateBlending                             ; +0x3c, 0x1002c3b4c\nmovzx   eax, word ptr [r14+48h]                                        ; +0x41, 0x1002c3b51\nmovzx   ecx, byte ptr [r14+4Ah]                                        ; +0x46, 0x1002c3b56\nmov     [rbp+var_12], cl                                               ; +0x4b, 0x1002c3b5b\nmov     [rbp+var_14], ax                                               ; +0x4e, 0x1002c3b5e\ncmp     dword ptr [r14+78h], 0                                         ; +0x52, 0x1002c3b62\njz      short loc_1002C3B7A                                            ; +0x57, 0x1002c3b67\ncmp     byte ptr [r14+7Eh], 0                                          ; +0x59, 0x1002c3b69\njnz     short loc_1002C3B7A                                            ; +0x5e, 0x1002c3b6e\nmov     [rbp+var_12], 0A6h                                             ; +0x60, 0x1002c3b70\nmov     [rbp+var_14], 0A6A6h                                           ; +0x64, 0x1002c3b74\nmov     rax, [rbx]                                                     ; +0x6a, 0x1002c3b7a\nlea     rsi, [rbp+var_14]                                              ; +0x6d, 0x1002c3b7d\nmov     rdi, rbx                                                       ; +0x71, 0x1002c3b81\ncall    qword ptr [rax+3C0h]                                           ; +0x74, 0x1002c3b84\nadd     rsp, 10h                                                       ; +0x7a, 0x1002c3b8a\npop     rbx                                                            ; +0x7e, 0x1002c3b8e\npop     r14                                                            ; +0x7f, 0x1002c3b8f\npop     rbp                                                            ; +0x81, 0x1002c3b91\nretn                                                                   ; +0x82, 0x1002c3b92\nmov     rax, [rbx]                                                     ; +0x83, 0x1002c3b93\nlea     rsi, unk_100A079B3                                             ; +0x86, 0x1002c3b96\nmov     rdi, rbx                                                       ; +0x8d, 0x1002c3b9d\ncall    qword ptr [rax+3C0h]                                           ; +0x90, 0x1002c3ba0\nmov     rdi, [rbx+258h]                                                ; +0x96, 0x1002c3ba6\ntest    rdi, rdi                                                       ; +0x9d, 0x1002c3bad\njz      short loc_1002C3BBD                                            ; +0xa0, 0x1002c3bb0\nmov     rax, [rdi]                                                     ; +0xa2, 0x1002c3bb2\nxor     esi, esi                                                       ; +0xa5, 0x1002c3bb5\ncall    qword ptr [rax+158h]                                           ; +0xa7, 0x1002c3bb7\nmov     rdi, [rbx+260h]                                                ; +0xad, 0x1002c3bbd\ntest    rdi, rdi                                                       ; +0xb4, 0x1002c3bc4\njz      short loc_1002C3BD4                                            ; +0xb7, 0x1002c3bc7\nmov     rax, [rdi]                                                     ; +0xb9, 0x1002c3bc9\nxor     esi, esi                                                       ; +0xbc, 0x1002c3bcc\ncall    qword ptr [rax+158h]                                           ; +0xbe, 0x1002c3bce\nmov     rdi, [rbx+268h]                                                ; +0xc4, 0x1002c3bd4\ntest    rdi, rdi                                                       ; +0xcb, 0x1002c3bdb\njz      short loc_1002C3B8A                                            ; +0xce, 0x1002c3bde\nmov     rax, [rdi]                                                     ; +0xd0, 0x1002c3be0\nmov     rax, [rax+158h]                                                ; +0xd3, 0x1002c3be3\nxor     esi, esi                                                       ; +0xda, 0x1002c3bea\nadd     rsp, 10h                                                       ; +0xdc, 0x1002c3bec\npop     rbx                                                            ; +0xe0, 0x1002c3bf0\npop     r14                                                            ; +0xe1, 0x1002c3bf1\npop     rbp                                                            ; +0xe3, 0x1002c3bf3\njmp     rax                                                            ; +0xe4, 0x1002c3bf4", "xrefs": ["CustomizeObjectLayer::updateColorSprite @ 0x1001daaa3", "GJColorSetupLayer::updateSpriteColors @ 0x1001ef1e5", "GJColorSetupLayer::updateSpriteColor @ 0x1001ef3fe", "LevelSettingsLayer::updateColorSprites @ 0x100257bf2", "LevelSettingsLayer::updateColorSprites @ 0x100257c7e", "LevelSettingsLayer::updateColorSprites @ 0x100257d0a", "LevelSettingsLayer::updateColorSprites @ 0x100257d96", "LevelSettingsLayer::updateColorSprites @ 0x100257e26", "LevelSettingsLayer::updateColorSprites @ 0x100257e9a", "LevelSettingsLayer::updateColorSprite @ 0x100259064"], "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"}