{"type": "func", "start": 5371455936, "end": 5371456042, "name": "GameObject::getRelativeSpriteColor", "pseudocode": "// \n// GameObject::getRelativeSpriteColor from 0x14029e9c0 to 0x14029ea2a (106 bytes)\n// \n// 7 xrefs:\n// > ConfigureHSVWidget::getHSV @ 0x1401314a7\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x140142ee9\n// > CustomizeObjectLayer::getActiveMode @ 0x14014350b\n// > CustomizeObjectLayer::updateSelected @ 0x140143f2b\n// > CustomizeObjectLayer::updateSelected @ 0x140143fec\n// > GameObject::setupCustomSprites @ 0x1402c05cd\n// > HSVLiveOverlay::hsvChanged @ 0x1403c1516\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:29:15 +0000\n// \n\n__int64 __fastcall GameObject::getRelativeSpriteColor(__int64 a1, int a2)\n{\n  __int16 v2; // ax\n  char v4; // al\n  int v5; // edx\n  bool v6; // al\n\n  v2 = *(_WORD *)(a1 + 1048);\n  if ( v2 )\n    v4 = v2 == 1;\n  else\n    v4 = *(_BYTE *)(a1 + 1300);\n  v6 = false;\n  if ( !v4 && !*(_QWORD *)(a1 + 896) )\n  {\n    v5 = *(_DWORD *)(*(_QWORD *)(a1 + 1104) + 4LL);\n    if ( v5 != 1004 )\n    {\n      if ( v5 )\n        v6 = true;\n    }\n  }\n  if ( a2 == 2 )\n  {\n    if ( !v6 )\n      return *(_QWORD *)(a1 + 1112);\n  }\n  else if ( v6 )\n  {\n    return 0;\n  }\n  return *(_QWORD *)(a1 + 1104);\n}", "assembly": "; \n; GameObject::getRelativeSpriteColor from 0x14029e9c0 to 0x14029ea2a (106 bytes)\n; \n; 7 xrefs:\n; > ConfigureHSVWidget::getHSV @ 0x1401314a7\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x140142ee9\n; > CustomizeObjectLayer::getActiveMode @ 0x14014350b\n; > CustomizeObjectLayer::updateSelected @ 0x140143f2b\n; > CustomizeObjectLayer::updateSelected @ 0x140143fec\n; > GameObject::setupCustomSprites @ 0x1402c05cd\n; > HSVLiveOverlay::hsvChanged @ 0x1403c1516\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:29:15 +0000\n; \nmovzx   eax, word ptr [rcx+418h]                                       ; +0x0, 0x14029e9c0\nmov     r8d, edx                                                       ; +0x7, 0x14029e9c7\ntest    ax, ax                                                         ; +0xa, 0x14029e9ca\njnz     short loc_14029E9D8                                            ; +0xd, 0x14029e9cd\nmovzx   eax, byte ptr [rcx+514h]                                       ; +0xf, 0x14029e9cf\njmp     short loc_14029E9DF                                            ; +0x16, 0x14029e9d6\ncmp     ax, 1                                                          ; +0x18, 0x14029e9d8\nsetz    al                                                             ; +0x1c, 0x14029e9dc\ntest    al, al                                                         ; +0x1f, 0x14029e9df\njnz     short loc_14029EA07                                            ; +0x21, 0x14029e9e1\ncmp     qword ptr [rcx+380h], 0                                        ; +0x23, 0x14029e9e3\njnz     short loc_14029EA07                                            ; +0x2b, 0x14029e9eb\nmov     rax, [rcx+450h]                                                ; +0x2d, 0x14029e9ed\nmov     edx, [rax+4]                                                   ; +0x34, 0x14029e9f4\ncmp     edx, 3ECh                                                      ; +0x37, 0x14029e9f7\njz      short loc_14029EA07                                            ; +0x3d, 0x14029e9fd\ntest    edx, edx                                                       ; +0x3f, 0x14029e9ff\njz      short loc_14029EA07                                            ; +0x41, 0x14029ea01\nmov     al, 1                                                          ; +0x43, 0x14029ea03\njmp     short loc_14029EA09                                            ; +0x45, 0x14029ea05\nxor     al, al                                                         ; +0x47, 0x14029ea07\ncmp     r8d, 2                                                         ; +0x49, 0x14029ea09\njnz     short loc_14029EA1B                                            ; +0x4d, 0x14029ea0d\ntest    al, al                                                         ; +0x4f, 0x14029ea0f\njnz     short loc_14029EA22                                            ; +0x51, 0x14029ea11\nmov     rax, [rcx+458h]                                                ; +0x53, 0x14029ea13\nretn                                                                   ; +0x5a, 0x14029ea1a\ntest    al, al                                                         ; +0x5b, 0x14029ea1b\njz      short loc_14029EA22                                            ; +0x5d, 0x14029ea1d\nxor     eax, eax                                                       ; +0x5f, 0x14029ea1f\nretn                                                                   ; +0x61, 0x14029ea21\nmov     rax, [rcx+450h]                                                ; +0x62, 0x14029ea22\nretn                                                                   ; +0x69, 0x14029ea29", "xrefs": ["ConfigureHSVWidget::getHSV @ 0x1401314a7", "CustomizeObjectLayer::hsvPopupClosed @ 0x140142ee9", "CustomizeObjectLayer::getActiveMode @ 0x14014350b", "CustomizeObjectLayer::updateSelected @ 0x140143f2b", "CustomizeObjectLayer::updateSelected @ 0x140143fec", "GameObject::setupCustomSprites @ 0x1402c05cd", "HSVLiveOverlay::hsvChanged @ 0x1403c1516"], "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"}