{"type": "func", "start": 4301895616, "end": 4301895726, "name": "GameObject::getRelativeSpriteColor", "pseudocode": "// \n// GameObject::getRelativeSpriteColor from 0x10069b7c0 to 0x10069b82e (110 bytes)\n// \n// 24 xrefs:\n// > EditorUI::updateObjectInfoLabel @ 0x10000e9ce\n// > EditorUI::updateObjectInfoLabel @ 0x10000ea14\n// > EditorUI::updateObjectInfoLabel @ 0x10000eb5b\n// > EditorUI::updateObjectInfoLabel @ 0x10000eb8a\n// > CustomizeObjectLayer::determineStartValues @ 0x1001d973e\n// > CustomizeObjectLayer::determineStartValues @ 0x1001d9759\n// > CustomizeObjectLayer::determineStartValues @ 0x1001d97f6\n// > CustomizeObjectLayer::determineStartValues @ 0x1001d9828\n// > CustomizeObjectLayer::getActiveMode @ 0x1001da893\n// > CustomizeObjectLayer::getActiveMode @ 0x1001da910\n// > CustomizeObjectLayer::updateSelected @ 0x1001daf13\n// > CustomizeObjectLayer::updateSelected @ 0x1001dafc3\n// > CustomizeObjectLayer::updateSelected @ 0x1001db020\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db4ee\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db549\n// > HSVLiveOverlay::determineStartValues @ 0x100254e8e\n// > HSVLiveOverlay::determineStartValues @ 0x100254ea9\n// > HSVLiveOverlay::determineStartValues @ 0x100254f28\n// > HSVLiveOverlay::determineStartValues @ 0x100254f4a\n// > HSVLiveOverlay::hsvChanged @ 0x10025539e\n// > HSVLiveOverlay::hsvChanged @ 0x1002553f6\n// > ConfigureHSVWidget::getHSV @ 0x10041ee08\n// > ConfigureHSVWidget::getHSV @ 0x10041ef3b\n// > GameObject::setupCustomSprites @ 0x10045121c\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:35:16 +0000\n// \n\n__int64 __fastcall GameObject::getRelativeSpriteColor(__int64 a1, int a2)\n{\n  bool v2; // al\n  __int64 v3; // rcx\n\n  if ( *(_WORD *)(a1 + 1040) == 1 || !*(_WORD *)(a1 + 1040) && *(_BYTE *)(a1 + 1292) || *(_QWORD *)(a1 + 888) )\n  {\n    v2 = 0;\n    if ( a2 == 2 )\n    {\nLABEL_6:\n      v3 = 8LL * !v2 + 1096;\n      return *(_QWORD *)(a1 + v3);\n    }\n  }\n  else\n  {\n    v2 = *(_DWORD *)(*(_QWORD *)(a1 + 1096) + 4LL) != 1004 && *(_DWORD *)(*(_QWORD *)(a1 + 1096) + 4LL) != 0;\n    if ( a2 == 2 )\n      goto LABEL_6;\n  }\n  v3 = 1096;\n  if ( v2 )\n    return 0;\n  return *(_QWORD *)(a1 + v3);\n}", "assembly": "; \n; GameObject::getRelativeSpriteColor from 0x10069b7c0 to 0x10069b82e (110 bytes)\n; \n; 24 xrefs:\n; > EditorUI::updateObjectInfoLabel @ 0x10000e9ce\n; > EditorUI::updateObjectInfoLabel @ 0x10000ea14\n; > EditorUI::updateObjectInfoLabel @ 0x10000eb5b\n; > EditorUI::updateObjectInfoLabel @ 0x10000eb8a\n; > CustomizeObjectLayer::determineStartValues @ 0x1001d973e\n; > CustomizeObjectLayer::determineStartValues @ 0x1001d9759\n; > CustomizeObjectLayer::determineStartValues @ 0x1001d97f6\n; > CustomizeObjectLayer::determineStartValues @ 0x1001d9828\n; > CustomizeObjectLayer::getActiveMode @ 0x1001da893\n; > CustomizeObjectLayer::getActiveMode @ 0x1001da910\n; > CustomizeObjectLayer::updateSelected @ 0x1001daf13\n; > CustomizeObjectLayer::updateSelected @ 0x1001dafc3\n; > CustomizeObjectLayer::updateSelected @ 0x1001db020\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db4ee\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x1001db549\n; > HSVLiveOverlay::determineStartValues @ 0x100254e8e\n; > HSVLiveOverlay::determineStartValues @ 0x100254ea9\n; > HSVLiveOverlay::determineStartValues @ 0x100254f28\n; > HSVLiveOverlay::determineStartValues @ 0x100254f4a\n; > HSVLiveOverlay::hsvChanged @ 0x10025539e\n; > HSVLiveOverlay::hsvChanged @ 0x1002553f6\n; > ConfigureHSVWidget::getHSV @ 0x10041ee08\n; > ConfigureHSVWidget::getHSV @ 0x10041ef3b\n; > GameObject::setupCustomSprites @ 0x10045121c\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:35:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x10069b7c0\nmov     rbp, rsp                                                       ; +0x1, 0x10069b7c1\nmovzx   eax, word ptr [rdi+410h]                                       ; +0x4, 0x10069b7c4\ncmp     eax, 1                                                         ; +0xb, 0x10069b7cb\njz      short loc_10069B7E7                                            ; +0xe, 0x10069b7ce\ntest    eax, eax                                                       ; +0x10, 0x10069b7d0\njnz     short loc_10069B7DD                                            ; +0x12, 0x10069b7d2\ncmp     byte ptr [rdi+50Ch], 0                                         ; +0x14, 0x10069b7d4\njnz     short loc_10069B7E7                                            ; +0x1b, 0x10069b7db\ncmp     qword ptr [rdi+378h], 0                                        ; +0x1d, 0x10069b7dd\njz      short loc_10069B7FD                                            ; +0x25, 0x10069b7e5\nxor     eax, eax                                                       ; +0x27, 0x10069b7e7\ncmp     esi, 2                                                         ; +0x29, 0x10069b7e9\njnz     short loc_10069B81B                                            ; +0x2c, 0x10069b7ec\nxor     al, 1                                                          ; +0x2e, 0x10069b7ee\nmovzx   eax, al                                                        ; +0x30, 0x10069b7f0\nlea     rcx, ds:448h[rax*8]                                            ; +0x33, 0x10069b7f3\njmp     short loc_10069B828                                            ; +0x3b, 0x10069b7fb\nmov     rax, [rdi+448h]                                                ; +0x3d, 0x10069b7fd\nmov     eax, [rax+4]                                                   ; +0x44, 0x10069b804\ncmp     eax, 3ECh                                                      ; +0x47, 0x10069b807\nsetnz   cl                                                             ; +0x4c, 0x10069b80c\ntest    eax, eax                                                       ; +0x4f, 0x10069b80f\nsetnz   al                                                             ; +0x51, 0x10069b811\nand     al, cl                                                         ; +0x54, 0x10069b814\ncmp     esi, 2                                                         ; +0x56, 0x10069b816\njz      short loc_10069B7EE                                            ; +0x59, 0x10069b819\nmov     ecx, 448h                                                      ; +0x5b, 0x10069b81b\ntest    al, al                                                         ; +0x60, 0x10069b820\njz      short loc_10069B828                                            ; +0x62, 0x10069b822\nxor     eax, eax                                                       ; +0x64, 0x10069b824\npop     rbp                                                            ; +0x66, 0x10069b826\nretn                                                                   ; +0x67, 0x10069b827\nmov     rax, [rdi+rcx]                                                 ; +0x68, 0x10069b828\npop     rbp                                                            ; +0x6c, 0x10069b82c\nretn                                                                   ; +0x6d, 0x10069b82d", "xrefs": ["EditorUI::updateObjectInfoLabel @ 0x10000e9ce", "EditorUI::updateObjectInfoLabel @ 0x10000ea14", "EditorUI::updateObjectInfoLabel @ 0x10000eb5b", "EditorUI::updateObjectInfoLabel @ 0x10000eb8a", "CustomizeObjectLayer::determineStartValues @ 0x1001d973e", "CustomizeObjectLayer::determineStartValues @ 0x1001d9759", "CustomizeObjectLayer::determineStartValues @ 0x1001d97f6", "CustomizeObjectLayer::determineStartValues @ 0x1001d9828", "CustomizeObjectLayer::getActiveMode @ 0x1001da893", "CustomizeObjectLayer::getActiveMode @ 0x1001da910", "CustomizeObjectLayer::updateSelected @ 0x1001daf13", "CustomizeObjectLayer::updateSelected @ 0x1001dafc3", "CustomizeObjectLayer::updateSelected @ 0x1001db020", "CustomizeObjectLayer::hsvPopupClosed @ 0x1001db4ee", "CustomizeObjectLayer::hsvPopupClosed @ 0x1001db549", "HSVLiveOverlay::determineStartValues @ 0x100254e8e", "HSVLiveOverlay::determineStartValues @ 0x100254ea9", "HSVLiveOverlay::determineStartValues @ 0x100254f28", "HSVLiveOverlay::determineStartValues @ 0x100254f4a", "HSVLiveOverlay::hsvChanged @ 0x10025539e", "HSVLiveOverlay::hsvChanged @ 0x1002553f6", "ConfigureHSVWidget::getHSV @ 0x10041ee08", "ConfigureHSVWidget::getHSV @ 0x10041ef3b", "GameObject::setupCustomSprites @ 0x10045121c"], "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"}