{"type": "func", "start": 9480276, "end": 9480420, "name": "ColorSelectLiveOverlay::determineStartValues", "pseudocode": "// \n// ColorSelectLiveOverlay::determineStartValues from 0x90a854 to 0x90a8e4 (144 bytes)\n// \n// 2 xrefs:\n// > ColorSelectLiveOverlay::init @ 0x90b3dc\n// > <???> @ 0xb0fd0\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\nvoid ColorSelectLiveOverlay::determineStartValues(ColorSelectLiveOverlay *a1)\n{\n  EffectGameObject *m_effectGameObject; // x1\n  GLubyte r; // w3\n  GLubyte g; // w2\n  GLubyte b; // w4\n  float m_opacity; // w1\n  ColorAction *m_baseColorAction; // x1\n  ColorAction *m_detailColorAction; // x2\n  GLubyte v8; // w4\n  GLubyte v9; // w3\n  GLubyte v10; // w3\n  GLubyte v11; // w1\n\n  m_effectGameObject = a1->m_effectGameObject;\n  if ( m_effectGameObject )\n  {\n    r = m_effectGameObject->m_triggerTargetColor.r;\n    g = m_effectGameObject->m_triggerTargetColor.g;\n    b = m_effectGameObject->m_triggerTargetColor.b;\n    a1->m_targetColor.b = b;\n    a1->m_targetColor.g = g;\n    a1->m_targetColor.r = r;\n    m_opacity = m_effectGameObject->m_opacity;\n    *(_WORD *)&a1->m_mainColor.r = *(_WORD *)&a1->m_targetColor.r;\n    a1->m_mainColor.b = b;\n    a1->m_opacity = m_opacity;\n  }\n  else\n  {\n    m_baseColorAction = a1->m_baseColorAction;\n    m_detailColorAction = a1->m_detailColorAction;\n    v8 = m_baseColorAction->m_fromColor.g;\n    v9 = m_baseColorAction->m_fromColor.b;\n    a1->m_targetColor.r = m_baseColorAction->m_fromColor.r;\n    a1->m_targetColor.g = v8;\n    a1->m_targetColor.b = v9;\n    *(_WORD *)&a1->m_mainColor.r = *(_WORD *)&a1->m_targetColor.r;\n    a1->m_mainColor.b = v9;\n    a1->m_opacity = m_baseColorAction->m_fromOpacity;\n    if ( m_detailColorAction )\n    {\n      v10 = m_detailColorAction->m_fromColor.r;\n      v11 = m_detailColorAction->m_fromColor.g;\n      a1->m_detailColor.b = m_detailColorAction->m_fromColor.b;\n      a1->m_detailColor.r = v10;\n      a1->m_detailColor.g = v11;\n    }\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::determineStartValues from 0x90a854 to 0x90a8e4 (144 bytes)\n; \n; 2 xrefs:\n; > ColorSelectLiveOverlay::init @ 0x90b3dc\n; > <???> @ 0xb0fd0\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\nLDR             X1, [X0,#0x278]                                        ; +0x0, 0x90a854\nCBZ             X1, loc_90A890                                         ; +0x4, 0x90a858\nLDRB            W3, [X1,#0x598]                                        ; +0x8, 0x90a85c\nLDRB            W2, [X1,#0x599]                                        ; +0xc, 0x90a860\nLDRB            W4, [X1,#0x59A]                                        ; +0x10, 0x90a864\nSTRB            W4, [X0,#0x2A8]                                        ; +0x14, 0x90a868\nSTRB            W2, [X0,#0x2A7]                                        ; +0x18, 0x90a86c\nSTRB            W3, [X0,#0x2A6]                                        ; +0x1c, 0x90a870\nUXTB            W2, W4                                                 ; +0x20, 0x90a874\nLDR             W1, [X1,#0x5A0]                                        ; +0x24, 0x90a878\nLDRH            W3, [X0,#0x2A6]                                        ; +0x28, 0x90a87c\nSTRH            W3, [X0,#0x2A0]                                        ; +0x2c, 0x90a880\nSTRB            W2, [X0,#0x2A2]                                        ; +0x30, 0x90a884\nSTR             W1, [X0,#0x2B8]                                        ; +0x34, 0x90a888\nRET                                                                    ; +0x38, 0x90a88c\nLDR             X1, [X0,#0x290]                                        ; +0x3c, 0x90a890\nLDR             X2, [X0,#0x298]                                        ; +0x40, 0x90a894\nLDRB            W4, [X1,#0x49]                                         ; +0x44, 0x90a898\nLDRB            W5, [X1,#0x48]                                         ; +0x48, 0x90a89c\nLDRB            W3, [X1,#0x4A]                                         ; +0x4c, 0x90a8a0\nSTRB            W5, [X0,#0x2A6]                                        ; +0x50, 0x90a8a4\nSTRB            W4, [X0,#0x2A7]                                        ; +0x54, 0x90a8a8\nSTRB            W3, [X0,#0x2A8]                                        ; +0x58, 0x90a8ac\nLDRH            W4, [X0,#0x2A6]                                        ; +0x5c, 0x90a8b0\nSTRH            W4, [X0,#0x2A0]                                        ; +0x60, 0x90a8b4\nSTRB            W3, [X0,#0x2A2]                                        ; +0x64, 0x90a8b8\nLDR             W1, [X1,#0x60]                                         ; +0x68, 0x90a8bc\nSTR             W1, [X0,#0x2B8]                                        ; +0x6c, 0x90a8c0\nCBZ             X2, locret_90A88C                                      ; +0x70, 0x90a8c4\nLDRB            W3, [X2,#0x48]                                         ; +0x74, 0x90a8c8\nLDRB            W1, [X2,#0x49]                                         ; +0x78, 0x90a8cc\nLDRB            W2, [X2,#0x4A]                                         ; +0x7c, 0x90a8d0\nSTRB            W2, [X0,#0x2A5]                                        ; +0x80, 0x90a8d4\nSTRB            W3, [X0,#0x2A3]                                        ; +0x84, 0x90a8d8\nSTRB            W1, [X0,#0x2A4]                                        ; +0x88, 0x90a8dc\nRET                                                                    ; +0x8c, 0x90a8e0", "xrefs": ["ColorSelectLiveOverlay::init @ 0x90b3dc", "<???> @ 0xb0fd0"], "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"}