{"type": "func", "start": 4298109008, "end": 4298109120, "name": "GameObject::getRelativeSpriteColor", "pseudocode": "// \n// GameObject::getRelativeSpriteColor from 0x1002ff050 to 0x1002ff0c0 (112 bytes)\n// \n// 21 xrefs:\n// > sub_100057C10 @ 0x100057c30\n// > sub_100057C10 @ 0x100057c48\n// > sub_100057C10 @ 0x100057ca4\n// > sub_100057C10 @ 0x100057cc4\n// > CustomizeObjectLayer::getActiveMode @ 0x1000588c0\n// > CustomizeObjectLayer::getActiveMode @ 0x10005890c\n// > CustomizeObjectLayer::updateSelected @ 0x100058d40\n// > CustomizeObjectLayer::updateSelected @ 0x100058d9c\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x100059018\n// > CustomizeObjectLayer::hsvPopupClosed @ 0x100059048\n// > ConfigureHSVWidget::getHSV @ 0x100125298\n// > sub_100234C04 @ 0x100234c24\n// > sub_100234C04 @ 0x100234c3c\n// > sub_100234C04 @ 0x100234c84\n// > sub_100234C04 @ 0x100234ca4\n// > HSVLiveOverlay::hsvChanged @ 0x100234fac\n// > GameObject::setupCustomSprites @ 0x100362e3c\n// > EditorUI::updateObjectInfoLabel @ 0x1004756e8\n// > EditorUI::updateObjectInfoLabel @ 0x100475724\n// > EditorUI::updateObjectInfoLabel @ 0x100475820\n// > EditorUI::updateObjectInfoLabel @ 0x10047586c\n// \n// This function is hookable on this platform (idp: arm, 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:03:04 +0000\n// \n\n__int64 __fastcall GameObject::getRelativeSpriteColor(__int64 a1, int a2)\n{\n  int v2; // w8\n  __int64 v3; // x8\n  int v5; // w8\n  bool v6; // zf\n\n  if ( *(_WORD *)(a1 + 1040) == 1 || !*(_WORD *)(a1 + 1040) && (*(_BYTE *)(a1 + 1292) & 1) != 0 || *(_QWORD *)(a1 + 888) )\n  {\n    v2 = 0;\n  }\n  else\n  {\n    v5 = *(_DWORD *)(*(_QWORD *)(a1 + 1096) + 4LL);\n    v6 = v5 == 1004 || v5 == 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 0;\n    v3 = 1096;\n  }\n  return *(_QWORD *)(a1 + v3);\n}", "assembly": "; \n; GameObject::getRelativeSpriteColor from 0x1002ff050 to 0x1002ff0c0 (112 bytes)\n; \n; 21 xrefs:\n; > sub_100057C10 @ 0x100057c30\n; > sub_100057C10 @ 0x100057c48\n; > sub_100057C10 @ 0x100057ca4\n; > sub_100057C10 @ 0x100057cc4\n; > CustomizeObjectLayer::getActiveMode @ 0x1000588c0\n; > CustomizeObjectLayer::getActiveMode @ 0x10005890c\n; > CustomizeObjectLayer::updateSelected @ 0x100058d40\n; > CustomizeObjectLayer::updateSelected @ 0x100058d9c\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x100059018\n; > CustomizeObjectLayer::hsvPopupClosed @ 0x100059048\n; > ConfigureHSVWidget::getHSV @ 0x100125298\n; > sub_100234C04 @ 0x100234c24\n; > sub_100234C04 @ 0x100234c3c\n; > sub_100234C04 @ 0x100234c84\n; > sub_100234C04 @ 0x100234ca4\n; > HSVLiveOverlay::hsvChanged @ 0x100234fac\n; > GameObject::setupCustomSprites @ 0x100362e3c\n; > EditorUI::updateObjectInfoLabel @ 0x1004756e8\n; > EditorUI::updateObjectInfoLabel @ 0x100475724\n; > EditorUI::updateObjectInfoLabel @ 0x100475820\n; > EditorUI::updateObjectInfoLabel @ 0x10047586c\n; \n; This function is hookable on this platform (idp: arm, 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:03:04 +0000\n; \nLDRH            W8, [X0,#0x410]                                        ; +0x0, 0x1002ff050\nCMP             W8, #1                                                 ; +0x4, 0x1002ff054\nB.EQ            loc_1002FF070                                          ; +0x8, 0x1002ff058\nCBNZ            W8, loc_1002FF068                                      ; +0xc, 0x1002ff05c\nLDRB            W8, [X0,#0x50C]                                        ; +0x10, 0x1002ff060\nTBNZ            W8, #0, loc_1002FF070                                  ; +0x14, 0x1002ff064\nLDR             X8, [X0,#0x378]                                        ; +0x18, 0x1002ff068\nCBZ             X8, loc_1002FF0A8                                      ; +0x1c, 0x1002ff06c\nMOV             W8, #0                                                 ; +0x20, 0x1002ff070\nCMP             W1, #2                                                 ; +0x24, 0x1002ff074\nB.NE            loc_1002FF090                                          ; +0x28, 0x1002ff078\nCMP             W8, #0                                                 ; +0x2c, 0x1002ff07c\nMOV             W8, #0x450                                             ; +0x30, 0x1002ff080\nMOV             W9, #0x448                                             ; +0x34, 0x1002ff084\nCSEL            X8, X9, X8, NE                                         ; +0x38, 0x1002ff088\nB               loc_1002FF0A0                                          ; +0x3c, 0x1002ff08c\nTBZ             W8, #0, loc_1002FF09C                                  ; +0x40, 0x1002ff090\nMOV             X0, #0                                                 ; +0x44, 0x1002ff094\nRET                                                                    ; +0x48, 0x1002ff098\nMOV             W8, #0x448                                             ; +0x4c, 0x1002ff09c\nLDR             X0, [X0,X8]                                            ; +0x50, 0x1002ff0a0\nRET                                                                    ; +0x54, 0x1002ff0a4\nLDR             X8, [X0,#0x448]                                        ; +0x58, 0x1002ff0a8\nLDR             W8, [X8,#4]                                            ; +0x5c, 0x1002ff0ac\nCMP             W8, #0x3EC                                             ; +0x60, 0x1002ff0b0\nCCMP            W8, #0, #4, NE                                         ; +0x64, 0x1002ff0b4\nCSET            W8, NE                                                 ; +0x68, 0x1002ff0b8\nB               loc_1002FF074                                          ; +0x6c, 0x1002ff0bc", "xrefs": ["sub_100057C10 @ 0x100057c30", "sub_100057C10 @ 0x100057c48", "sub_100057C10 @ 0x100057ca4", "sub_100057C10 @ 0x100057cc4", "CustomizeObjectLayer::getActiveMode @ 0x1000588c0", "CustomizeObjectLayer::getActiveMode @ 0x10005890c", "CustomizeObjectLayer::updateSelected @ 0x100058d40", "CustomizeObjectLayer::updateSelected @ 0x100058d9c", "CustomizeObjectLayer::hsvPopupClosed @ 0x100059018", "CustomizeObjectLayer::hsvPopupClosed @ 0x100059048", "ConfigureHSVWidget::getHSV @ 0x100125298", "sub_100234C04 @ 0x100234c24", "sub_100234C04 @ 0x100234c3c", "sub_100234C04 @ 0x100234c84", "sub_100234C04 @ 0x100234ca4", "HSVLiveOverlay::hsvChanged @ 0x100234fac", "GameObject::setupCustomSprites @ 0x100362e3c", "EditorUI::updateObjectInfoLabel @ 0x1004756e8", "EditorUI::updateObjectInfoLabel @ 0x100475724", "EditorUI::updateObjectInfoLabel @ 0x100475820", "EditorUI::updateObjectInfoLabel @ 0x10047586c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}