{"type": "func", "start": 4301037760, "end": 4301037870, "name": "GameObject::getRelativeSpriteColor", "pseudocode": "// \n// GameObject::getRelativeSpriteColor from 0x1005ca0c0 to 0x1005ca12e (110 bytes)\n// \n// 24 xrefs:\n// > EditorUI::updateObjectInfoLabel @ 0x10002f52e\n// > EditorUI::updateObjectInfoLabel @ 0x10002f574\n// > EditorUI::updateObjectInfoLabel @ 0x10002f6bb\n// > EditorUI::updateObjectInfoLabel @ 0x10002f6ea\n// > CustomizeObjectLayer::determineStartValues @ 0x1001f738e\n// > CustomizeObjectLayer::determineStartValues @ 0x1001f73a9\n// > CustomizeObjectLayer::determineStartValues @ 0x1001f7446\n// > CustomizeObjectLayer::determineStartValues @ 0x1001f7478\n// > CustomizeObjectLayer::getActiveMode @ 0x1001f8383\n// > CustomizeObjectLayer::getActiveMode @ 0x1001f8400\n// > CustomizeObjectLayer::updateSelected @ 0x1001f8af3\n// > CustomizeObjectLayer::updateSelected @ 0x1001f8ba3\n// > CustomizeObjectLayer::updateSelected @ 0x1001f8c00\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x1001f90ce\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x1001f9129\n// > HSVLiveOverlay::determineStartValues @ 0x10026adae\n// > HSVLiveOverlay::determineStartValues @ 0x10026adc9\n// > HSVLiveOverlay::determineStartValues @ 0x10026ae48\n// > HSVLiveOverlay::determineStartValues @ 0x10026ae6a\n// > HSVLiveOverlay::hsvChanged @ 0x10026b29e\n// > HSVLiveOverlay::hsvChanged @ 0x10026b2f6\n// > ConfigureHSVWidget::getHSV @ 0x1004316b8\n// > ConfigureHSVWidget::getHSV @ 0x1004317eb\n// > GameObject::setupCustomSprites @ 0x10045ce2c\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\nGJSpriteColor *__fastcall GameObject::getRelativeSpriteColor(GameObject *a1, int a2)\n{\n  bool v2; // al\n  __int64 v3; // rcx\n\n  if ( a1->m_customColorType == 1 || !a1->m_customColorType && a1->m_maybeNotColorable || a1->m_colorSprite )\n  {\n    v2 = 0;\n    if ( a2 == 2 )\n    {\nLABEL_6:\n      v3 = 8LL * !v2 + 1096;\n      return *(GJSpriteColor **)((char *)&a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                               + v3);\n    }\n  }\n  else\n  {\n    v2 = a1->m_baseColor->m_defaultColorID != 1004 && a1->m_baseColor->m_defaultColorID != 0;\n    if ( a2 == 2 )\n      goto LABEL_6;\n  }\n  v3 = 1096;\n  if ( v2 )\n    return nullptr;\n  return *(GJSpriteColor **)((char *)&a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                           + v3);\n}", "assembly": "; \n; GameObject::getRelativeSpriteColor from 0x1005ca0c0 to 0x1005ca12e (110 bytes)\n; \n; 24 xrefs:\n; > EditorUI::updateObjectInfoLabel @ 0x10002f52e\n; > EditorUI::updateObjectInfoLabel @ 0x10002f574\n; > EditorUI::updateObjectInfoLabel @ 0x10002f6bb\n; > EditorUI::updateObjectInfoLabel @ 0x10002f6ea\n; > CustomizeObjectLayer::determineStartValues @ 0x1001f738e\n; > CustomizeObjectLayer::determineStartValues @ 0x1001f73a9\n; > CustomizeObjectLayer::determineStartValues @ 0x1001f7446\n; > CustomizeObjectLayer::determineStartValues @ 0x1001f7478\n; > CustomizeObjectLayer::getActiveMode @ 0x1001f8383\n; > CustomizeObjectLayer::getActiveMode @ 0x1001f8400\n; > CustomizeObjectLayer::updateSelected @ 0x1001f8af3\n; > CustomizeObjectLayer::updateSelected @ 0x1001f8ba3\n; > CustomizeObjectLayer::updateSelected @ 0x1001f8c00\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x1001f90ce\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x1001f9129\n; > HSVLiveOverlay::determineStartValues @ 0x10026adae\n; > HSVLiveOverlay::determineStartValues @ 0x10026adc9\n; > HSVLiveOverlay::determineStartValues @ 0x10026ae48\n; > HSVLiveOverlay::determineStartValues @ 0x10026ae6a\n; > HSVLiveOverlay::hsvChanged @ 0x10026b29e\n; > HSVLiveOverlay::hsvChanged @ 0x10026b2f6\n; > ConfigureHSVWidget::getHSV @ 0x1004316b8\n; > ConfigureHSVWidget::getHSV @ 0x1004317eb\n; > GameObject::setupCustomSprites @ 0x10045ce2c\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, 0x1005ca0c0\nmov     rbp, rsp                                                       ; +0x1, 0x1005ca0c1\nmovzx   eax, word ptr [rdi+410h]                                       ; +0x4, 0x1005ca0c4\ncmp     eax, 1                                                         ; +0xb, 0x1005ca0cb\njz      short loc_1005CA0E7                                            ; +0xe, 0x1005ca0ce\ntest    eax, eax                                                       ; +0x10, 0x1005ca0d0\njnz     short loc_1005CA0DD                                            ; +0x12, 0x1005ca0d2\ncmp     byte ptr [rdi+50Ch], 0                                         ; +0x14, 0x1005ca0d4\njnz     short loc_1005CA0E7                                            ; +0x1b, 0x1005ca0db\ncmp     qword ptr [rdi+378h], 0                                        ; +0x1d, 0x1005ca0dd\njz      short loc_1005CA0FD                                            ; +0x25, 0x1005ca0e5\nxor     eax, eax                                                       ; +0x27, 0x1005ca0e7\ncmp     esi, 2                                                         ; +0x29, 0x1005ca0e9\njnz     short loc_1005CA11B                                            ; +0x2c, 0x1005ca0ec\nxor     al, 1                                                          ; +0x2e, 0x1005ca0ee\nmovzx   eax, al                                                        ; +0x30, 0x1005ca0f0\nlea     rcx, ds:448h[rax*8]                                            ; +0x33, 0x1005ca0f3\njmp     short loc_1005CA128                                            ; +0x3b, 0x1005ca0fb\nmov     rax, [rdi+448h]                                                ; +0x3d, 0x1005ca0fd\nmov     eax, [rax+4]                                                   ; +0x44, 0x1005ca104\ncmp     eax, 3ECh                                                      ; +0x47, 0x1005ca107\nsetnz   cl                                                             ; +0x4c, 0x1005ca10c\ntest    eax, eax                                                       ; +0x4f, 0x1005ca10f\nsetnz   al                                                             ; +0x51, 0x1005ca111\nand     al, cl                                                         ; +0x54, 0x1005ca114\ncmp     esi, 2                                                         ; +0x56, 0x1005ca116\njz      short loc_1005CA0EE                                            ; +0x59, 0x1005ca119\nmov     ecx, 448h                                                      ; +0x5b, 0x1005ca11b\ntest    al, al                                                         ; +0x60, 0x1005ca120\njz      short loc_1005CA128                                            ; +0x62, 0x1005ca122\nxor     eax, eax                                                       ; +0x64, 0x1005ca124\npop     rbp                                                            ; +0x66, 0x1005ca126\nretn                                                                   ; +0x67, 0x1005ca127\nmov     rax, [rdi+rcx]                                                 ; +0x68, 0x1005ca128\npop     rbp                                                            ; +0x6c, 0x1005ca12c\nretn                                                                   ; +0x6d, 0x1005ca12d", "xrefs": ["EditorUI::updateObjectInfoLabel @ 0x10002f52e", "EditorUI::updateObjectInfoLabel @ 0x10002f574", "EditorUI::updateObjectInfoLabel @ 0x10002f6bb", "EditorUI::updateObjectInfoLabel @ 0x10002f6ea", "CustomizeObjectLayer::determineStartValues @ 0x1001f738e", "CustomizeObjectLayer::determineStartValues @ 0x1001f73a9", "CustomizeObjectLayer::determineStartValues @ 0x1001f7446", "CustomizeObjectLayer::determineStartValues @ 0x1001f7478", "CustomizeObjectLayer::getActiveMode @ 0x1001f8383", "CustomizeObjectLayer::getActiveMode @ 0x1001f8400", "CustomizeObjectLayer::updateSelected @ 0x1001f8af3", "CustomizeObjectLayer::updateSelected @ 0x1001f8ba3", "CustomizeObjectLayer::updateSelected @ 0x1001f8c00", "CustomizeObjectLayer::hsvPopupClosed @ 0x1001f90ce", "CustomizeObjectLayer::hsvPopupClosed @ 0x1001f9129", "HSVLiveOverlay::determineStartValues @ 0x10026adae", "HSVLiveOverlay::determineStartValues @ 0x10026adc9", "HSVLiveOverlay::determineStartValues @ 0x10026ae48", "HSVLiveOverlay::determineStartValues @ 0x10026ae6a", "HSVLiveOverlay::hsvChanged @ 0x10026b29e", "HSVLiveOverlay::hsvChanged @ 0x10026b2f6", "ConfigureHSVWidget::getHSV @ 0x1004316b8", "ConfigureHSVWidget::getHSV @ 0x1004317eb", "GameObject::setupCustomSprites @ 0x10045ce2c"], "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"}