{"type": "func", "start": 4297465236, "end": 4297465348, "name": "GameObject::getRelativeSpriteColor", "pseudocode": "// \n// GameObject::getRelativeSpriteColor from 0x100261d94 to 0x100261e04 (112 bytes)\n// \n// 21 xrefs:\n// > CustomizeObjectLayer::determineStartValues @ 0x10004f45c\n// > CustomizeObjectLayer::determineStartValues @ 0x10004f474\n// > CustomizeObjectLayer::determineStartValues @ 0x10004f4d0\n// > CustomizeObjectLayer::determineStartValues @ 0x10004f4f0\n// > CustomizeObjectLayer::getActiveMode @ 0x1000500a4\n// > CustomizeObjectLayer::getActiveMode @ 0x1000500f0\n// > CustomizeObjectLayer::updateSelected @ 0x100050524\n// > CustomizeObjectLayer::updateSelected @ 0x100050580\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x1000507fc\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x10005082c\n// > ConfigureHSVWidget::getHSV @ 0x100100494\n// > HSVLiveOverlay::determineStartValues @ 0x10019fe50\n// > HSVLiveOverlay::determineStartValues @ 0x10019fe68\n// > HSVLiveOverlay::determineStartValues @ 0x10019feb0\n// > HSVLiveOverlay::determineStartValues @ 0x10019fed0\n// > HSVLiveOverlay::hsvChanged @ 0x1001a01b4\n// > GameObject::setupCustomSprites @ 0x1002c4094\n// > EditorUI::updateObjectInfoLabel @ 0x1003e7920\n// > EditorUI::updateObjectInfoLabel @ 0x1003e795c\n// > EditorUI::updateObjectInfoLabel @ 0x1003e7a58\n// > EditorUI::updateObjectInfoLabel @ 0x1003e7aa4\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  int v2; // w8\n  __int64 v3; // x8\n  int m_defaultColorID; // w8\n  bool v6; // zf\n\n  if ( a1->m_customColorType == 1 || !a1->m_customColorType && a1->m_maybeNotColorable || a1->m_colorSprite )\n  {\n    v2 = 0;\n  }\n  else\n  {\n    m_defaultColorID = a1->m_baseColor->m_defaultColorID;\n    v6 = m_defaultColorID == 1004 || m_defaultColorID == 0;\n    v2 = !v6;\n  }\n  if ( a2 == 2 )\n  {\n    v6 = v2 == 0;\n    v3 = 1104;\n    if ( !v6 )\n      v3 = 1096;\n  }\n  else\n  {\n    if ( (v2 & 1) != 0 )\n      return nullptr;\n    v3 = 1096;\n  }\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 0x100261d94 to 0x100261e04 (112 bytes)\n; \n; 21 xrefs:\n; > CustomizeObjectLayer::determineStartValues @ 0x10004f45c\n; > CustomizeObjectLayer::determineStartValues @ 0x10004f474\n; > CustomizeObjectLayer::determineStartValues @ 0x10004f4d0\n; > CustomizeObjectLayer::determineStartValues @ 0x10004f4f0\n; > CustomizeObjectLayer::getActiveMode @ 0x1000500a4\n; > CustomizeObjectLayer::getActiveMode @ 0x1000500f0\n; > CustomizeObjectLayer::updateSelected @ 0x100050524\n; > CustomizeObjectLayer::updateSelected @ 0x100050580\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x1000507fc\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x10005082c\n; > ConfigureHSVWidget::getHSV @ 0x100100494\n; > HSVLiveOverlay::determineStartValues @ 0x10019fe50\n; > HSVLiveOverlay::determineStartValues @ 0x10019fe68\n; > HSVLiveOverlay::determineStartValues @ 0x10019feb0\n; > HSVLiveOverlay::determineStartValues @ 0x10019fed0\n; > HSVLiveOverlay::hsvChanged @ 0x1001a01b4\n; > GameObject::setupCustomSprites @ 0x1002c4094\n; > EditorUI::updateObjectInfoLabel @ 0x1003e7920\n; > EditorUI::updateObjectInfoLabel @ 0x1003e795c\n; > EditorUI::updateObjectInfoLabel @ 0x1003e7a58\n; > EditorUI::updateObjectInfoLabel @ 0x1003e7aa4\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\nLDRH            W8, [X0,#0x410]                                        ; +0x0, 0x100261d94\nCMP             W8, #1                                                 ; +0x4, 0x100261d98\nB.EQ            loc_100261DB4                                          ; +0x8, 0x100261d9c\nCBNZ            W8, loc_100261DAC                                      ; +0xc, 0x100261da0\nLDRB            W8, [X0,#0x50C]                                        ; +0x10, 0x100261da4\nTBNZ            W8, #0, loc_100261DB4                                  ; +0x14, 0x100261da8\nLDR             X8, [X0,#0x378]                                        ; +0x18, 0x100261dac\nCBZ             X8, loc_100261DEC                                      ; +0x1c, 0x100261db0\nMOV             W8, #0                                                 ; +0x20, 0x100261db4\nCMP             W1, #2                                                 ; +0x24, 0x100261db8\nB.NE            loc_100261DD4                                          ; +0x28, 0x100261dbc\nCMP             W8, #0                                                 ; +0x2c, 0x100261dc0\nMOV             W8, #0x450                                             ; +0x30, 0x100261dc4\nMOV             W9, #0x448                                             ; +0x34, 0x100261dc8\nCSEL            X8, X9, X8, NE                                         ; +0x38, 0x100261dcc\nB               loc_100261DE4                                          ; +0x3c, 0x100261dd0\nTBZ             W8, #0, loc_100261DE0                                  ; +0x40, 0x100261dd4\nMOV             X0, #0                                                 ; +0x44, 0x100261dd8\nRET                                                                    ; +0x48, 0x100261ddc\nMOV             W8, #0x448                                             ; +0x4c, 0x100261de0\nLDR             X0, [X0,X8]                                            ; +0x50, 0x100261de4\nRET                                                                    ; +0x54, 0x100261de8\nLDR             X8, [X0,#0x448]                                        ; +0x58, 0x100261dec\nLDR             W8, [X8,#4]                                            ; +0x5c, 0x100261df0\nCMP             W8, #0x3EC                                             ; +0x60, 0x100261df4\nCCMP            W8, #0, #4, NE                                         ; +0x64, 0x100261df8\nCSET            W8, NE                                                 ; +0x68, 0x100261dfc\nB               loc_100261DB8                                          ; +0x6c, 0x100261e00", "xrefs": ["CustomizeObjectLayer::determineStartValues @ 0x10004f45c", "CustomizeObjectLayer::determineStartValues @ 0x10004f474", "CustomizeObjectLayer::determineStartValues @ 0x10004f4d0", "CustomizeObjectLayer::determineStartValues @ 0x10004f4f0", "CustomizeObjectLayer::getActiveMode @ 0x1000500a4", "CustomizeObjectLayer::getActiveMode @ 0x1000500f0", "CustomizeObjectLayer::updateSelected @ 0x100050524", "CustomizeObjectLayer::updateSelected @ 0x100050580", "CustomizeObjectLayer::hsvPopupClosed @ 0x1000507fc", "CustomizeObjectLayer::hsvPopupClosed @ 0x10005082c", "ConfigureHSVWidget::getHSV @ 0x100100494", "HSVLiveOverlay::determineStartValues @ 0x10019fe50", "HSVLiveOverlay::determineStartValues @ 0x10019fe68", "HSVLiveOverlay::determineStartValues @ 0x10019feb0", "HSVLiveOverlay::determineStartValues @ 0x10019fed0", "HSVLiveOverlay::hsvChanged @ 0x1001a01b4", "GameObject::setupCustomSprites @ 0x1002c4094", "EditorUI::updateObjectInfoLabel @ 0x1003e7920", "EditorUI::updateObjectInfoLabel @ 0x1003e795c", "EditorUI::updateObjectInfoLabel @ 0x1003e7a58", "EditorUI::updateObjectInfoLabel @ 0x1003e7aa4"], "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"}