{"type": "func", "start": 4298093076, "end": 4298093108, "name": "GameObject::getMainColorMode", "pseudocode": "// \n// GameObject::getMainColorMode from 0x1002fb214 to 0x1002fb234 (32 bytes)\n// \n// 15 xrefs:\n// > EditorUI::spriteFromObjectString @ 0x100184c14\n// > EditorUI::copyObjects @ 0x100189ddc\n// > EditorUI::canSelectObject @ 0x1001a5c38\n// > EditorUI::selectObjects @ 0x1001a5e80\n// > sub_1001A6778 @ 0x1001a67d8\n// > GJBaseGameLayer::triggerGradientCommand @ 0x10028b4c0\n// > GameObject::setupCustomSprites @ 0x10034f7d8\n// > LevelEditorLayer::updateVisibility @ 0x100400270\n// > LevelEditorLayer::updateVisibility @ 0x1004002c8\n// > LevelEditorLayer::updateVisibility @ 0x100400410\n// > LevelEditorLayer::updateObjectColors @ 0x100400890\n// > LevelEditorLayer::updateObjectColors @ 0x1004008e8\n// > LevelEditorLayer::getNextColorChannel @ 0x100401ce0\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x100401e8c\n// > EditorUI::enableButton @ 0x100474964\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:02 +0000\n// \n\n__int64 __fastcall GameObject::getMainColorMode(__int64 a1)\n{\n  unsigned int *v1; // x8\n  unsigned int v2; // w8\n\n  v1 = *(unsigned int **)(a1 + 1096);\n  if ( !v1 )\n    return 0;\n  v2 = *v1;\n  if ( v2 )\n    return v2;\n  else\n    return *(unsigned int *)(*(_QWORD *)(a1 + 1096) + 4LL);\n}", "assembly": "; \n; GameObject::getMainColorMode from 0x1002fb214 to 0x1002fb234 (32 bytes)\n; \n; 15 xrefs:\n; > EditorUI::spriteFromObjectString @ 0x100184c14\n; > EditorUI::copyObjects @ 0x100189ddc\n; > EditorUI::canSelectObject @ 0x1001a5c38\n; > EditorUI::selectObjects @ 0x1001a5e80\n; > sub_1001A6778 @ 0x1001a67d8\n; > GJBaseGameLayer::triggerGradientCommand @ 0x10028b4c0\n; > GameObject::setupCustomSprites @ 0x10034f7d8\n; > LevelEditorLayer::updateVisibility @ 0x100400270\n; > LevelEditorLayer::updateVisibility @ 0x1004002c8\n; > LevelEditorLayer::updateVisibility @ 0x100400410\n; > LevelEditorLayer::updateObjectColors @ 0x100400890\n; > LevelEditorLayer::updateObjectColors @ 0x1004008e8\n; > LevelEditorLayer::getNextColorChannel @ 0x100401ce0\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x100401e8c\n; > EditorUI::enableButton @ 0x100474964\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:02 +0000\n; \nLDR             X8, [X0,#0x448]                                        ; +0x0, 0x1002fb214\nCBZ             X8, loc_1002FB22C                                      ; +0x4, 0x1002fb218\nLDP             W8, W9, [X8]                                           ; +0x8, 0x1002fb21c\nCMP             W8, #0                                                 ; +0xc, 0x1002fb220\nCSEL            W0, W9, W8, EQ                                         ; +0x10, 0x1002fb224\nRET                                                                    ; +0x14, 0x1002fb228\nMOV             W0, #0                                                 ; +0x18, 0x1002fb22c\nRET                                                                    ; +0x1c, 0x1002fb230", "xrefs": ["EditorUI::spriteFromObjectString @ 0x100184c14", "EditorUI::copyObjects @ 0x100189ddc", "EditorUI::canSelectObject @ 0x1001a5c38", "EditorUI::selectObjects @ 0x1001a5e80", "sub_1001A6778 @ 0x1001a67d8", "GJBaseGameLayer::triggerGradientCommand @ 0x10028b4c0", "GameObject::setupCustomSprites @ 0x10034f7d8", "LevelEditorLayer::updateVisibility @ 0x100400270", "LevelEditorLayer::updateVisibility @ 0x1004002c8", "LevelEditorLayer::updateVisibility @ 0x100400410", "LevelEditorLayer::updateObjectColors @ 0x100400890", "LevelEditorLayer::updateObjectColors @ 0x1004008e8", "LevelEditorLayer::getNextColorChannel @ 0x100401ce0", "LevelEditorLayer::resetUnusedColorChannels @ 0x100401e8c", "EditorUI::enableButton @ 0x100474964"], "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"}